:root {
  --ui-bg: #f5f5f5;
  --panel: #ffffff;
  --canvas-bg: #e5e5e5;
  --hover: #f2f2f2;
  --active: #e8e8e8;
  --border: #e5e5e5;
  --border-strong: #d6d6d6;
  --text: #1f1f1f;
  --text-2: #5f5f5f;
  --text-3: #8c8c8c;
  --blue: #0d99ff;
  --blue-hover: #0787e4;
  --green: #14ae7b;
  --purple: #9747ff;
  --header-h: 48px;
  --left-w: 312px;
  --right-w: 312px;
  --control-h: 30px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Premium Signature Theme Electric Blue Text Selection Highlight */
::selection,
*::selection,
html ::selection,
body ::selection,
input::selection,
textarea::selection,
select::selection,
[contenteditable]::selection,
.studio-view ::selection,
.studio-view *::selection,
.modal-overlay ::selection,
.modal-overlay *::selection,
.landing-view ::selection,
.landing-view *::selection {
  background: #0d99ff !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

::-moz-selection,
*::-moz-selection,
html ::-moz-selection,
body ::-moz-selection,
input::-moz-selection,
textarea::-moz-selection,
select::-moz-selection,
[contenteditable]::-moz-selection,
.studio-view ::-moz-selection,
.studio-view *::-moz-selection,
.modal-overlay ::-moz-selection,
.modal-overlay *::-moz-selection,
.landing-view ::-moz-selection,
.landing-view *::-moz-selection {
  background: #0d99ff !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

/* 입력창 내부 텍스트 드래그 이동 방지 (선택 및 복사는 유지) */
input,
textarea,
select {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  accent-color: #0d99ff;
}

*:focus, *:focus-visible {
  outline: none !important;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--canvas-bg);
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dedicated Multi-language Font Stacks */
/* 1. 日本語 (JA): Noto Sans JP exclusive stack */
html[lang="ja"],
html[lang="ja"] body,
html[lang="ja"] .landing-view,
html[lang="ja"] .studio-view,
html[lang="ja"] button,
html[lang="ja"] input,
html[lang="ja"] select,
html[lang="ja"] textarea {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif !important;
}

/* 2. 中文 简体 (ZH-CN / ZH): Noto Sans SC exclusive stack */
html[lang="zh"],
html[lang="zh-CN"],
html[lang="zh"] body,
html[lang="zh-CN"] body,
html[lang="zh"] .landing-view,
html[lang="zh-CN"] .landing-view,
html[lang="zh"] .studio-view,
html[lang="zh-CN"] .studio-view,
html[lang="zh"] button,
html[lang="zh-CN"] button,
html[lang="zh"] input,
html[lang="zh-CN"] input,
html[lang="zh"] select,
html[lang="zh-CN"] select,
html[lang="zh"] textarea,
html[lang="zh-CN"] textarea {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 3. 中文 繁體 (ZH-TW / ZH-HK): Noto Sans TC exclusive stack */
html[lang="zh-TW"],
html[lang="zh-HK"],
html[lang="zh-TW"] body,
html[lang="zh-HK"] body,
html[lang="zh-TW"] .landing-view,
html[lang="zh-HK"] .landing-view,
html[lang="zh-TW"] .studio-view,
html[lang="zh-HK"] .studio-view,
html[lang="zh-TW"] button,
html[lang="zh-HK"] button,
html[lang="zh-TW"] input,
html[lang="zh-HK"] input,
html[lang="zh-TW"] select,
html[lang="zh-HK"] select,
html[lang="zh-TW"] textarea,
html[lang="zh-HK"] textarea {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif !important;
}

/* 4. 한국어 (KO): Pretendard Korean stack */
html[lang="ko"],
html[lang="ko"] body,
html[lang="ko"] .landing-view,
html[lang="ko"] .studio-view,
html[lang="ko"] button,
html[lang="ko"] input,
html[lang="ko"] select,
html[lang="ko"] textarea {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* 5. English (EN): Standard Pretendard / System stack */
html[lang="en"],
html[lang="en"] body,
html[lang="en"] .landing-view,
html[lang="en"] .studio-view,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] select,
html[lang="en"] textarea {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

button, input, select, textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  user-select: none;
}

button:focus,
a:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.hero-btn-framer-primary:focus,
.hero-btn-framer-secondary:focus,
.btn-landing-cta:focus,
.roadmap-tab-btn:focus,
.pricing-tab-btn:focus,
.modal-close-btn:focus,
.lang-btn:focus,
.btn:focus {
  outline: none !important;
}

/* =========================================
   1. Header
   ========================================= */
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 200;
  min-width: 0;
}

.brand-section,
.header-actions,
.header-export-settings,
.inline-item,
.sidebar-header,
.sidebar-bulk,
.canvas-toolbar,
.section-title-row,
.section-row,
.field-row,
.field-pair,
.field-triple,
.field-quad,
.field-triplet,
.color-row,
.switch-row {
  display: flex;
  align-items: center;
}

.brand-section {
  gap: 5px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #1e1e1e;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-logo-img {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.landing-brand .brand-logo-img {
  width: 22px;
  height: 22px;
}

.brand-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .02em;
  color: #111;
  line-height: 1;
}

.brand-subcopy {
  margin-left: 2px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #555e6d;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.brand-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f3f3f3;
  color: #777;
  font-size: 9px;
  font-weight: 500;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fafafa;
  user-select: none;
  z-index: 10;
  pointer-events: auto;
}

.header-center .tool-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .12s ease;
}

.header-center .tool-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.header-center .tool-btn.zoom-btn {
  width: 26px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.header-center .zoom-level-text {
  min-width: 40px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header-center-divider {
  width: 1px;
  height: 14px;
  background: #e2e8f0;
  margin: 0 2px;
  flex-shrink: 0;
}

.header-center .tool-btn.preview-toggle-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.header-center .tool-btn.preview-toggle-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 라벨 감춘 상태 (눈 꺼짐) : 파란 배경 대신 비활성화된 연한 색상 */
.header-center .tool-btn.preview-toggle-btn.is-hidden-mode {
  background: transparent !important;
  border-color: transparent !important;
  color: #94a3b8 !important;
  opacity: 0.65;
}

.header-center .tool-btn.preview-toggle-btn.is-hidden-mode:hover {
  background: #f1f5f9 !important;
  opacity: 1;
  color: #64748b !important;
}

.header-center .tool-btn.preview-toggle-btn .preview-eye-icon,
.header-center .tool-btn .zoom-fit-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
  overflow: visible;
  display: block;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* =========================================
   User Profile Circular Avatar & Dashboard Popover
   ========================================= */
.user-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.user-profile-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-sizing: border-box;
}

.user-profile-btn:hover,
.user-profile-wrap.is-open .user-profile-btn {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.04);
}

/* 1. Pro Subscriber Avatar State (Clean Blue Ring) */
.user-profile-btn.is-pro-avatar,
body.is-pro-user .user-profile-btn {
  border: 2px solid #0d99ff !important;
  background: #f0f9ff !important;
  box-shadow: 0 0 0 2px rgba(13, 153, 255, 0.2) !important;
}

.user-profile-btn.is-pro-avatar:hover,
body.is-pro-user .user-profile-btn:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(13, 153, 255, 0.32) !important;
}

/* 2. Master Admin Avatar State (Indigo/Purple Ring) */
.user-profile-btn.is-master-avatar,
body.is-master-user .user-profile-btn {
  border: 2px solid #6366f1 !important;
  background: #f5f3ff !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25) !important;
}

.user-profile-btn.is-master-avatar:hover,
body.is-master-user .user-profile-btn:hover {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35) !important;
}

/* CMYK 4-color dot icon */
.cmyk-cube-icon {
  display: inline-grid;
  grid-template-columns: repeat(2, 5.5px);
  grid-template-rows: repeat(2, 5.5px);
  gap: 1.5px;
  width: 12.5px;
  height: 12.5px;
  flex-shrink: 0;
}

.cmyk-cube-icon.lg {
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  gap: 2.5px;
  width: 22.5px;
  height: 22.5px;
}

.cube-dot {
  border-radius: 1px;
}
.cube-dot.dot-c { background: #00A3E0; }
.cube-dot.dot-m { background: #E4007F; }
.cube-dot.dot-y { background: #FFD100; }
.cube-dot.dot-k { background: #1C1917; }

.profile-user-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #0f172a;
}

.profile-role-badge {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #f3e8ff;
  color: #6b21a8;
}

/* =========================================
   Profile Dashboard Popover (Framer-style Clean Design)
   ========================================= */
.profile-dashboard-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1100;
  animation: popoverScaleIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes popoverScaleIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 1. Header (User Info Row) */
.popover-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 10px 6px;
}

.popover-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.popover-user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.popover-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.popover-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-email {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.popover-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.12s;
  flex-shrink: 0;
}

.popover-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Plan Badges (Subtle Pill Style) */
.plan-pill-badge {
  font-size: 9.5px;
  font-weight: 500;
  padding: 1.5px 6px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.plan-pill-badge.badge-free {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.plan-pill-badge.badge-pro {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.plan-pill-badge.badge-admin {
  background: #f5f3ff;
  color: #6366f1;
  border: 1px solid #e0e7ff;
}

/* 2. Clean Credit Section */
.popover-credit-section {
  padding: 6px 6px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credit-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.credit-row-label {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.credit-row-val {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.credit-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Neutral Solid Recharge button */
.btn-popover-recharge-solid {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  background: #0f172a;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-popover-recharge-solid:hover {
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

/* Neutral Outline Pro button */
.btn-popover-pro-outline {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-popover-pro-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Dividers */
.popover-menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 2px;
}

/* 3. Menu List & Rows */
.popover-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.popover-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #334155;
}

.popover-menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  width: 100%;
  font-size: 12.5px;
  font-weight: 400;
  color: #334155;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
  text-align: left;
}

.popover-menu-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.menu-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.menu-icon {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.1s ease;
}

.popover-menu-btn:hover .menu-icon {
  color: #0f172a;
}

.menu-row-right {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

.badge-subtle-version {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

/* Language Pill Group */
.lang-pill-select {
  display: flex;
  gap: 2px;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 6px;
}

.lang-pill-select .lang-chip {
  border: none;
  background: transparent;
  padding: 2.5px 7px;
  font-size: 10.5px;
  font-weight: 400;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.lang-pill-select .lang-chip:hover {
  color: #0f172a;
}

.lang-pill-select .lang-chip.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 500;
}

/* Danger / Exit Item */
.popover-menu-btn.danger-btn {
  color: #64748b;
}

.popover-menu-btn.danger-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

.popover-menu-btn.danger-btn:hover .menu-icon {
  color: #dc2626;
}

/* =========================================
   Popover Multi-View & Subview Styles
   ========================================= */
.popover-view {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.popover-view.subview {
  gap: 6px;
  animation: subviewSlideIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes subviewSlideIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Subview Header */
.subview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 6px 2px;
}

.subview-back-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.subview-back-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.subview-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

/* Subview Body */
.subview-body {
  padding: 6px 2px 8px 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subview-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.subview-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reset-btn-container {
  width: 100%;
}

.reset-confirm-split {
  display: flex;
  gap: 6px;
  width: 100%;
}

.reset-confirm-split .btn-subview-action {
  flex: 1;
  font-size: 11.5px;
}

.btn-subview-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-subview-action.primary {
  background: #0f172a;
  border: none;
  color: #ffffff;
}

.btn-subview-action.primary:hover {
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.btn-subview-action.primary.success-active {
  background: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25) !important;
  pointer-events: none;
}

.btn-subview-action.secondary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.btn-subview-action.secondary:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.btn-subview-action.neutral-cancel {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.btn-subview-action.neutral-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-subview-action.danger-confirm {
  background: #dc2626;
  border: none;
  color: #ffffff;
}

.btn-subview-action.danger-confirm:hover {
  background: #b91c1c;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.subview-footer-note {
  font-size: 10.5px;
  color: #94a3b8;
  padding: 4px 2px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.lang-dropdown {
  position: relative;
  display: inline-flex;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 8px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}

.lang-btn:hover,
.lang-dropdown.is-open .lang-btn {
  background: #f5f5f5;
  border-color: #bbbbbb;
}

.lang-btn .globe-icon {
  width: 13px;
  height: 13px;
  color: var(--text-2);
}

.lang-btn .caret-icon {
  width: 10px;
  height: 10px;
  color: var(--text-3);
  margin-left: 2px;
  transition: transform .15s ease;
}

.lang-dropdown.is-open .caret-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 105px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  animation: popoverFadeIn 0.12s ease;
}

.lang-menu-item {
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-1);
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}

.lang-menu-item:hover {
  background: #f0f0f0;
  color: #000000;
}

.lang-menu-item.active {
  background: var(--blue);
  color: #ffffff;
  font-weight: 500;
}

/* 크레딧 뱃지 및 충전 버튼 */
.credit-badge-wrap {
  display: inline-flex;
  align-items: center;
}

.credit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 4px 0 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all .14s ease;
}

.credit-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.credit-btn .credit-count {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
}

.credit-btn .credit-unit {
  font-size: 11.5px;
  font-weight: 400;
  color: #475569;
}

.credit-recharge-pill {
  padding: 2.5px 7px;
  border-radius: 4px;
  background: #0b74b8;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
}

.credit-btn:hover .credit-recharge-pill {
  background: #095f97;
}

/* Pro 구독 버튼 */
/* Pro 버튼: 요금제/구독 페이지의 브랜드 컬러(#0d99ff 블루 계열)와 통일합니다. */
.btn-pro-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 9px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 6px;
  color: #0284c7;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .14s ease;
}

.btn-pro-upgrade:hover {
  background: #0d99ff;
  border-color: #0d99ff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 153, 255, 0.28);
}

.btn-pro-upgrade .pro-crown {
  font-size: 12px;
}

.btn-pro-upgrade.is-active-pro {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.btn-pro-upgrade.is-master-user {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
  border-color: #6366f1 !important;
  color: #fbbf24 !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25) !important;
  font-weight: 500 !important;
}

.btn-pro-upgrade.is-master-user:hover {
  filter: brightness(1.1);
}

.divider {
  width: 1px;
  height: 18px;
  flex: 0 0 1px;
  background: var(--border);
  margin: 0 3px;
}

.btn,
.tool-btn {
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #333;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.btn:hover,
.tool-btn:hover {
  background: var(--hover);
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: white;
}

.btn-export {
  min-width: 86px;
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: white;
}

.btn-export:hover {
  background: #333;
  border-color: #333;
  color: white;
}

.btn-excel {
  background: #107c41;
  border-color: #0e6b37;
  color: white;
  font-size: 11px;
  font-weight: 500;
}

.btn-excel:hover {
  background: #0b6a36;
  border-color: #0b6a36;
  color: white;
}

.btn-sm { height: 30px; }
.btn-xs { height: 26px; padding: 0 8px; }

/* =========================================
   2. Main Container
   ========================================= */
.app-container {
  height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--right-w);
  min-height: 0;
  background: var(--canvas-bg);
}

.workspace-area {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--left-w) minmax(0, 1fr);
  background: var(--canvas-bg);
}

/* =========================================
   3. Left Sidebar (Pages)
   ========================================= */
.page-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 50;
}

.sidebar-header {
  height: 40px;
  flex: 0 0 40px;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-size: 11px;
  font-weight: 600;
}

.sidebar-count {
  color: var(--text-3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

/* Sidebar Tab Header */
.sidebar-tab-header {
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.sidebar-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
  position: relative;
  transition: color .15s ease, background .15s ease;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.sidebar-tab-btn:focus,
.sidebar-tab-btn:focus-visible,
.sidebar-tab-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.sidebar-tab-btn:hover {
  color: #1e293b;
  background: #f8fafc;
}

.sidebar-tab-btn.active {
  color: #0070f3;
  font-weight: 500;
}

.sidebar-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #0070f3;
  border-radius: 2px 2px 0 0;
}

.sidebar-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .02em;
  background: #eef4ff;
  color: #0d99ff;
  border: 1px solid #c7d9fe;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Sidebar Tab Views */
.sidebar-tab-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Presets Panel */
.presets-action-row {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.btn-save-preset-action {
  width: 100%;
  height: 29px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
}

.presets-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preset-category-title {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px 3px;
}

.preset-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6.5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s ease;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  user-select: none;
}

.preset-item:hover {
  background: #f8fafc;
}

.preset-item.active {
  background: #eff6ff;
  border-color: #dbeafe;
}

.preset-item-name {
  font-size: 11.5px;
  font-weight: 400;
  color: #1e293b;
}

.preset-item.active .preset-item-name {
  color: #1d4ed8;
  font-weight: 500;
}

.preset-item-dim {
  font-size: 10.5px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.preset-item.active .preset-item-dim {
  color: #2563eb;
  font-weight: 400;
}

/* User Custom Preset Item */
.custom-preset-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6.5px 8px 6.5px 9px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all .12s ease;
  user-select: none;
}

.custom-preset-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.custom-preset-item.active {
  background: #eff6ff;
  border-color: #93c5fd;
}

.custom-preset-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.custom-preset-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-preset-dim {
  font-size: 10px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.custom-preset-item .page-more-wrap {
  position: relative;
  top: auto;
  right: auto;
  margin-left: 6px;
}

.custom-preset-item:hover .page-more-btn,
.custom-preset-item .page-more-wrap.is-open .page-more-btn {
  opacity: 1;
}

.custom-presets-empty {
  padding: 14px 8px;
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  border: 1px dashed #e2e8f0;
  border-radius: 6px;
  line-height: 1.5;
  background: #fafafa;
}

.sidebar-bulk {
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.sidebar-bulk .item-label { flex: 1; }

.sidebar-excel-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.btn-excel-template-link {
  width: 100%;
  height: 22px;
  border: none;
  background: transparent;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-excel-template-link svg {
  stroke: #8a8a8a;
  transition: stroke 0.15s ease;
}

.btn-excel-template-link:hover {
  color: #444444;
  background: transparent;
}

.btn-excel-template-link:hover svg {
  stroke: #444444;
}

.sidebar-open-row {
  padding: 8px 12px 0;
  background: #fff;
}

.sidebar-file-open {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-file-open:hover,
.sidebar-file-open:focus-visible {
  background: #f7f7f7;
  border-color: #bfbfbf;
  outline: none;
}

.sidebar-file-open.dragover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  background: #f3f9ff;
}

.sidebar-file-open svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.page-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c9 transparent;
}

.page-empty-msg {
  margin: 8px 0;
  padding: 28px 12px;
  border: 1px dashed #d5d5d5;
  border-radius: 6px;
  color: var(--text-3);
  background: #fafafa;
  text-align: center;
  line-height: 1.55;
  font-size: 10.5px;
}

.page-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin-bottom: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: none;
}

.page-item:last-child {
  margin-bottom: 0;
}

.page-item:hover {
  background: #fafafa;
  border-color: #d0d0d0;
}

.page-item.selected {
  background: #f0f7ff;
  border-color: var(--blue);
}

.page-item.selected:not(.active) {
  background: #f4f9ff;
  border-color: #93c5fd;
}

.page-item.active {
  background: #eff6ff;
  border-color: var(--blue);
  box-shadow: 0 1px 3px rgba(13, 153, 255, 0.12);
}

.page-thumb {
  width: 52px;
  min-width: 52px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #ffffff;
  object-fit: contain;
  flex-shrink: 0;
}

.page-thumb.page-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: var(--text-3);
}

.page-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-info-name {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-info-size {
  font-size: 9px;
  color: var(--text-3);
}

.page-copies-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

.page-copies-input,
.page-startnum-input,
.page-extra-input,
.page-s1-input,
.page-s2-input,
.page-s3-input,
.form-input {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text;
}

.page-copies-input,
.page-startnum-input {
  height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  text-align: center;
  font-size: 10px;
  font-family: inherit;
  background: #fff;
  outline: none;
  padding: 0 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.page-copies-input { width: 44px; color: var(--text); }
.page-startnum-input { width: 44px; color: #0284c7; font-weight: 600; }

.page-copies-input:focus,
.page-startnum-input:focus,
.page-s1-input:focus,
.page-s2-input:focus,
.page-s3-input:focus,
.page-extra-input:focus,
.form-input:focus {
  border-color: #0d99ff !important;
  box-shadow: 0 0 0 2px rgba(13, 153, 255, 0.22) !important;
  background: #ffffff !important;
}

.page-copies-label {
  font-size: 9.5px;
  color: var(--text-3);
}

.page-serial-row {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}

.page-s1-input,
.page-s2-input,
.page-s3-input {
  height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 9.5px;
  font-family: inherit;
  background: #fff;
  outline: none;
  padding: 0 4px;
  min-width: 0;
  flex: 1;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* 페이지별 추가 텍스트 입력 (3칸 배열) */
.page-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-top: 3px;
}

.page-extra-input {
  height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 9.5px;
  font-family: inherit;
  background: #fff;
  outline: none;
  padding: 0 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.page-more-wrap {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
}

.page-more-btn {
  width: 22px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity .12s, background .12s, color .12s, border-color .12s;
  padding: 0;
}

.page-item:hover .page-more-btn,
.page-more-wrap.is-open .page-more-btn {
  opacity: 1;
}

.page-more-btn:hover,
.page-more-wrap.is-open .page-more-btn {
  background: #f0f0f0;
  color: #111;
  border-color: #e0e0e0;
}

.page-popover-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 86px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 7px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  animation: popoverFadeIn 0.12s ease;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-popover-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #dc2626;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}

.page-popover-item:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.sidebar-footer {
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  background: #ffffff;
  position: relative;
  z-index: 2;
  color: var(--text-2);
  font-size: 10.5px;
}

.sidebar-footer strong {
  margin: 0 3px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* =========================================
   4. Center Canvas
   ========================================= */
.canvas-viewport {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.canvas-toolbar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  width: max-content;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
}

.canvas-toolbar .tool-btn {
  height: 27px;
  padding: 0 8px;
  font-size: 10px;
}

.canvas-workspace-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 아트보드 상단 치수 라벨: 줌에 따라 함께 커지되, 화면(뷰포트) 기준으로 항상 읽을 수 있도록
   --dim-scale 로 보정합니다(applyTransform에서 계산: 완만한 곡선 + 상/하한).
   테두리는 ::before로 분리해 두께만 화면상 1px로 고정합니다. */
.dimension-header-tag {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform-origin: center bottom;
  transform: translateX(-50%)
             translateY(calc(-10px * var(--dim-scale, 1)))
             scale(var(--dim-scale, 1));
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px 4px;
  border-radius: 5px;
  background: #ffffff;
  color: #374151;
  border: none;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  user-select: none;
  pointer-events: none;
  z-index: 15;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 아트보드 영역 (전체 규격: 원단 + 인쇄여백) */
.artboard-container {
  position: relative;
  /* flex 자식이라 기본 flex-shrink:1 때문에 아트보드가 뷰포트보다 넓으면 축소되어
     실제 박스 크기가 지정 크기(mm 기준)와 어긋납니다. 그러면 인쇄여백 가이드 테두리가
     트림 박스와 맞지 않게 되므로 축소를 금지합니다. (확대/축소는 transform이 담당) */
  flex: 0 0 auto;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  box-sizing: content-box;
  pointer-events: auto;
  transform-origin: center center;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

/* 아트보드(인쇄영역) 내부 클리핑 박스
   인쇄영역 바깥으로 빠져나간 디자인 데이터나 여백 초과 부분을 완벽하게 마스킹 */
.artboard-clip-box {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.artboard-clip-box .trim-box {
  pointer-events: auto;
}

/* 실제 원단 인쇄 영역 */
.trim-box {
  position: absolute;
  background: transparent;
  border: none;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
}

.preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 인쇄 여백 & 아트보드 점선 가이드라인 (최상위 레이어에 1px dashed로 원단 위에 선명하게 표시) */
/* =========================================
   줌 고정 두께 가이드 테두리 (--zoom / --zoom-inv 는 applyTransform()에서 주입)

   아트보드는 scale(zoom)으로 확대되므로 그 안의 테두리도 같이 두꺼워집니다.
   border-width는 브라우저가 1 device px 미만으로 그리지 않아 calc()로 얇게 만들 수 없으므로,
   가상 요소를 --zoom배 키운 뒤 --zoom-inv로 축소해 stroke까지 함께 축소시킵니다.
   (transform 스케일은 서브픽셀을 지원하므로 두께가 정확히 고정됩니다.)
   ========================================== */
/* 치수 라벨 테두리: 라벨의 총 배율(--dim-total = zoom x dim-scale)을 기준으로 역보정하여
   두께는 화면상 1px 고정, 모서리 반경만 배경과 동일하게 확대되도록 맞춥니다. */
.dimension-header-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% * var(--dim-total, 1));
  height: calc(100% * var(--dim-total, 1));
  transform: scale(var(--dim-total-inv, 1));
  transform-origin: top left;
  border: 1px solid #e5e7eb;
  border-radius: calc(5px * var(--dim-total, 1));
  box-sizing: border-box;
  pointer-events: none;
}

.draggable-number-tag,
.draggable-extra-tag {
  position: absolute;
  /* 위치는 transform으로 적용하여 서브픽셀 정밀도로 부드럽게 렌더링 */
  left: 0;
  top: 0;
  --tx: 0px;
  --ty: 0px;
  --anchor-x: -50%;
  --rot: 0deg;
  transform: translate(var(--tx), var(--ty))
             translate(var(--anchor-x), -50%)
             rotate(var(--rot));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  user-select: none;
  z-index: 20;
  white-space: nowrap;
  pointer-events: auto;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.draggable-number-tag.active,
.draggable-extra-tag.active {
  cursor: move;
}

/* 라벨 배지는 줌 배율과 무관하게 화면상 항상 일정한 크기(10.5px)로 유지 */
.draggable-number-tag .tag-badge {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform-origin: center bottom;
  transform: translateX(-50%)
             translateY(calc(-3px * var(--zoom-inv, 1)))
             scale(var(--zoom-inv, 1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px 1px;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  border-radius: 3px;
  background: #059669;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.14);
  pointer-events: auto;
  cursor: move;
  white-space: nowrap;
  z-index: 2;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.draggable-number-tag .tag-text-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px dashed rgba(5, 150, 105, 0.85);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4) !important;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
  pointer-events: auto;
  cursor: move;
  z-index: 1;
  line-height: 1.1;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.draggable-number-tag #leftTagText,
.draggable-number-tag #rightTagText {
  display: inline-block;
  line-height: 1.1;
  vertical-align: middle;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.draggable-number-tag.tag-right .tag-badge,
.tag-badge-right,
#rightTag .tag-badge {
  background: #7c3aed !important;
  color: #ffffff !important;
}

.draggable-number-tag.tag-right .tag-text-box,
#rightTag .tag-text-box {
  border-color: rgba(124, 58, 237, 0.85);
  background: rgba(255, 255, 255, 0.4) !important;
}

.draggable-number-tag.selected .tag-text-box {
  border-style: solid;
  border-color: #059669;
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.draggable-number-tag.tag-right.selected .tag-text-box,
#rightTag.selected .tag-text-box {
  border-style: solid;
  border-color: #7c3aed;
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}

/* =========================================
   5. Right Inspector
   ========================================= */
.property-inspector,
.top-control-strip {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  background: var(--panel);
  border-left: 1px solid var(--border);
  position: relative;
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c9 transparent;
}

.inspector-header,
.inspector-heading {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}

.inspector-title,
.inspector-heading strong { font-size: 11px; font-weight: 600; color: #1e1e1e; }
.inspector-badge,
.inspector-heading span { color: var(--text-3); font-size: 9.5px; font-weight: 400; }

.toolbar-row {
  display: block;
  min-height: 0;
  border-bottom: 1px solid var(--border);
}

.control-group {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel-section {
  padding: 8px 12px 14px;
}

.section-title-row {
  min-height: 38px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.section-title {
  font-size: 11px;
  font-weight: 500;
  color: #1c1917;
  transition: color .15s ease;
}

.section-kicker {
  font-size: 9px;
  font-weight: 400;
  color: var(--text-3);
}

.group-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag-seq {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.tag-num {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.tag-marks {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.tag-export {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.tag-doc {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.tag-extra {
  background: #eef4ff;
  color: #0284c7;
  border: 1px solid #c7d9fe;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.field-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
}

.field-label {
  width: 68px;
  flex: 0 0 68px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

.field-grow {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.field-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.field-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.field-triplet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.field-pair > *,
.field-triple > *,
.field-quad > *,
.field-triplet > * {
  min-width: 0 !important;
  width: 100% !important;
}

.field-triplet .form-input {
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 2px !important;
  font-size: 9.5px !important;
  text-align: center !important;
}

.field-quad .unit-wrap .form-input {
  padding: 0 14px 0 4px;
  font-size: 9.5px;
  text-align: right;
}

.field-quad .unit {
  right: 4px;
  font-size: 8px;
}

.dash-inputs-pair {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.dash-param-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
}

.dash-param-label {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-param-wrap .unit-wrap {
  flex: 1 1 0;
  min-width: 0;
}

.dash-param-wrap .unit-wrap .form-input {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 20px 0 6px !important;
  font-size: 10.5px;
  text-align: right;
}

.dash-param-wrap .unit {
  right: 5px;
  font-size: 9px;
}

.form-input,
.form-select {
  height: var(--control-h);
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  background: #f5f5f5;
  color: var(--text);
  font-size: 10.5px;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.form-input:hover,
.form-select:hover { background: #efefef; }

.form-input:focus,
.form-select:focus {
  background: #fff;
  /* 포커스 표시는 얇은 테두리 한 줄로만. (기존에는 테두리 + 링이 겹쳐 두 줄로 보였음) */
  /* 뒤쪽에 border 를 재지정하는 규칙들이 있어 확실히 이기도록 명시합니다 */
  border-color: #0d99ff !important;
  box-shadow: none !important;
}

.form-select { width: 100% !important; min-width: 0 !important; cursor: pointer; }
.input-sm,
.input-sm-num,
.input-md-num { width: 100% !important; min-width: 0 !important; text-align: right; }

input[type="number"] { font-variant-numeric: tabular-nums; }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.unit-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.unit-wrap .form-input { width: 100% !important; padding-right: 27px; }
.unit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 9px;
  pointer-events: none;
}

.item-label {
  color: var(--text-2);
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

.color-row { gap: 6px; flex: 1 1 auto; }

.color-picker-chip {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f5f5f5;
  cursor: pointer;
}

.switch-row { justify-content: space-between; width: 100%; }

.toggle-switch {
  width: 30px;
  height: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8c8c8;
  cursor: pointer;
  transition: .15s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: .15s ease;
}

.toggle-switch input:checked + .toggle-slider { background: var(--purple); }
.toggle-switch.toggle-green input:checked + .toggle-slider { background: #10b981; }
.toggle-switch.toggle-purple input:checked + .toggle-slider { background: #7c3aed; }
.toggle-switch.toggle-red input:checked + .toggle-slider { background: #ef4444; }
.toggle-switch.toggle-export input:checked + .toggle-slider { background: #0284c7; }
.toggle-switch.toggle-blue input:checked + .toggle-slider,
.extra-text-card .toggle-switch input:checked + .toggle-slider { background: #0d99ff; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(12px); }

#leftOptionsBlock,
#rightOptionsBlock,
#marksOptionsBlock {
  width: 100%;
  max-width: 100%;
  display: grid;
  align-items: stretch;
  gap: 8px;
  max-height: 620px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition: max-height .22s ease, opacity .16s ease, transform .18s ease;
}

#serialPanel.is-collapsed,
#numberingPanel.is-collapsed,
#marksPanel.is-collapsed { padding-bottom: 0; }

#serialPanel.is-collapsed #leftOptionsBlock,
#numberingPanel.is-collapsed #rightOptionsBlock,
#marksPanel.is-collapsed #marksOptionsBlock {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.section-title-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.section-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .02em;
}

.section-state.state-seq {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.section-state.state-num {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.section-state.state-marks {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.section-state.state-extra {
  background: #eef4ff;
  color: #0d99ff;
  border: 1px solid #c7d9fe;
}

/* 문서 패널: 현재 선택된 페이지 표시 (기존 .section-state 스타일) */
.section-state.state-doc {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #dbe3ec;
  font-variant-numeric: tabular-nums;
}


.section-state.is-off,
#numberingPanel.is-collapsed .section-state,
#marksPanel.is-collapsed .section-state,
#extraTextPanel.is-collapsed .section-state {
  background: #f1f1f1 !important;
  color: #8a8a8a !important;
  border: 1px solid #e2e2e2 !important;
}

.font-control-stack {
  display: grid;
  gap: 6px;
}

.font-upload-block {
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.font-upload-block.is-open { display: grid; }

.font-file-button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafafa;
  color: #4d4d4d;
  font-size: 9.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.font-file-button:hover {
  border-color: #c9c9c9;
  background: #f4f4f4;
}

.font-file-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-3);
  font-size: 9px;
}

.font-file-status.loaded { color: var(--green); }

.legacy-font-bridge,
.legacy-position-bridge { display: none !important; }

.position-controls {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
}

.position-scope-btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f5f5f5;
  color: #5f5f5f;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.position-scope-btn:hover {
  background: #ececec;
  color: #292929;
}

.position-scope-btn:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.position-scope-btn[data-locked="true"] {
  background: #eef7ff;
  color: #0876c9;
}

.position-scope-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.position-scope-btn .icon-unlock { display: none; }
.position-scope-btn[data-locked="false"] .icon-lock { display: none; }
.position-scope-btn[data-locked="false"] .icon-unlock { display: block; }

.subtle-help {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 9px;
  line-height: 1.45;
}

.header-export-settings {
  width: 100%;
  display: grid;
  gap: 8px;
}

/* =========================================
   6. Extra Texts (추가 텍스트)
   ========================================= */
.extra-text-empty-msg {
  padding: 16px 10px;
  border: 1px dashed #d5d5d5;
  border-radius: 6px;
  color: var(--text-3);
  background: #fafafa;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 4px;
}

.extra-text-list-stack {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.panel-card,
.extra-text-card {
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 7px;
  margin-top: 6px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

#extraTextPanel.is-collapsed .extra-text-card:not(.is-expanded-item) {
  gap: 0;
  padding: 6px 10px;
}

#extraTextPanel.is-collapsed .extra-text-card:not(.is-expanded-item) .field-row {
  display: none !important;
}

.extra-text-card.is-collapsed-item {
  gap: 0 !important;
  padding: 6px 10px !important;
}

.extra-text-card.is-collapsed-item .field-row {
  display: none !important;
}

/* 1. 일련번호 카드 활성화 & 포커스 */
#serialPanel.selected-section .serial-card,
.serial-card:focus-within {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.04);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12);
}

/* 2. 넘버링 카드 활성화 & 포커스 */
#numberingPanel.selected-section .numbering-card,
.numbering-card:focus-within {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.04);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
}

/* 3. 추가 텍스트 카드 활성화 & 포커스 */
.extra-text-card.active,
.extra-text-card:focus-within {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.04);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
}

.extra-text-card.active .extra-idx-pill {
  background: #0284c7;
  color: #ffffff;
}

.extra-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.extra-idx-pill {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all .15s ease;
}

.extra-idx-pill:hover {
  filter: brightness(0.92);
}

.extra-text-input {
  flex: 1 1 auto;
  height: 30px;
  font-weight: 400;
}

.extra-card-header .page-more-wrap {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
  margin-left: 2px;
}

.extra-card-header .page-more-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity .12s, background .12s, color .12s, border-color .12s;
  padding: 0;
}

.extra-card-header:hover .page-more-btn,
.extra-card-header .page-more-wrap.is-open .page-more-btn {
  opacity: 1;
}

.extra-card-header .page-more-btn:hover,
.extra-card-header .page-more-wrap.is-open .page-more-btn {
  background: #f0f0f0;
  color: #111;
  border-color: #e0e0e0;
}

.extra-card-header .page-popover-menu {
  top: calc(100% + 4px);
  right: 0;
}

.extra-text-bottom-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0 32px 0;
  width: 100%;
}

.btn-add-extra-bottom {
  border: 1px solid #d0d0d0;
  background: #ffffff;
  border-radius: 6px;
  font-weight: 500;
  color: #222;
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-extra-bottom:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

.extra-btn-delete {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: color .12s, background .12s;
  flex-shrink: 0;
}

.extra-btn-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.toggle-inline-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.shadow-label-status {
  font-size: 9.5px;
  font-weight: 400;
  color: var(--text-3);
}

/* 추가 텍스트 드래그 태그 (캔버스 - 라벨 배지 플로팅 + 텍스트 박스 중심 일치) */
.draggable-extra-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  user-select: none;
  z-index: 20;
  white-space: nowrap;
  pointer-events: auto;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.draggable-extra-tag:active,
.draggable-extra-tag.active {
  cursor: move;
}

.draggable-extra-tag .tag-badge {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform-origin: center bottom;
  transform: translateX(-50%)
             translateY(calc(-3px * var(--zoom-inv, 1)))
             scale(var(--zoom-inv, 1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px 1px;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  border-radius: 3px;
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.14);
  pointer-events: auto;
  cursor: move;
  white-space: nowrap;
  z-index: 2;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.draggable-extra-tag[data-align="left"] {
  justify-content: flex-start;
}

.draggable-extra-tag[data-align="left"] .tag-badge {
  left: 0;
  transform-origin: left bottom;
  transform: translateX(0)
             translateY(calc(-3px * var(--zoom-inv, 1)))
             scale(var(--zoom-inv, 1));
}

.draggable-extra-tag[data-align="right"] {
  justify-content: flex-end;
}

.draggable-extra-tag[data-align="right"] .tag-badge {
  left: 100%;
  transform-origin: right bottom;
  transform: translateX(-100%)
             translateY(calc(-3px * var(--zoom-inv, 1)))
             scale(var(--zoom-inv, 1));
}

.draggable-extra-tag[data-align="center"] .tag-badge {
  left: 50%;
  transform-origin: center bottom;
  transform: translateX(-50%)
             translateY(calc(-3px * var(--zoom-inv, 1)))
             scale(var(--zoom-inv, 1));
}

.draggable-extra-tag .tag-text-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px dashed rgba(2, 132, 199, 0.85);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4) !important;
  font-variant-numeric: tabular-nums;
  pointer-events: auto;
  cursor: move;
  z-index: 1;
  line-height: 1.1;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.draggable-extra-tag .extra-rendered-text {
  display: inline-block;
  line-height: 1.1;
  vertical-align: middle;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.draggable-extra-tag.selected .tag-text-box {
  border-style: solid;
  border-color: #0284c7;
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

/* 마키(러버밴드) 드래그 다중 선택 박스 - 캔버스 레이어(패널 및 헤더 아래로 자연스럽게 들어감) */
.marquee-selection-box {
  position: fixed;
  border: 1.5px solid #ffffff;
  background: rgba(37, 99, 235, 0.18);
  pointer-events: none;
  z-index: 20;
  border-radius: 0;
  box-sizing: border-box;
  display: none;
}

/* 텍스트 정렬 세그먼트 컨트롤 */
.align-segmented-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.btn-align-seg {
  border: none;
  background: transparent;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: #64748b;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.btn-align-seg:hover {
  color: #0f172a;
}

.btn-align-seg.active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* 6. 재단 / 가공선 (토파즈 마크) 스타일 */
.marks-overlay-svg line,
.marks-overlay-svg rect,
.marks-overlay-svg path {
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}

/* =========================================
   7. Modal & Toast
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(3px);
}

.modal-overlay.show,
.modal-overlay.is-open,
.modal-overlay.active { display: flex; }

.modal-card {
  width: min(360px, calc(100vw - 40px));
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
}

.modal-title { margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: #ececec; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: #0070f3; transition: width .15s ease; }
.modal-status { margin-top: 8px; color: var(--text-2); font-size: 10px; text-align: right; }

.toast-msg {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  transform: translate(-50%, 8px);
  padding: 8px 12px;
  border-radius: 6px;
  background: #242424;
  color: white;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: .16s ease;
  font-size: 10.5px;
  font-weight: 500;
}

.toast-msg.show,
.toast-msg.active { opacity: 1; transform: translate(-50%, 0); }

/* =========================================
   8. Pricing & Credit Modal
   ========================================= */
.pricing-modal-card {
  width: min(780px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-header-titles h2 {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-header-titles p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .12s;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pricing-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.pricing-tab-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  cursor: pointer;
  transition: all .12s;
}

.pricing-tab-btn.active {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  position: relative;
  padding: 16px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .15s ease;
}

.pricing-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: #0d99ff;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(13,153,255,0.12);
}

.pricing-card-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0d99ff;
  color: #ffffff;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.pricing-card-badge.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pricing-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-amount {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}

.pricing-unit {
  font-size: 11px;
  color: #64748b;
}

.pricing-card-desc {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.4;
  flex-grow: 1;
}

.pricing-buy-btn {
  width: 100%;
  height: 34px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s;
}

.pricing-buy-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.pricing-card.featured .pricing-buy-btn {
  background: #0d99ff;
  border-color: #0d99ff;
  color: #ffffff;
}

.pricing-card.featured .pricing-buy-btn:hover {
  background: #0284c7;
}

/* =========================================
   Pro Plan Modal Card & Credit Usage Guide Table
   ========================================= */
.pro-plan-container {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px 0;
}

.pro-plan-card {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  border: 1.5px solid #0d99ff;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 10px 30px rgba(13, 153, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pro-plan-header {
  padding: 16px 18px 12px 18px;
  border-bottom: 1px solid #e0f2fe;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: #0d99ff;
  color: #ffffff;
  margin-bottom: 8px;
}

.pro-plan-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.pro-plan-header p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.pro-plan-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pro-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}

.pro-price {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pro-unit {
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
}

.pro-approx {
  font-size: 11.5px;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
}

.pro-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pro-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.45;
}

.pro-benefit-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-pro-subscribe {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #0d99ff;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 153, 255, 0.25);
  transition: all .15s ease;
  margin-top: 4px;
}

.btn-pro-subscribe:hover {
  background: #0284c7;
  box-shadow: 0 6px 18px rgba(13, 153, 255, 0.35);
}

/* 크레딧 차감 가이드 테이블 */
.pricing-guide-content,
.credit-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.pricing-table,
.credit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}

.pricing-table th,
.credit-table th {
  background: #f8fafc;
  padding: 9px 12px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-table td,
.credit-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.pricing-table tr:last-child td,
.credit-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td,
.credit-table tr:hover td {
  background: #f8fafc;
}

.pricing-footnote {
  padding: 10px 12px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
  margin: 0;
}

/* 내보내기 차감 모달 */
.deduction-modal-card {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deduction-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deduction-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
}

.deduction-row.highlight {
  font-weight: 600;
  color: #0f172a;
  font-size: 12.5px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

.deduction-actions {
  display: flex;
  gap: 8px;
}

.deduction-actions .btn {
  flex: 1;
  height: 36px;
  font-size: 12px;
  font-weight: 500;
}

/* =========================================
   Canvas Top & Bottom Ad Banners (최상단 레이어)
   ========================================= */
.canvas-ad-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  max-width: 880px;
  margin: 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.08);
  pointer-events: auto;
}

.canvas-ad-top {
  top: 12px;
}

.canvas-ad-bottom {
  bottom: 12px;
}

.ad-badge-pill {
  font-size: 8.5px;
  font-weight: 500;
  padding: 2px 5px;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 4px;
  color: #78716c;
  letter-spacing: 0.04em;
}

.ad-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.ad-text-title {
  font-size: 11.5px;
  font-weight: 500;
  color: #1c1917;
  white-space: nowrap;
}

.ad-text-desc {
  font-size: 11px;
  color: #78716c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-ad-upgrade {
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}

.btn-ad-upgrade:hover {
  background: #0d99ff;
  color: #ffffff;
  border-color: #0d99ff;
}

.is-pro-user .canvas-ad-bar,
.is-pro-user .ad-sidebar-slot,
.is-pro-user .ad-modal-slot {
  display: none !important;
}

/* =========================================
   번호 충돌 안내 팝오버 (Conflict Popover - NUMMARK Signature Clean Blue Theme)
   ========================================= */
.num-conflict-popover {
  position: absolute;
  z-index: 1000;
  width: 300px;
  background: #ffffff;
  border: 1.5px solid #0d99ff;
  border-radius: 12px;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(13, 153, 255, 0.12);
  padding: 14px 16px;
  font-size: 11.5px;
  color: #0f172a;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.num-conflict-header {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f172a;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.num-conflict-header svg {
  flex-shrink: 0;
  color: #0d99ff;
}

.num-conflict-body {
  font-size: 11.5px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 12px;
}

.num-conflict-body strong {
  color: #0f172a;
  font-weight: 600;
}

.num-conflict-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-conflict-apply {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
  background: #0d99ff;
  color: #ffffff;
  border: 1px solid #0d99ff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 153, 255, 0.25);
  transition: all 0.15s ease;
}

.btn-conflict-apply:hover {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(13, 153, 255, 0.35);
}

.btn-conflict-retry {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-conflict-retry:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.page-startnum-input.has-conflict {
  border-color: #0d99ff !important;
  background: #f0f9ff !important;
  box-shadow: 0 0 0 2px rgba(13, 153, 255, 0.25) !important;
  animation: inputShake 0.3s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@media (max-width: 1280px) {
  .brand-subcopy { display: none; }
  .header-actions { gap: 5px; }
}

@media (max-width: 1160px) {
  :root { --left-w: 288px; --right-w: 288px; }
  .brand-badge { display: none; }
  .header-center { margin-left: 6px; margin-right: 6px; }
  .user-profile-btn { padding: 0 8px 0 6px; gap: 4px; }
  .btn-pro-upgrade { padding: 0 7px; }
  .header-actions .btn { padding-left: 7px; padding-right: 7px; }
}

@media (max-width: 1040px) {
  .header-center { gap: 2px; padding: 2px; }
  .header-center .tool-btn { padding: 0 6px; height: 26px; font-size: 10.5px; }
  .header-actions { gap: 4px; }
  .divider { margin: 0 1px; }
  .credit-btn { padding: 0 6px; }
  .credit-recharge-pill { padding: 2px 5px; font-size: 10px; }
  .user-profile-btn { height: 26px; }
  .profile-user-name { font-size: 11px; }
  .btn-export { min-width: 76px; padding: 0 8px; }
}

/* ==========================================
   Alt 프리뷰 모드
   Alt 키를 누르고 있는 동안 편집용 UI만 숨겨 실제 출력물에 가까운 화면을 보여줍니다.
   디자인/텍스트/재단선·미싱선(실제 출력 요소)은 그대로 유지합니다.
   ========================================== */
body.is-preview-mode .tag-badge,
body.is-preview-mode .dimension-header-tag,
body.is-preview-mode .selection-ring,
body.is-preview-mode .marquee-selection-box {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.is-preview-mode .draggable-number-tag .tag-text-box,
body.is-preview-mode .draggable-extra-tag .tag-text-box {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ==========================================
   포커스 링 정리
   마우스로 클릭했을 때 브라우저 기본 검은 테두리가 남지 않게 하고,
   키보드(Tab) 탐색 시에는 :focus-visible 로 표시해 접근성을 유지합니다.
   ========================================== */
.studio-view button:focus,
.studio-view .btn:focus,
.studio-view select:focus,
.studio-view .form-select:focus,
.studio-view label:focus,
.studio-view [tabindex]:focus {
  outline: none;
}

/* 버튼류만 키보드 포커스 링을 표시합니다.
   입력창/셀렉트는 위의 :focus 테두리로 이미 표시되므로 덧대지 않습니다(두 줄 방지). */
.studio-view button:focus-visible,
.studio-view .btn:focus-visible,
.studio-view [tabindex]:focus-visible {
  outline: 1px solid var(--blue, #0d99ff);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 스튜디오 PC 전용 안내 (좁은 화면에서만 노출) */
.studio-mobile-notice { display: none; }

@media (min-width: 901px) and (max-width: 980px) {
  /* 살짝 좁은 데스크톱/태블릿 가로: 최소 폭을 유지해 가로 스크롤로 대응합니다.
     예전에는 body 에 min-width 를 걸어 랜딩 페이지까지 모바일에서 900px 로 고정되었습니다. */
  .studio-view { min-width: 900px; overflow-x: auto; }
  .app-container { min-height: 620px; }
}

@media (max-width: 900px) {
  /* 스튜디오는 정밀 캔버스 편집 도구라 좁은 화면에서는 작업이 불가능합니다.
     작업 UI 대신 PC 이용 안내만 표시합니다. */
  .studio-view { min-width: 0; }
  .studio-view > .app-header,
  .studio-view > .app-container,
  .studio-view > .modal-overlay,
  .studio-view > .toast-msg { display: none !important; }

  .studio-mobile-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 24px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .studio-mobile-card {
    width: 100%;
    max-width: 380px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 26px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  }

  .studio-mobile-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .studio-mobile-icon svg { width: 26px; height: 26px; }

  .studio-mobile-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }

  .studio-mobile-desc {
    font-size: 13px;
    line-height: 1.65;
    color: #64748b;
    margin-bottom: 24px;
  }

  .studio-mobile-back {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #09090b;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: all .15s ease;
  }

  .studio-mobile-back:hover {
    background: #1e293b;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  }

  .studio-mobile-back:active {
    background: #0f172a;
    transform: translateY(1px);
  }
}

/* =========================================
   9. BannerInside Clean Minimalist Light Theme (Studio Unified)
   ========================================= */
.landing-view {
  width: 100%;
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  overflow-x: hidden;
  position: relative;
  user-select: text;
  -webkit-user-select: text;
}

/* Interactive Mini Studio Simulation UI & Buttons keep user-select: none to avoid dragging artifacts */
.mini-studio-interactive-wrap,
.mini-studio-window,
.hero-cta-group,
.framer-pill-badge,
.landing-nav-container button,
.btn-landing-cta,
.bento-icon-wrap,
.usecase-icon-box {
  user-select: none;
  -webkit-user-select: none;
}

/* Subtle Cool Grid & Soft Ambient Light */
.framer-ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1100px;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 15%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 15%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.framer-spotlight {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.02) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.studio-view {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 작업 화면에서 드래그로 UI 텍스트가 선택되지 않도록 합니다.
     입력창은 바로 아래 규칙과 .form-input 의 user-select:text !important 로 계속 선택 가능합니다. */
  user-select: none;
  -webkit-user-select: none;
}

/* 입력 요소는 선택/복사/붙여넣기가 정상 동작해야 하므로 예외 처리 */
.studio-view input,
.studio-view textarea,
.studio-view select,
.studio-view [contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

/* BannerInside Clean Floating Pill Island Navbar */
.landing-nav-container {
  position: sticky;
  top: 18px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

/* 랜딩 콘텐츠 기준 폭.
   섹션(.landing-section)은 max-width 1160 + 좌우 패딩 24 이므로 실제 카드 열은 1112px.
   네비/히어로/하단 CTA 를 모두 이 값에 맞춰 좌우 정렬을 통일합니다. */
:root {
  --landing-content-w: 1112px;
}

.landing-nav-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 8px 6px 18px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: var(--landing-content-w);
  width: 100%;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.landing-brand .brand-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.landing-brand-title {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1;
}

.landing-brand-sub {
  margin-left: 2px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #555e6d;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-nav-link {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

/* 마우스 클릭 후 키보드(Home, PgUp, 방향키 등) 조작 시에도 테두리가 뜨지 않도록 아웃라인을 완전히 제거합니다. */
.landing-nav-link:focus,
.landing-nav-link:focus-visible,
.landing-nav-island .btn-landing-cta:focus,
.landing-nav-island .btn-landing-cta:focus-visible,
.landing-nav-island .lang-btn:focus,
.landing-nav-island .lang-btn:focus-visible,
.landing-brand:focus,
.landing-brand:focus-visible,
.hero-btn-framer-primary:focus,
.hero-btn-framer-primary:focus-visible,
.hero-btn-framer-secondary:focus,
.hero-btn-framer-secondary:focus-visible,
button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
  outline: none !important;
  box-shadow: none;
}

.landing-nav-link.family-link {
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.landing-nav-link.family-link:hover {
  color: #6d28d9;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-landing-cta {
  height: 34px;
  padding: 0 16px;
  border-radius: 9999px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  transition: all .15s ease;
}

.btn-landing-cta:hover {
  background: #1e293b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
}

/* BannerInside Hero Section */
.landing-hero {
  position: relative;
  z-index: 1;
  padding: 85px 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.framer-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #52525b;
  font-size: 11.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Pretendard', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.framer-pill-badge:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
  color: #18181b;
}

.badge-glow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: badgePulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.hero-main-title {
  font-family: 'Pretendard', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: #09090b;
  max-width: 1060px;
  margin: 0 auto 22px;
  letter-spacing: -0.04em;
  text-wrap: balance;
  word-break: keep-all;
}

.framer-gradient-accent {
  color: #2563eb;
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-subtitle {
  font-family: 'Pretendard', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  color: #52525b;
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 450;
  letter-spacing: -0.015em;
  text-wrap: balance;
  word-break: keep-all;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn-framer-primary {
  height: 48px;
  padding: 0 26px;
  font-family: 'Pretendard', 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 750;
  border-radius: 9999px;
  background: #09090b;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
  transition: all .15s ease;
}

.hero-btn-framer-primary:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.kbd-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-left: 2px;
}

.hero-btn-framer-secondary {
  height: 48px;
  padding: 0 22px;
  font-family: 'Pretendard', 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 650;
  border-radius: 9999px;
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  letter-spacing: -0.01em;
  transition: all .15s ease;
  text-decoration: none;
}

.hero-btn-framer-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.hero-trust-list {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 550;
}

.trust-item span.check-icon,
.trust-item svg.check-icon {
  color: #16a34a;
  font-weight: 800;
  stroke: #16a34a;
}

/* ==========================================
   Interactive Mini Studio Liquid Glass Showcase
   ========================================== */
.hero-visual-stage {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vibrant Multi-Color Liquid Aurora Mesh Backdrop (배경 투과를 위한 고발색 오로라 메쉬) */
.liquid-mesh-backdrop {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.85;
  mix-blend-mode: normal;
  animation: liquidFloat 9s ease-in-out infinite alternate;
}

.blob-purple {
  top: -40px;
  left: -2%;
  width: 520px;
  height: 380px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.5) 0%, rgba(99, 102, 241, 0.3) 45%, transparent 72%);
}

.blob-cyan {
  top: -50px;
  right: -2%;
  width: 540px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.5) 0%, rgba(14, 165, 233, 0.3) 45%, transparent 72%);
  animation-delay: -2.5s;
}

.blob-pink {
  bottom: -40px;
  left: 8%;
  width: 480px;
  height: 360px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.38) 0%, rgba(244, 63, 94, 0) 72%);
  animation-delay: -4.5s;
}

.blob-emerald {
  top: 30%;
  left: 40%;
  width: 450px;
  height: 340px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0) 72%);
  animation-delay: -1.5s;
}

.blob-blue {
  bottom: -50px;
  right: 10%;
  width: 500px;
  height: 380px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(37, 99, 235, 0.25) 45%, transparent 72%);
  animation-delay: -6.5s;
}

@keyframes liquidFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(22px, -18px) scale(1.08); }
  100% { transform: translate(-18px, 20px) scale(0.94); }
}

/* Double-Layer Liquid Glass Outer Bezel Frame (배경 그라데이션이 투과되는 크리스탈 글래스) */
.hero-media-slot {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.32) 100%);
  backdrop-filter: blur(24px) saturate(220%);
  -webkit-backdrop-filter: blur(24px) saturate(220%);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: 
    0 35px 90px -10px rgba(37, 99, 235, 0.28),
    0 20px 50px -10px rgba(147, 51, 234, 0.22),
    0 0 60px rgba(56, 189, 248, 0.25),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.35);
  user-select: none;
}

/* Inner Studio Window Frame */
.mini-studio-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  font-family: 'Pretendard', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 11px;
  color: #09090b;
  position: relative;
}

/* Liquid Glass Header */
.mini-studio-header {
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.8) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 16px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 5;
  position: relative;
}

.mini-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 7;
}

.mini-studio-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-studio-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.dot-red { background: #ff5f56; border: 1px solid #e0443e; }
.dot-yellow { background: #ffbd2e; border: 1px solid #dea123; }
.dot-green { background: #27c93f; border: 1px solid #1aab29; }

/* Mini Window Tabs (Like Reference Image) */
.mini-window-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-win-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  color: #52525b;
  background: rgba(241, 245, 249, 0.6);
  border: 1px solid transparent;
  cursor: default;
  transition: all .15s ease;
}

.mini-win-tab.active {
  background: #ffffff;
  color: #09090b;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

.tab-close {
  font-size: 8px;
  color: #94a3b8;
  margin-left: 2px;
}

.mini-tab-plus {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 11px;
  cursor: default;
}

/* Fixed Center Badge */
.mini-studio-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  white-space: nowrap;
  z-index: 6;
}

.mini-brand-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  color: #52525b;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 2.5px 9px;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}

.mini-header-right {
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 7;
}

.mini-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  font-size: 9.5px;
  font-weight: 550;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: default;
  user-select: none;
  white-space: nowrap;
  transition: all .15s ease;
}

.mini-header-divider {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
  margin: 0 2px;
}

.mini-btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  font-size: 9.5px;
  font-weight: 650;
  color: #ffffff;
  background: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: default;
  user-select: none;
  white-space: nowrap;
  transition: all .15s ease;
}

.mini-btn-export.is-clicking {
  transform: scale(0.93);
  background: #1e293b;
  box-shadow: 0 0 8px rgba(15, 23, 42, 0.4);
}

/* Studio Body Grid */
.mini-studio-body {
  flex: 1;
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  min-height: 0;
  position: relative;
  background: #f8fafc;
}

/* Left Sidebar */
.mini-sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  border-bottom-left-radius: 13px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  z-index: 2;
}

.mini-sidebar-tabs {
  height: 32px;
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.mini-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: none;
  cursor: default;
  position: relative;
  transition: color .15s ease;
}

.mini-tab-btn.active {
  color: #0070f3;
  font-weight: 700;
  background: transparent;
}

.mini-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #0070f3;
  border-radius: 2px 2px 0 0;
}

.mini-tab-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8px;
  font-weight: 700;
  height: 13px;
  min-width: 17px;
  padding: 0 4.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  transform: translateY(0.25px);
  transition: all .2s ease;
}

.mini-sidebar-tools {
  padding: 9px 10px 6px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-btn-open-file {
  height: 27px;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 10px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mini-bulk-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-bulk-label {
  font-size: 9px;
  font-weight: 600;
  color: #52525b;
}

.mini-qty-box {
  width: 22px;
  height: 22px;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  color: #09090b;
  line-height: 1;
}

.mini-qty-box > span {
  transform: translateY(1px);
  display: inline-flex;
  align-items: center;
}

.mini-btn-tool {
  height: 22px;
  padding: 0 7px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all .15s ease;
}

.mini-btn-tool > span {
  transform: translateY(0);
  display: inline-flex;
  align-items: center;
}

.mini-btn-tool.apply {
  background: #0d99ff;
  color: #ffffff;
  border-color: #0d99ff;
}

.mini-btn-tool.dup {
  background: #ffffff;
  color: #334155;
}

.mini-btn-tool.excel {
  background: #107c41;
  color: #ffffff;
  border-color: #0e6b37;
  position: relative;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(16, 124, 65, 0.25);
}

.mini-btn-tool.excel:hover,
.mini-btn-tool.excel.is-clicking {
  transform: scale(0.94);
  background: #0b6a36;
  box-shadow: 0 0 10px rgba(16, 124, 65, 0.4);
}

.mini-excel-template-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 500;
  color: #8a8a8a;
  padding: 3px 0;
  border-top: 1px solid #f1f5f9;
}

.mini-page-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  scrollbar-width: thin;
}

.mini-page-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
  animation: cardCascadeIn .35s ease-out both;
}

.mini-page-card.selected {
  border-color: #0d99ff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  background: #f8fbff;
}

.mini-card-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-card-name {
  font-size: 9.5px;
  font-weight: 550;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.mini-card-meta {
  font-size: 8px;
  font-weight: 400;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-card-subval {
  font-size: 8px;
  color: #2563eb;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

@keyframes cardCascadeIn {
  0% { opacity: 0; transform: translateY(-6px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.mini-sidebar-footer {
  height: 26px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 500;
  color: #52525b;
  background: #fafafa;
  flex-shrink: 0;
}

.mini-sidebar-footer b {
  color: #2563eb;
  font-weight: 700;
}

/* Center Canvas Wrap */
.mini-canvas-wrap {
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
  overflow: hidden;
}

.mini-artboard-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 380px;
  height: 235px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

/* Empty Artboard Placeholder (Clean Minimalist Text Only) */
.mini-empty-artboard {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.mini-empty-artboard.hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.empty-artboard-text {
  font-size: 11px;
  font-weight: 450;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

/* Business Card Artboard (Sharp Rectangular Print Sheet) */
.mini-card-artboard {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity .35s cubic-bezier(0.16, 1, 0.3, 1), transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.mini-card-artboard.show {
  opacity: 1;
  transform: scale(1);
}

/* Crop Marks & 4-Edge Dashed Guidelines (모서리 적색 ㄱ자 + 4면 5px 확장 점선) */
.mini-crop-mark {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1.5px solid #ef4444;
  pointer-events: none;
  z-index: 6;
}

.crop-tl { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.crop-tr { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.crop-bl { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.crop-br { bottom: -5px; right: -5px; border-left: none; border-top: none; }

.mini-crop-edge {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

.mini-crop-edge.edge-top {
  top: -5px;
  left: -5px;
  right: -5px;
  height: 0;
  border-top: 1px dashed #94a3b8;
}

.mini-crop-edge.edge-bottom {
  bottom: -5px;
  left: -5px;
  right: -5px;
  height: 0;
  border-bottom: 1px dashed #94a3b8;
}

.mini-crop-edge.edge-left {
  left: -5px;
  top: -5px;
  bottom: -5px;
  width: 0;
  border-left: 1px dashed #94a3b8;
}

.mini-crop-edge.edge-right {
  right: -5px;
  top: -5px;
  bottom: -5px;
  width: 0;
  border-right: 1px dashed #94a3b8;
}

.mini-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-card-brand {
  display: flex;
  align-items: center;
  gap: 3.5px;
}

.card-brand-text {
  font-family: 'Pretendard', 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  color: #09090b;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Authentic Studio Variable Tags (Floating Top-Mounted Label Badges + Dashed Box) */
.mini-tag-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 2px 6px;
  background: transparent;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.mini-tag-box.tag-serial {
  border: 1px dashed #059669;
}

.mini-tag-box.tag-num {
  border: 1px dashed #7c3aed;
}

.mini-tag-box.tag-extra {
  border: 1px dashed #0284c7;
}

.mini-tag-hidden {
  opacity: 0 !important;
  transform: scale(0.7) !important;
  pointer-events: none !important;
}

/* Floating Top-Mounted Label Badge */
.mini-tag-box .tag-badge-pill {
  position: absolute;
  top: -7.5px;
  left: -0.5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 7px;
  font-weight: 700;
  padding: 1px 4.5px;
  border-radius: 2.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  z-index: 4;
}

.mini-tag-box .tag-badge-pill.green { background: #059669; }
.mini-tag-box .tag-badge-pill.purple { background: #7c3aed; }
.mini-tag-box .tag-badge-pill.blue { background: #0284c7; }

.tag-val {
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 550;
  color: #09090b;
  line-height: 1;
}

.mini-card-person {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 6px 0 4px 0;
}

.mini-person-name {
  font-family: 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 750;
  color: #09090b;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  transition: all .2s ease;
}

.mini-person-title {
  font-family: 'Pretendard', sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  color: #52525b;
  margin: 0;
  transition: all .2s ease;
}

.mini-card-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 5px 0;
}

.mini-contact-text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8px;
  font-weight: 500;
  color: #52525b;
  transition: all .2s ease;
}

.mini-card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 5px;
  margin-top: 2px;
}

.mini-card-addr {
  font-size: 7.5px;
  color: #94a3b8;
  font-weight: 400;
}

/* Topmost Progress Action Guide HUD - Removed per user request */
.mini-progress-hud {
  display: none !important;
}

/* Frosted Blur Backdrop for Modal Focus (화사하고 밝은 초미세 화이트 반투명 블러) */
.mini-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 38;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 14px;
}

.mini-dialog-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Mini File Picker Modal Window (Liquid Frosted Glass Popover) */
.mini-file-dialog {
  position: absolute;
  z-index: 45;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 360px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 1);
  border-radius: 12px;
  box-shadow: 
    0 30px 85px -10px rgba(15, 23, 42, 0.45),
    0 10px 30px -5px rgba(13, 153, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 1) inset;
  opacity: 0;
  pointer-events: none;
  transition: all .28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mini-file-dialog.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.mini-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 10.5px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.mini-dialog-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-dialog-close {
  font-size: 10px;
  color: #94a3b8;
  cursor: pointer;
}

.mini-dialog-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-file-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 9px;
  font-weight: 450;
  color: #94a3b8;
}

.mini-file-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
}

.mini-file-item.selected {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.mini-file-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-file-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.mini-file-meta .file-name {
  font-size: 10px;
  font-weight: 550;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-file-meta .file-info {
  font-size: 8px;
  font-weight: 400;
  color: #64748b;
}

.mini-file-tag {
  font-size: 8px;
  font-weight: 550;
  color: #059669;
  background: #d1fae5;
  padding: 2px 6px;
  border-radius: 4px;
}

.mini-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}

.mini-btn-dialog {
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.mini-btn-dialog.cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 500;
}

.mini-btn-dialog.open {
  background: #0070f3;
  border: 1px solid #0070f3;
  color: #ffffff;
  font-weight: 650;
  box-shadow: 0 1px 4px rgba(0, 112, 243, 0.3);
}

.mini-btn-dialog.open.is-clicking {
  transform: scale(0.94);
  background: #005bb5;
  box-shadow: 0 0 10px rgba(0, 112, 243, 0.5);
}

/* Virtual Dynamic Cursor (Precision Zero-Drift Pointer) */
.mini-virtual-cursor {
  position: absolute;
  z-index: 60;
  top: 220px;
  left: 450px;
  pointer-events: none;
  transition: top 1.1s cubic-bezier(0.25, 1, 0.45, 1), left 1.1s cubic-bezier(0.25, 1, 0.45, 1);
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.35));
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  will-change: top, left;
}

.mini-virtual-cursor .cursor-svg {
  display: none;
  transform-origin: 6px 4px;
}

.mini-virtual-cursor.mode-arrow .cursor-arrow {
  display: block;
}

.mini-virtual-cursor.mode-hand .cursor-hand {
  display: block;
  margin-left: -8px;
  margin-top: 2px;
}

.mini-virtual-cursor.clicking .cursor-svg {
  transform: scale(0.88);
  transition: transform .1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-click-ring {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(13, 153, 255, 0.95);
  background: rgba(13, 153, 255, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
}

.cursor-click-ring.pulse {
  animation: clickRingPulse .42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes clickRingPulse {
  0% { transform: translate(-50%, -50%) scale(0.35); opacity: 0.95; }
  60% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Dynamic Export Progress / Success Dialog */
.mini-export-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 290px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
  padding: 14px 16px;
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: all .28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-export-dialog.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.mini-export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-export-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.export-spinner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d99ff;
  animation: exportPulse 1s infinite alternate;
}

@keyframes exportPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.mini-export-title {
  font-size: 10.5px;
  font-weight: 550;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.mini-export-pct {
  font-size: 10px;
  font-weight: 600;
  color: #0284c7;
  font-variant-numeric: tabular-nums;
}

.mini-export-progress-track {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.mini-export-progress-bar {
  height: 100%;
  width: 0%;
  background: #0070f3;
  border-radius: 999px;
  transition: width .25s ease;
}

/* Right Inspector */
.mini-inspector {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  border-bottom-right-radius: 13px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  font-size: 10px;
  z-index: 2;
}

.mini-inspect-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.mini-inspect-header {
  font-size: 10px;
  font-weight: 700;
  color: #09090b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-pill-doc {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8px;
  font-weight: 700;
  height: 13px;
  min-width: 17px;
  padding: 0 4.5px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #52525b;
  border: 1px solid #dbe3ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  transform: translateY(0.25px);
}

.mini-inspect-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mini-field-label {
  font-size: 9px;
  font-weight: 600;
  color: #52525b;
}

.mini-select-box, .mini-input-box {
  flex: 1;
  height: 22px;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  color: #09090b;
  background: #fafafa;
  transition: all .15s ease;
}

.mini-field-row-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.mini-quad-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  flex: 1;
}

.mini-val-badge {
  flex: 1;
  height: 22px;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  color: #09090b;
  line-height: 1;
  transition: all .15s ease;
}

.mini-val-badge.sm {
  height: 22px;
  font-size: 9.5px;
  gap: 2.5px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mini-val-badge span {
  font-size: 8px;
  font-weight: 600;
  color: #71717a;
  line-height: 1;
  transform: translateY(0.5px);
}

.mini-val-badge.sm span {
  font-size: 7.5px;
  transform: translateY(0.5px);
}

.mini-lock-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
}

.mini-inspect-toggles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mini-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7.5px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 9.5px;
  color: #0f172a;
  font-weight: 700;
}

.mini-switch {
  width: 26px;
  height: 14px;
  border-radius: 9999px;
  background: #cbd5e1;
  position: relative;
  transition: background .2s ease;
}

.mini-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-switch.on {
  background: #0d99ff;
}

.mini-switch.switch-marks.on {
  background: #ef4444;
}

.mini-switch.switch-serial.on {
  background: #10b981;
}

.mini-switch.switch-num.on {
  background: #7c3aed;
}

.mini-switch.switch-extra.on {
  background: #0284c7;
}

.mini-switch.on::after {
  transform: translateX(12px);
}

.mini-extra-list {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  margin-top: 8px;
}

.mini-extra-item {
  height: 23px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all .15s ease;
}

.mini-extra-item.active {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.12);
}

.mini-extra-item .extra-idx {
  width: 14px;
  height: 14px;
  border-radius: 3.5px;
  background: #f1f5f9;
  color: #475569;
  font-size: 8.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s ease;
}

.mini-extra-item.active .extra-idx {
  background: #0284c7;
  color: #ffffff;
}

.mini-extra-item .extra-input-pill {
  flex: 1 1 auto;
  height: 15px;
  background: #f8fafc;
  border-radius: 3.5px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  font-size: 8px;
  font-weight: 550;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-extra-item .extra-more-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  padding: 0 1px;
  flex-shrink: 0;
  line-height: 1;
}

.mini-extra-item .extra-more-dots svg {
  fill: #94a3b8;
}

/* Responsive scaling for mobile / tablet */
@media (max-width: 1024px) {
  .mini-studio-body {
    grid-template-columns: 200px 1fr;
  }
  .mini-inspector {
    display: none;
  }
  .mini-card-artboard {
    width: 320px;
    height: 200px;
    padding: 12px 16px;
  }
}

@media (max-width: 640px) {
  .mini-studio-body {
    grid-template-columns: 1fr;
  }
  .mini-sidebar {
    display: none;
  }
  .mini-card-artboard {
    width: 290px;
    height: 180px;
    padding: 10px 14px;
  }
  .mini-virtual-cursor {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-media-slot {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .hero-media-slot {
    aspect-ratio: 16 / 10.5;
  }
  .hero-loop-badge {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 4px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-virtual-cursor {
    transition: none !important;
  }
  .sim-frame-layer {
    transition: opacity 0.15s ease !important;
  }
}

/* BannerInside Showcase Canvas Stage */

/* BannerInside Showcase Canvas Stage */
.framer-mockup-stage {
  width: 100%;
  max-width: var(--landing-content-w);
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  position: relative;
  transition: all .25s ease;
}

.framer-mockup-stage:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.09);
}

.framer-window-frame {
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.framer-window-header {
  height: 38px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #e2e8f0;
}

.framer-dots {
  display: flex;
  gap: 6px;
}

.framer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.framer-window-title {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.framer-canvas-body {
  padding: 40px 24px;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.framer-artboard-card {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  position: relative;
}

/* Vector Selection Handles on Floating Tags */
.vector-tag {
  position: absolute;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.vector-tag.serial-tag {
  top: -14px;
  left: 20px;
  background: #059669;
  color: #ffffff;
  border: 1px solid #10b981;
}

.vector-tag.numbering-tag {
  bottom: 8px;
  right: 20px;
  background: #7c3aed;
  color: #ffffff;
  border: 1px solid #a78bfa;
}

/* Collaborative Cursor Indicator */
.framer-live-cursor {
  position: absolute;
  top: 30px;
  right: 120px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  z-index: 20;
}

.framer-cursor-pill {
  padding: 3px 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 750;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.framer-mockup-status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
}

/* =========================================
   BannerInside Bento Grid Section
   ========================================= */
.landing-section {
  padding: 88px 24px;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  scroll-margin-top: 80px;
}

.framer-section-header {
  text-align: center;
  margin-bottom: 44px;
}

.framer-section-tag {
  font-family: 'JetBrains Mono', ui-monospace, 'Pretendard', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  white-space: nowrap;
}

.framer-section-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin-bottom: 14px;
  text-wrap: balance;
}

.framer-section-desc {
  font-size: 15px;
  color: #64748b;
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.6;
  text-wrap: balance;
}

/* Language scoped typography */
html[lang="ko"] .hero-main-title,
html[lang="ko"] .framer-section-title,
html[lang="ko"] .framer-section-desc,
html[lang="ko"] .framer-cta-title,
html[lang="ko"] .bento-card-title,
html[lang="ko"] .bento-card-desc,
html[lang="ko"] .usecase-title,
html[lang="ko"] .usecase-desc {
  word-break: keep-all;
}

html[lang="ja"] {
  font-family: 'Noto Sans JP', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="ja"] .hero-main-title,
html[lang="ja"] .framer-section-title,
html[lang="ja"] .framer-section-desc,
html[lang="ja"] .framer-cta-title,
html[lang="ja"] .bento-card-title,
html[lang="ja"] .bento-card-desc,
html[lang="ja"] .usecase-title,
html[lang="ja"] .usecase-desc {
  word-break: normal;
  line-break: strict;
}

html[lang="zh"] {
  font-family: 'Noto Sans SC', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="zh"] .hero-main-title,
html[lang="zh"] .framer-section-title,
html[lang="zh"] .framer-section-desc,
html[lang="zh"] .framer-cta-title,
html[lang="zh"] .bento-card-title,
html[lang="zh"] .bento-card-desc,
html[lang="zh"] .usecase-title,
html[lang="zh"] .usecase-desc {
  word-break: normal;
}

/* Bento Grid */
.framer-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
}

.bento-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.span-3 {
  grid-column: span 3;
}

.bento-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}

.bento-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.bento-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  min-height: 40px;
}

/* Authentic Excel Spreadsheet Preview */
.bento-excel-preview {
  margin-top: auto;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.excel-sheet-window {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.excel-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
}

.excel-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #1e293b;
  font-size: 11px;
  white-space: nowrap;
}

.excel-formula-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 8px;
  flex-grow: 1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excel-formula-bar .fx-label {
  color: #94a3b8;
  font-weight: 800;
  font-style: italic;
}

.excel-formula-bar .fx-val {
  color: #334155;
}

.excel-grid-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 11px;
}

.excel-grid-row {
  display: grid;
  grid-template-columns: 28px 1.25fr 1.35fr 0.8fr;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
}

.excel-grid-row.header {
  background: #f1f5f9;
}

.excel-grid-row.subheader {
  background: #f8fafc;
  border-bottom: 1.5px solid #cbd5e1;
}

.excel-grid-cell {
  padding: 5.5px 8px;
  border-right: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.excel-grid-cell:last-child {
  border-right: none;
}

.excel-grid-cell.col-idx {
  justify-content: center;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
}

.excel-grid-cell.col-col {
  justify-content: center;
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.excel-grid-cell.col-field {
  font-weight: 700;
  color: #0f172a;
}

.excel-grid-cell.col-val {
  color: #334155;
}

.excel-grid-cell.col-right {
  justify-content: flex-end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.excel-grid-cell.col-qty {
  font-weight: 700;
  color: #2563eb;
}

.excel-grid-cell.active-cell {
  outline: 2px solid #107c41;
  outline-offset: -2px;
  background: #f0fdf4;
  color: #15803d;
}

.excel-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 3px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 10.5px;
}

.excel-tab-btn.active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-weight: 700;
  color: #107c41;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03);
}

.excel-footer-info {
  color: #64748b;
  font-size: 10.5px;
  opacity: 0.85;
}

/* Unified Bento Sample Box (for Cards 2, 3, 4, 5) */
.bento-sample-box {
  margin-top: auto;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

.bento-sample-box.theme-mono {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
}

.bento-sample-box.theme-purple {
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  color: #7c3aed;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
}

.bento-sample-box.theme-amber {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.bento-sample-box.theme-cyan {
  background: #ecfeff;
  border: 1px solid #cffafe;
  color: #0e7490;
}

.bento-keyboard-hud {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.hud-keys {
  display: flex;
  gap: 4px;
}

.hud-key {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.hud-coords {
  font-size: 11.5px;
  font-family: monospace;
  color: #2563eb;
  font-weight: 700;
}

/* =========================================
   Universal Use-Cases Grid (6종 글로벌 출력 사례)
   ========================================= */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  padding: 24px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: all .2s ease;
  position: relative;
}

.usecase-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.usecase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usecase-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.usecase-tag {
  font-size: 10.5px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.usecase-tag.hot {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.usecase-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.usecase-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  flex-grow: 1;
}

/* =========================================
   BannerInside 3-Step Workflow & Efficiency
   ========================================= */
.framer-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.framer-step-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  position: relative;
  transition: all .2s ease;
}

.framer-step-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.framer-step-num {
  font-size: 26px;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: -0.04em;
}

/* =========================================
   BannerInside Pricing Cards
   ========================================= */
.framer-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.framer-pricing-card {
  padding: 28px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: all .2s ease;
  box-sizing: border-box;
}

.framer-pricing-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.framer-pricing-card.featured {
  background: #ffffff;
  border: 2px solid #2563eb;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

.framer-pricing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 48px;
  margin-bottom: 14px;
}

.framer-price-value {
  font-size: 28px;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.03em;
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: baseline;
  margin: 0 0 12px 0;
}

.framer-price-value span {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.framer-price-value span[data-price-unit] {
  margin-left: 6px;
}

.framer-pricing-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  min-height: 68px;
  display: block;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.framer-pricing-desc .pricing-pro-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
  line-height: 1.45;
}

.framer-pricing-desc .pricing-pro-bullet:last-child {
  margin-bottom: 0;
}

.framer-pricing-desc .pricing-pro-bullet .bullet-dot {
  color: #2563eb;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  flex-shrink: 0;
}

.framer-pricing-card .btn-landing-cta {
  margin-top: auto;
  width: 100%;
  height: 38px;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-token-nowrap {
  white-space: nowrap;
}

.pricing-token-unit {
  white-space: nowrap;
}

.desktop-only {
  display: inline;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* Bottom CTA Banner */
.framer-bottom-cta {
  margin: 40px auto 80px;
  max-width: 1160px;
  padding: 64px 32px;
  border-radius: 24px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #1e293b;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.framer-bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 350px at 100% 0%, rgba(37, 99, 235, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.framer-cta-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.03em;
  position: relative;
  text-wrap: balance;
}

.framer-cta-desc {
  font-size: 15px;
  color: #d6d3d1;
  max-width: 680px;
  line-height: 1.6;
  position: relative;
  text-wrap: balance;
}

.framer-bottom-cta .hero-btn-framer-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.framer-bottom-cta .hero-btn-framer-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
}

/* Minimalist Utility Footer */
.landing-footer {
  border-top: 1px solid #e2e8f0;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
  font-size: 12.5px;
  color: #64748b;
}

/* 히어로 미디어 슬롯 플레이스홀더 (폴백) */
.hero-media-slot:empty {
  border: 1px dashed #e0ddd8;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(250,249,247,0.6) 100%);
}

/* ---------- 반응형 (데스크톱 1160px 이하 및 태블릿/모바일) ---------- */
@media (max-width: 1120px) {
  .framer-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .landing-section {
    padding: 72px 20px;
  }
  .framer-section-header {
    margin-bottom: 36px;
  }
  .framer-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-2,
  .bento-card.span-3 {
    grid-column: span 2;
  }
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .framer-bottom-cta {
    padding: 48px 24px;
    margin: 32px 20px 60px;
  }
  .hero-media-slot {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .landing-section {
    padding: 60px 16px;
  }
  .framer-section-header {
    margin-bottom: 28px;
  }
  .framer-bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2,
  .bento-card.span-3 {
    grid-column: span 1;
  }
  .framer-workflow-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-bento-grid {
    grid-template-columns: 1fr;
  }
  .landing-nav-links {
    display: none;
  }
  .framer-bottom-cta {
    padding: 40px 20px;
    margin: 28px 16px 56px;
  }
  .mini-win-tab:not(.active),
  .mini-tab-plus {
    display: none;
  }
  .mini-studio-title .mini-brand-badge {
    display: none;
  }
}

/* ---------- 반응형 (모바일) ---------- */
@media (max-width: 640px) {
  .landing-nav-container {
    padding: 0 10px;
  }
  .landing-nav-island {
    padding: 6px 8px;
    border-radius: 14px;
  }
  .landing-brand-sub {
    display: none;
  }
  .landing-nav-island .btn-landing-cta,
  .landing-nav-actions button,
  .landing-nav-actions .current-lang-label,
  .landing-nav-actions .lang-btn {
    white-space: nowrap;
    font-size: 11.5px;
  }
  .landing-nav-island .btn-landing-cta,
  .landing-nav-island .btn-landing-cta span {
    white-space: nowrap;
  }
  .landing-nav-island .btn-landing-cta {
    padding-left: 12px;
    padding-right: 10px;
  }
  .landing-hero {
    padding: 56px 18px 44px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-group > * {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-list {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .kbd-badge {
    display: none;
  }
  .hero-media-slot {
    aspect-ratio: 16 / 10;
    margin-top: 4px;
    border-radius: 10px;
  }
  .mini-window-tabs {
    display: none;
  }
  .mini-studio-title .mini-brand-badge {
    display: none;
  }
  .mini-header-right .mini-header-btn,
  .mini-header-right .mini-header-divider {
    display: none;
  }
  .landing-section {
    padding: 52px 16px;
  }
  .usecase-grid {
    grid-template-columns: 1fr;
  }
  .framer-pricing-grid {
    grid-template-columns: 1fr;
  }
  .framer-bottom-cta {
    padding: 36px 18px;
    margin: 24px 16px 40px;
    border-radius: 16px;
  }
  .landing-footer {
    padding: 28px 16px 24px;
    gap: 14px;
    font-size: 11.5px;
  }
}

/* ==========================================
   Print Shield (브라우저 Print / PDF 저장 우회 방지)
   ========================================== */
/* =========================================
   Roadmap & Changelog Section Styles
   ========================================= */
.roadmap-tab-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  margin-top: 24px;
  border: 1px solid #e2e8f0;
}

.roadmap-tab-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.roadmap-tab-btn:hover {
  color: #0f172a;
}

.roadmap-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.roadmap-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 32px auto 0 auto;
  text-align: left;
}

@media (min-width: 900px) {
  #landingRoadmapUpcoming {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .roadmap-bento-grid {
    grid-template-columns: 1fr;
  }
}

.roadmap-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 10px 24px -8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.roadmap-card.roadmap-card-available {
  border: 1.5px solid #10b981;
}

.roadmap-card.roadmap-card-available:hover {
  transform: translateY(-3px);
  border-color: #059669;
  box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.16);
}

.roadmap-card.roadmap-card-wip {
  border: 1.5px solid #2563eb;
}

.roadmap-card.roadmap-card-wip:hover {
  transform: translateY(-3px);
  border-color: #1d4ed8;
  box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.16);
}

.roadmap-card.roadmap-card-planned {
  border: 1.5px solid #8b5cf6;
}

.roadmap-card.roadmap-card-planned:hover {
  transform: translateY(-3px);
  border-color: #7c3aed;
  box-shadow: 0 16px 36px -8px rgba(139, 92, 246, 0.16);
}

.roadmap-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #93c5fd;
  box-shadow: 0 4px 20px -4px rgba(59, 130, 246, 0.12);
}

@media (max-width: 768px) {
  .roadmap-card-featured {
    grid-column: span 1;
  }
}

.roadmap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.roadmap-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge-available {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-wip {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.badge-planned {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.roadmap-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
}

.roadmap-card-featured .roadmap-icon-wrap {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.roadmap-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.roadmap-card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.roadmap-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roadmap-tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.roadmap-card-featured .roadmap-tech-pill {
  background: #eff6ff;
  color: #1e40af;
  border-color: #dbeafe;
}

/* Changelog Timeline */
.changelog-timeline {
  max-width: 860px;
  margin: 32px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.changelog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.changelog-card.active-version {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.changelog-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.changelog-version-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-num {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.version-badge-latest {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
}

.changelog-date {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.changelog-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.7;
}

.changelog-list li {
  margin-bottom: 6px;
}

.changelog-list strong {
  color: #0f172a;
  font-weight: 700;
}

.changelog-list code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #0284c7;
  font-weight: 600;
}

/* Popover Roadmap Box */
.popover-roadmap-box {
  margin: 0;
}

.btn-popover-roadmap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #0369a1;
  text-align: left;
}

.btn-popover-roadmap:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px -1px rgba(2, 132, 199, 0.15);
}

.popover-roadmap-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-badge-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  background: #0284c7;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: -0.01em;
}

.popover-roadmap-title {
  font-size: 12px;
  font-weight: 750;
  color: #0c4a6e;
}

/* Global Modal Overlay (Roadmap, Pricing, Credit Deduction)
   기존 modal-overlay는 JS에서 .show 토글로 열고 닫으므로
   기본값은 반드시 display:none 이어야 합니다.
   .show가 붙을 때만 flex로 표시합니다. */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay.show {
  display: flex;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Studio Roadmap Modal */
.roadmap-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 920px;
  max-width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-modal-header {
  padding: 26px 28px 18px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.roadmap-modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roadmap-modal-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  letter-spacing: 0.03em;
}

.roadmap-modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.roadmap-modal-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.roadmap-modal-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 28px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.roadmap-modal-content-scroll {
  padding: 28px;
  overflow-y: auto;
  max-height: calc(88vh - 160px);
}

.roadmap-modal-content-scroll .roadmap-bento-grid {
  margin-top: 0;
}

.roadmap-modal-content-scroll .changelog-timeline {
  margin-top: 0;
}

.print-shield-notice {
  display: none;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  /* 실제 DOM에 존재하는 셀렉터 기준으로 작업 화면/미리보기/생산 결과를 숨깁니다. */
  #landingView,
  #studioView,
  #appContainer,
  #viewport,
  .canvas-viewport,
  #artboardContainer,
  .artboard-container,
  .artboard-guide-overlay,
  #canvasMarks,
  canvas,
  #pageSidebar,
  .page-sidebar,
  #propertyInspector,
  .property-inspector,
  .app-header,
  .framer-bottom-cta,
  .landing-footer,
  .modal-overlay,
  .toast-msg {
    display: none !important;
  }

  .print-shield-notice {
    display: flex !important;
    visibility: visible !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
    padding: 40px;
    box-sizing: border-box;
    z-index: 999999;
  }

  .print-shield-notice * {
    visibility: visible !important;
  }

  .print-shield-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: #f0f9ff;
    color: #0284c7;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid #bae6fd;
  }

  .print-shield-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }

  .print-shield-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.65;
    max-width: 480px;
  }
}

/* =========================================
   Standalone Legal & Support Pages Styling
   ========================================= */
html:has(body.legal-page-body) {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
}

body.legal-page-body {
  margin: 0;
  padding: 0;
  background-color: #f8fafc !important;
  color: #1e293b;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 650;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  transition: all 0.15s ease;
}

.legal-back-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-lang-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 2px;
  border: 1px solid #e2e8f0;
}

.legal-lang-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.legal-lang-btn:hover {
  color: #0f172a;
}

.legal-lang-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.legal-container {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 44px 48px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 28px 20px;
  }
}

.legal-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.legal-title {
  font-size: 32px;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.legal-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-highlight-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 13.5px;
  color: #166534;
  line-height: 1.6;
}

.legal-highlight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.legal-highlight-title svg {
  flex-shrink: 0;
  display: inline-block;
}

.legal-highlight-box.blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.legal-highlight-box.amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.legal-section {
  margin: 32px 0;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-section h3 {
  font-size: 15px;
  font-weight: 750;
  color: #1e293b;
  margin: 18px 0 8px;
}

.legal-section p, .legal-section li {
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
}

.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-footer-simple {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.legal-footer-links a {
  color: #475569;
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: #0f172a;
  text-decoration: underline;
}


