:root {
  color-scheme: light;
  --font-ui: "Segoe UI Variable", "Segoe UI", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --blue-600: #0867e8;
  --blue-500: #1674ee;
  --blue-100: #eaf3ff;
  --ink-900: #17191d;
  --ink-700: #353a43;
  --ink-500: #6d7480;
  --line: rgba(90, 106, 125, 0.22);
  --surface: rgba(250, 252, 255, 0.91);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --shadow-window: 0 22px 55px rgba(19, 49, 82, 0.28), 0 2px 10px rgba(20, 48, 82, 0.18);
  --radius-window: 14px;
  --radius-panel: 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink-900);
  background: #f3f7fc;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(9, 103, 232, 0.32);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.desktop-shell {
  position: relative;
  min-height: 1024px;
  height: max(100svh, 900px);
  overflow: hidden;
  isolation: isolate;
  background-color: #b9dcfa;
  background-image: url("../assets/images/desktop-wallpaper.png");
  background-position: center;
  background-size: cover;
}

.desktop-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(198, 226, 249, 0.06);
  pointer-events: none;
}

.app-window {
  position: absolute;
  top: 6.6%;
  left: calc(50% - 62px);
  display: flex;
  flex-direction: column;
  width: min(1128px, calc(100vw - 220px));
  height: min(770px, calc(100% - 138px));
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(71, 91, 113, 0.46);
  border-radius: var(--radius-window);
  background: var(--surface);
  box-shadow: var(--shadow-window);
  backdrop-filter: blur(28px) saturate(125%);
  transform: translateX(-50%);
  transition:
    width 180ms ease,
    height 180ms ease,
    top 180ms ease,
    left 180ms ease,
    opacity 160ms ease,
    transform 180ms ease;
}

.app-window.is-maximized {
  top: 18px;
  left: 50%;
  width: calc(100vw - 36px);
  height: calc(100% - 100px);
}

.app-window.is-minimized {
  top: auto;
  bottom: 82px;
  left: 22%;
  width: 330px;
  height: 58px;
  min-height: 0;
}

.app-window.is-minimized .app-body {
  display: none;
}

.app-window.is-closed {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.96);
  pointer-events: none;
}

.titlebar {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 68px;
  align-items: center;
  justify-content: space-between;
  padding-left: 24px;
  border-bottom: 1px solid rgba(96, 117, 139, 0.14);
  background: rgba(242, 248, 255, 0.65);
}

.brand,
.footer-brand,
.start-menu-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #116be6;
  box-shadow: 0 5px 12px rgba(17, 107, 230, 0.24);
  font-size: 21px;
}

.brand-mark.small {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 15px;
}

.window-controls {
  align-self: stretch;
  display: flex;
}

.window-controls button {
  width: 50px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  transition: background 120ms ease;
}

.window-controls button:hover {
  background: rgba(22, 42, 65, 0.08);
}

.window-controls .close-button:hover {
  color: #fff;
  background: #c42b1c;
}

.app-body {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 10px;
  padding: 0 10px 14px;
}

.preview-column,
.control-panel {
  min-width: 0;
  min-height: 0;
}

.preview-column {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) 62px;
  gap: 8px;
}

.edit-history-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(115, 132, 151, 0.18);
  border-radius: 9px;
  background: rgba(252, 253, 255, 0.78);
}

.edit-history-toolbar button {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.edit-history-toolbar button:hover:not(:disabled) {
  border-color: rgba(8, 103, 232, 0.24);
  color: var(--blue-600);
  background: var(--blue-100);
}

.edit-history-toolbar button:disabled {
  cursor: default;
  opacity: 0.38;
}

.edit-history-toolbar i {
  font-size: 15px;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: rgba(108, 123, 141, 0.2);
}

.preview-stage {
  --preview-gutter-x: 60px;
  --preview-gutter-y: 60px;

  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  cursor: default;
  border: 1px solid rgba(123, 139, 157, 0.14);
  border-radius: var(--radius-panel);
  background-color: #eef0f3;
  background-image:
    linear-gradient(45deg, #dde1e6 25%, transparent 25%),
    linear-gradient(-45deg, #dde1e6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dde1e6 75%),
    linear-gradient(-45deg, transparent 75%, #dde1e6 75%);
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
}

.preview-stage[aria-disabled="true"] {
  cursor: wait;
}

.preview-scroll-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  overflow: auto;
  align-items: safe center;
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 120, 140, 0.3) transparent;
}

.preview-media {
  position: relative;
  display: block;
  flex-shrink: 0;
  max-width: none;
  max-height: none;
  filter: drop-shadow(0 8px 16px rgba(29, 43, 58, 0.16));
  user-select: none;
  transition:
    width 120ms ease-out,
    height 120ms ease-out;
}

.preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.subject-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.subject-overlay[hidden] {
  display: none;
}

.subject-overlay img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.subject-overlay span {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 5px;
  color: #fff;
  background: #0867e8;
  box-shadow: 0 4px 10px rgba(8, 49, 101, 0.3);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.upload-hint {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(96, 116, 139, 0.18);
  border-radius: 7px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 14px rgba(42, 58, 75, 0.09);
  font-size: 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.preview-stage:hover .upload-hint,
.preview-stage:focus-visible .upload-hint {
  opacity: 1;
  transform: translateY(0);
}

.drop-overlay {
  position: absolute;
  inset: 16px;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 2px dashed rgba(8, 103, 232, 0.6);
  border-radius: 10px;
  color: var(--blue-600);
  background: rgba(235, 245, 255, 0.92);
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.drop-overlay i {
  font-size: 34px;
}

.preview-stage.is-dragging .drop-overlay {
  opacity: 1;
}

.preview-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid rgba(115, 132, 151, 0.18);
  border-radius: 9px;
  color: var(--ink-500);
  background: rgba(252, 253, 255, 0.78);
  font-size: 13px;
}

.preview-status > span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.preview-status i {
  margin-right: 4px;
  font-size: 19px;
}

.preview-status strong {
  color: var(--ink-700);
  font-weight: 550;
}

.preview-status .accent-text {
  color: var(--blue-600);
}

.status-divider {
  width: 1px;
  height: 26px;
  margin-left: auto;
  background: rgba(108, 123, 141, 0.2);
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 25px 20px;
  overflow-y: auto;
  border: 1px solid rgba(109, 128, 149, 0.15);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.72);
}

.editor-accordion {
  display: grid;
  gap: 8px;
}

.tool-section {
  overflow: hidden;
  border: 1px solid rgba(91, 110, 132, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.tool-section.is-open {
  border-color: rgba(8, 103, 232, 0.32);
  background: rgba(255, 255, 255, 0.72);
}

.tool-section-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.tool-section-toggle > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tool-section-toggle > span i {
  color: var(--blue-600);
  font-size: 18px;
}

.toggle-chevron {
  color: var(--ink-500);
  transition: transform 160ms ease;
}

.tool-section-toggle[aria-expanded="true"] .toggle-chevron {
  transform: rotate(180deg);
}

.tool-section-content {
  display: grid;
  gap: 12px;
  padding: 4px 13px 14px;
  border-top: 1px solid rgba(91, 110, 132, 0.14);
}

.tool-section-content[hidden] {
  display: none;
}

.tool-subheading {
  margin: 5px 0 -3px;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.transform-heading {
  margin-top: 2px;
}

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

.transform-grid button {
  display: grid;
  min-height: 62px;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 7px 4px;
  border: 1px solid rgba(84, 104, 126, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 10px;
}

.transform-grid button:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-100);
}

.transform-grid i {
  font-size: 19px;
}

.background-tool-copy {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.55;
}

.subject-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(24, 132, 67, 0.23);
  border-radius: 7px;
  color: #196b3a;
  background: rgba(233, 248, 239, 0.86);
}

.subject-status[hidden] {
  display: none;
}

.subject-status > i {
  margin-top: 1px;
  font-size: 17px;
}

.subject-status > div {
  display: grid;
  line-height: 1.4;
}

.subject-status strong {
  font-size: 11px;
}

.subject-status span {
  color: #4d6f5a;
  font-size: 10px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-label,
.content-kicker {
  margin: 0 0 4px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.upload-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(83, 104, 128, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  font-size: 12px;
}

.upload-button:hover {
  border-color: rgba(8, 103, 232, 0.5);
  color: var(--blue-600);
  background: #fff;
}

.upload-button:disabled,
.tool-section-toggle:disabled,
.transform-grid button:disabled,
.preset-grid button:disabled,
.ratio-link:disabled {
  cursor: wait;
  opacity: 0.55;
}

.dimension-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: 8px;
}

.dimension-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 550;
}

.number-field {
  display: flex;
  height: 44px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(91, 110, 132, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.number-field:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(22, 116, 238, 0.12);
}

.number-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.number-field > span {
  padding-right: 10px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 500;
}

.ratio-link {
  display: grid;
  width: 38px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(91, 110, 132, 0.25);
  border-radius: 7px;
  color: var(--blue-600);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-size: 19px;
}

.ratio-link[aria-pressed="false"] {
  color: var(--ink-500);
  background: rgba(235, 238, 243, 0.8);
}

.ratio-row,
.slider-heading,
.slider-limits,
.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ratio-row {
  color: var(--ink-500);
  font-size: 12px;
}

.check-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  cursor: pointer;
  font-size: 13px;
}

.check-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue-600);
}

.slider-group {
  display: grid;
  gap: 9px;
}

.slider-heading {
  color: var(--ink-700);
  font-size: 13px;
}

.slider-heading output {
  min-width: 58px;
  padding: 6px 8px;
  border: 1px solid rgba(91, 110, 132, 0.23);
  border-radius: 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 5px 0;
  accent-color: var(--blue-600);
  cursor: pointer;
}

.slider-limits {
  color: var(--ink-500);
  font-size: 10px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.preset-grid button {
  height: 42px;
  border: 1px solid rgba(84, 104, 126, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 13px;
}

.preset-grid button:hover,
.preset-grid button.is-active {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-100);
}

.primary-button,
.secondary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.compact-button {
  min-height: 46px;
}

.primary-button {
  border: 1px solid #0759cc;
  color: #fff;
  background: #0969e8;
  box-shadow: 0 6px 14px rgba(9, 105, 232, 0.2);
  font-size: 15px;
  font-weight: 650;
}

.primary-button:hover {
  background: #075fcf;
  box-shadow: 0 8px 18px rgba(9, 105, 232, 0.28);
}

.secondary-button {
  border: 1px solid rgba(81, 102, 125, 0.27);
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.68);
}

.secondary-button:not(.download-button):hover {
  border-color: rgba(8, 103, 232, 0.48);
  background: #fff;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.secondary-button > i,
.primary-button > i {
  font-size: 19px;
}

.secondary-button > span {
  display: grid;
  text-align: left;
}

.secondary-button strong {
  font-size: 14px;
  line-height: 1.35;
}

.secondary-button small {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 400;
}

/* PNG 다운로드 버튼 강조 */
.download-button {
  min-height: 62px;
  background: linear-gradient(160deg, #1db954 0%, #17a348 100%);
  border: 1px solid #14913f;
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
  font-size: 15.5px;
}

.download-button > i {
  font-size: 22px;
}

.download-button strong {
  font-size: 15px;
  font-weight: 700;
}

.download-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
}

.download-button:hover {
  background: linear-gradient(160deg, #18a84c 0%, #138f3a 100%);
  border-color: #117535;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.38);
}

.download-button:disabled {
  background: linear-gradient(160deg, #1db954 0%, #17a348 100%);
  opacity: 0.5;
}

.ai-progress {
  display: grid;
  gap: 7px;
}

.ai-progress[hidden] {
  display: none;
}

.progress-copy {
  color: var(--ink-500);
  font-size: 11px;
}

.ai-progress progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: var(--blue-600);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: auto;
  padding: 12px 13px;
  border: 1px solid rgba(91, 129, 172, 0.2);
  border-radius: 7px;
  color: var(--ink-700);
  background: rgba(234, 244, 255, 0.6);
}

.privacy-note i {
  color: var(--blue-600);
  font-size: 21px;
}

.privacy-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.privacy-note span {
  display: block;
  color: var(--ink-500);
}

.desktop-shortcut {
  position: absolute;
  top: 32px;
  left: 28px;
}

.desktop-shortcut button {
  display: grid;
  width: 94px;
  gap: 7px;
  border: 0;
  color: #0f2740;
  background: transparent;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.shortcut-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: auto;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #116be6;
  box-shadow: 0 7px 16px rgba(18, 83, 158, 0.3);
  font-size: 22px;
}

.taskbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(103, 128, 153, 0.22);
  background: rgba(240, 247, 255, 0.8);
  box-shadow: 0 -8px 30px rgba(56, 91, 127, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.taskbar.is-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.taskbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.taskbar-center span,
.start-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 7px;
  font-size: 21px;
}

.taskbar-center span {
  color: #1865b9;
}

.taskbar-center .active-app {
  position: relative;
  color: #fff;
  background: #176cdc;
}

.taskbar-center .active-app::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: #126be2;
}

.system-tray {
  position: absolute;
  right: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #253444;
  font-size: 15px;
}

.system-tray span {
  min-width: 72px;
  font-size: 12px;
  text-align: right;
}

.start-button {
  position: absolute;
  right: 18px;
  border: 0;
  color: #fff;
  background: #126ddd;
  box-shadow: 0 4px 12px rgba(14, 84, 168, 0.2);
  cursor: pointer;
}

.start-button:hover,
.start-button[aria-expanded="true"] {
  background: #075ec9;
}

.start-menu {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 90;
  width: 246px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(67, 86, 108, 0.42);
  border-radius: 11px;
  background: rgba(236, 244, 253, 0.88);
  box-shadow: 0 18px 44px rgba(29, 54, 82, 0.3);
  backdrop-filter: blur(26px) saturate(135%);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 180ms ease;
}

.start-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.start-menu-title {
  padding: 3px 8px 12px;
  border-bottom: 1px solid rgba(74, 94, 116, 0.16);
  font-size: 13px;
}

.start-menu ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.start-menu a {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  border-radius: 7px;
  color: #2d3743;
  text-decoration: none;
  font-size: 13px;
}

.start-menu a:hover,
.start-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.start-menu a i {
  width: 22px;
  color: #4a5a6d;
  font-size: 21px;
  text-align: center;
}

.start-menu .menu-divider {
  height: 1px;
  margin: 6px 7px;
  background: rgba(74, 94, 116, 0.16);
}

.toast-region {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 120;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(72, 91, 112, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(24, 48, 75, 0.2);
  animation: toast-in 180ms ease both;
}

.toast.is-success i {
  color: #168443;
}

.toast.is-error i {
  color: #c42b1c;
}

.toast p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.content-area {
  background: #f4f7fb;
}

.content-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.content-container article {
  scroll-margin-top: 32px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 90px;
  align-items: start;
}

.section-copy h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-copy > p:not(.content-kicker),
.section-heading > p:not(.content-kicker) {
  color: #596273;
}

.section-copy > p:not(.content-kicker) {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.85;
}

.trust-list {
  margin: 10px 0 0;
}

.trust-list div {
  padding: 22px 0;
  border-bottom: 1px solid #dce2ea;
}

.trust-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.trust-list dt i {
  color: var(--blue-600);
  font-size: 21px;
}

.trust-list dd {
  margin: 8px 0 0 31px;
  color: #697384;
  font-size: 14px;
}

.features-section,
.guide-section,
.privacy-section,
.faq-section {
  margin-top: 150px;
}

.section-heading {
  max-width: 760px;
}

.section-heading > p:not(.content-kicker) {
  margin: 16px 0 0;
  font-size: 16px;
}

.feature-list {
  display: grid;
  margin-top: 56px;
  border-top: 1px solid #d8e0e9;
  grid-template-columns: repeat(2, 1fr);
}

.feature-list section {
  position: relative;
  min-height: 270px;
  padding: 42px 44px 38px 0;
  border-bottom: 1px solid #d8e0e9;
}

.feature-list section:nth-child(odd) {
  padding-right: 60px;
  border-right: 1px solid #d8e0e9;
}

.feature-list section:nth-child(even) {
  padding-left: 60px;
}

.feature-list > section > i {
  color: var(--blue-600);
  font-size: 28px;
}

.feature-list h3 {
  margin: 20px 0 10px;
  font-size: 21px;
}

.feature-list p {
  margin: 0;
  color: #626d7d;
  line-height: 1.8;
}

.feature-number {
  position: absolute;
  top: 42px;
  right: 24px;
  color: #aab4c1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.guide-steps {
  display: grid;
  margin: 50px 0 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-steps li {
  position: relative;
  min-height: 190px;
  padding: 64px 28px 28px;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(39, 68, 99, 0.06);
  counter-increment: steps;
}

.guide-steps li::before {
  content: counter(steps);
  position: absolute;
  top: 22px;
  left: 28px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
}

.guide-steps strong {
  font-size: 18px;
}

.guide-steps p {
  margin: 10px 0 0;
  color: #667182;
}

.privacy-section {
  padding: 72px;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(36, 64, 93, 0.06);
}

.policy-copy {
  display: grid;
  margin-top: 46px;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 54px;
}

.policy-copy h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.policy-copy p {
  margin: 0;
  color: #657081;
  font-size: 14px;
  line-height: 1.85;
}

.faq-list {
  margin-top: 40px;
  border-top: 1px solid #d7e0e9;
}

.faq-list details {
  border-bottom: 1px solid #d7e0e9;
}

.faq-list summary {
  position: relative;
  padding: 24px 42px 24px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 8px;
  color: var(--blue-600);
  font-size: 26px;
  font-weight: 300;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 800px;
  margin: -5px 0 24px;
  color: #657081;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  padding: 54px max(32px, calc((100vw - 1160px) / 2));
  color: #dbe7f5;
  background: #152538;
}

.site-footer .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-size: 16px;
}

.footer-brand {
  width: fit-content;
  text-decoration: none;
}

.site-footer p {
  margin: 12px 0 0;
  color: #9db0c4;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.site-footer nav a {
  color: #dbe7f5;
  font-size: 13px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(219, 231, 245, 0.12);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 1100px) {
  .app-window {
    left: 50%;
    width: calc(100vw - 48px);
  }

  .app-body {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .system-tray {
    display: none;
  }
}

@media (max-width: 820px) {
  .desktop-shell {
    height: auto;
    min-height: 0;
    padding: 20px 14px 92px;
    overflow: visible;
  }

  .app-window,
  .app-window.is-maximized,
  .app-window.is-minimized {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 12px;
    transform: none;
  }

  .app-window.is-closed {
    display: none;
  }

  .titlebar {
    flex-basis: 58px;
    padding-left: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .brand h1 {
    font-size: 16px;
  }

  .window-controls button {
    width: 42px;
  }

  .window-controls button[data-window-action="minimize"],
  .window-controls button[data-window-action="maximize"] {
    display: none;
  }

  .app-body {
    grid-template-columns: 1fr;
    padding: 0 8px 8px;
  }

  .preview-column {
    grid-template-rows: 44px minmax(340px, 60vw) auto;
  }

  .preview-stage {
    --preview-gutter-x: 28px;
    --preview-gutter-y: 28px;
  }

  .preview-media {
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .preview-status {
    min-height: 62px;
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .status-divider {
    display: none;
  }

  .control-panel {
    padding: 24px 18px;
  }

  .desktop-shortcut {
    position: relative;
    top: auto;
    left: auto;
    min-height: 360px;
    padding-top: 80px;
  }

  .taskbar {
    height: 64px;
    justify-content: flex-start;
    padding-left: 14px;
  }

  .taskbar-center {
    gap: 2px;
  }

  .taskbar-center span {
    width: 42px;
    height: 42px;
  }

  .start-button {
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .start-menu {
    right: 12px;
    bottom: 74px;
    width: min(300px, calc(100vw - 24px));
  }

  .content-container {
    width: min(100% - 32px, 720px);
    padding: 80px 0;
  }

  .intro-section,
  .feature-list,
  .guide-steps,
  .policy-copy {
    grid-template-columns: 1fr;
  }

  .intro-section {
    gap: 38px;
  }

  .features-section,
  .guide-section,
  .privacy-section,
  .faq-section {
    margin-top: 96px;
  }

  .feature-list section,
  .feature-list section:nth-child(odd),
  .feature-list section:nth-child(even) {
    min-height: 0;
    padding: 34px 40px 34px 0;
    border-right: 0;
  }

  .privacy-section {
    padding: 34px 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 46px 24px 90px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .desktop-shell {
    padding-right: 8px;
    padding-left: 8px;
  }

  .window-controls .close-button {
    width: 46px;
  }

  .app-body {
    padding-right: 5px;
    padding-left: 5px;
  }

  .preview-column {
    grid-template-rows: 44px 300px auto;
  }

  .edit-history-toolbar button {
    padding: 0 8px;
  }

  .edit-history-toolbar button span {
    display: none;
  }

  .preview-status {
    display: grid;
    gap: 4px;
  }

  .preview-status > span {
    white-space: normal;
  }

  .panel-heading {
    align-items: center;
  }

  .dimension-grid {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  }

  .ratio-link {
    width: 32px;
  }

  .number-field input {
    padding-left: 8px;
  }

  .preset-grid {
    gap: 5px;
  }

  .taskbar-center span:nth-child(-n + 2) {
    display: none;
  }

  .section-copy h2,
  .section-heading h2 {
    font-size: 28px;
  }
}

/* ── Zoom controls ─────────────────────────────────────────────────── */

.zoom-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: 1px solid rgba(96, 116, 139, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(42, 58, 75, 0.1);
  backdrop-filter: blur(10px);
  user-select: none;
}

.zoom-controls button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(91, 110, 132, 0.2);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-700);
}

.zoom-controls button:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-100);
}

.zoom-text-icon {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.zoom-field {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
}

.zoom-field #zoomValueDisplay {
  display: inline-block;
  min-width: 36px;
  padding: 4px 6px;
  border: 1px solid rgba(91, 110, 132, 0.15);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
}

.zoom-field > span:last-child {
  font-size: 11px;
  color: var(--ink-500);
}

/* ── Crop overlay ───────────────────────────────────────────────────── */

.crop-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.crop-overlay[hidden] {
  display: none;
}

.crop-rect {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* ── Crop section ───────────────────────────────────────────────────── */

.crop-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.crop-ratio-grid button {
  display: grid;
  min-height: 56px;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 6px 4px;
  border: 1px solid rgba(84, 104, 126, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 11px;
  color: var(--ink-700);
}

.crop-ratio-grid button:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-100);
}

.crop-ratio-grid button.is-active {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: var(--blue-100);
}

.crop-ratio-grid i {
  font-size: 20px;
}

.crop-custom-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.crop-custom-row[hidden] {
  display: none;
}

.crop-colon {
  padding: 0 10px;
  color: var(--ink-500);
  font-size: 18px;
  font-weight: 600;
}

/* ── File size controls ─────────────────────────────────────────────── */

.file-size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid rgba(91, 110, 132, 0.18);
  border-radius: 7px;
  background: rgba(248, 250, 255, 0.8);
  font-size: 12px;
}

.file-size-label {
  color: var(--ink-500);
}

.file-size-row strong {
  color: var(--ink-700);
  font-weight: 600;
}

.target-size-row {
  display: grid;
  gap: 6px;
}

.target-size-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.target-size-header > label {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 550;
}

.current-kb-hint {
  font-size: 11px;
  color: var(--ink-500);
  white-space: nowrap;
}

.current-kb-hint strong {
  color: var(--ink-600, var(--ink-700));
  font-weight: 600;
}

.target-size-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.target-size-apply {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(8, 103, 232, 0.4);
  border-radius: 7px;
  color: var(--blue-600);
  background: var(--blue-100);
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}

.target-size-apply:hover {
  background: rgba(22, 116, 238, 0.18);
}

.target-size-apply:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── 이중 언어 라벨 (Korean primary / English secondary) ─────────────────── */
.en-sub {
  display: block;
  font-size: 0.62em;
  font-weight: 400;
  opacity: 0.48;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.en-label {
  font-size: 0.72em;
  font-weight: 400;
  opacity: 0.48;
  letter-spacing: 0.02em;
  margin-left: 5px;
}

.en-block {
  display: block;
  font-size: 0.58em;
  font-weight: 400;
  opacity: 0.5;
  letter-spacing: 0.01em;
  margin-top: 5px;
  line-height: 1.35;
}

p.en-text {
  font-size: 0.82em;
  opacity: 0.48;
  line-height: 1.55;
  margin-top: 4px;
  font-style: italic;
}

.ad-slot {
  width: 100%;
  min-height: 90px;
  margin: 24px 0;
  text-align: center;
  background: transparent;
  overflow: hidden;
}

.ad-slot--top {
  margin-top: 32px;
}

@media (max-width: 600px) {
  .ad-slot {
    min-height: 50px;
    margin: 16px 0;
  }
}

/* ── 다운로드 광고 모달 ───────────────────── */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.download-modal[hidden] {
  display: none;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.download-modal__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--surface-strong);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.download-modal__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.download-modal__header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 8px;
  line-height: 1.3;
}

.download-modal__desc {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}

.ad-slot--modal {
  margin: 0;
  min-height: 120px;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-modal__footer {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-modal__countdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.countdown-text {
  font-size: 0.85rem;
  color: var(--ink-500);
  line-height: 1.5;
}

.countdown-bar {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.countdown-bar__fill {
  height: 100%;
  width: 100%;
  background: var(--blue-500);
  border-radius: 2px;
  transform-origin: left;
  transition: transform 1s linear;
}

.download-modal__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal-download-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.modal-download-btn:disabled {
  background: var(--ink-500);
  opacity: 0.45;
  cursor: not-allowed;
}

.modal-download-btn:not(:disabled):hover {
  background: var(--blue-500);
}

.modal-cancel-btn {
  padding: 11px 18px;
  background: transparent;
  color: var(--ink-500);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.modal-cancel-btn:hover {
  background: rgba(0,0,0,0.05);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
