@import url('data:text/css,');

:root {
  color-scheme: light;
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #192338;
  background: #f4f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #737f95;
  --line: #e5e9f1;
  --blue: #455de7;
  --blue-dark: #334bd4;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 24px; }
.hero { display: flex; align-items: center; gap: 17px; margin: 0 0 28px 5px; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: #e9edff; color: var(--blue); font-size: 30px; font-weight: 800; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .04em; }
h1 { margin: 0; font-size: clamp(25px, 3vw, 35px); letter-spacing: -.045em; }
.intro { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.workspace { display: grid; grid-template-columns: minmax(370px, .9fr) minmax(420px, 1.1fr); gap: 18px; align-items: stretch; }
.panel { min-width: 0; border: 1px solid #e8ebf2; border-radius: 19px; background: #fff; box-shadow: 0 10px 35px #2534600b; }
.controls { padding: 24px; }
.section-heading, .section-heading > div { display: flex; align-items: center; }
.section-heading { justify-content: space-between; gap: 10px; }
.section-heading > div { gap: 10px; }
.step { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 9px; background: #eef0ff; color: var(--blue); font-size: 12px; font-weight: 800; }
h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.count, .output-size { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 150px; margin: 17px 0 0; border: 1.5px dashed #cbd3e3; border-radius: 14px; background: #fafbff; color: #27334b; text-align: center; transition: .16s ease; cursor: pointer; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: var(--blue); background: #f1f3ff; outline: none; }
.drop-zone strong { font-size: 13px; }
.drop-zone > span:last-of-type { color: var(--muted); font-size: 11px; }
.upload-icon { display: grid; place-items: center; width: 33px; height: 33px; margin-bottom: 2px; border-radius: 11px; background: #e9edff; color: var(--blue); font-size: 24px; }
#file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.status { min-height: 31px; padding: 9px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.status[data-type="success"] { color: #21805d; }
.status[data-type="warning"] { color: #9a6900; }
.status[data-type="error"] { color: #bd3844; }
.settings-heading { margin: 22px 0 5px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; border-bottom: 1px solid #f0f2f6; color: #5d6880; font-size: 12px; }
.setting-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.setting-label strong { color: #38445d; font-variant-numeric: tabular-nums; }
.segmented { display: flex; flex: 0 0 auto; gap: 3px; padding: 3px; border-radius: 10px; background: #f1f3f8; }
.segment { border: 0; padding: 7px 13px; border-radius: 8px; background: transparent; color: #68738b; font-size: 11px; }
.segment.active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px #1d2c5018; font-weight: 750; }
input[type="range"] { width: 45%; accent-color: var(--blue); }
.color-control { display: flex; align-items: center; gap: 9px; color: #46516a; font-size: 11px; font-variant-numeric: tabular-nums; }
input[type="color"] { width: 32px; height: 28px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.setting-select { max-width: 58%; min-height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #45516a; font-size: 11px; }
.setting-hint { margin: 7px 0 0; color: #929bad; font-size: 10px; line-height: 1.5; }
.list-heading { margin: 22px 0 10px; }
.text-button { padding: 5px 0; border: 0; background: none; color: var(--blue); font-size: 11px; }
.image-list { display: grid; gap: 7px; max-height: 236px; margin: 0; padding: 0 2px 0 0; overflow: auto; list-style: none; }
.image-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid #edf0f5; border-radius: 11px; background: #fff; }
.thumbnail { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 7px; background: #f3f5fa; object-fit: cover; }
.image-details { display: grid; min-width: 0; flex: 1; gap: 3px; }
.image-details strong { overflow: hidden; color: #344059; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.image-details small { color: #8a93a5; font-size: 10px; }
.item-actions { display: flex; gap: 2px; }
.icon-button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #65718a; font-size: 15px; }
.icon-button:hover:not(:disabled) { background: #f0f2fa; color: var(--blue); }
.icon-button[aria-label="삭제"] { color: #a4aabd; font-size: 20px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; margin-top: 16px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 750; box-shadow: 0 5px 12px #455de72a; }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); }
.primary-button span { font-size: 19px; }
.privacy-note { margin: 10px 0 0; color: #8791a5; font-size: 10px; text-align: center; }
.preview-panel { display: flex; flex-direction: column; min-height: 620px; padding: 24px; }
.preview-heading { margin-bottom: 15px; }
.canvas-wrap { display: grid; flex: 1; min-height: 500px; place-items: center; overflow: auto; border: 1px solid #eceff5; border-radius: 14px; background-color: #f8f9fc; background-image: linear-gradient(45deg,#edf0f5 25%,transparent 25%),linear-gradient(-45deg,#edf0f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0f5 75%),linear-gradient(-45deg,transparent 75%,#edf0f5 75%); background-position: 0 0,0 8px,8px -8px,-8px 0; background-size: 16px 16px; }
.canvas-wrap.has-image { padding: 14px; place-items: start center; }
#preview-canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 72vh; object-fit: contain; box-shadow: 0 6px 22px #17213a1b; }
.empty-state { display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 500px; padding: 20px; color: var(--muted); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state strong { color: #4a5670; font-size: 13px; }
.empty-state > span { font-size: 11px; }
.empty-art { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: #a5afc2; font-size: 38px; }
.empty-art span { display: grid; place-items: center; width: 50px; height: 57px; border: 1px solid #d9deea; border-radius: 11px; background: #fff; }
.empty-art i { position: absolute; left: 42px; top: 18px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: white; font-size: 16px; font-style: normal; }
.preview-footnote { margin: 10px 0 0; color: #929bad; font-size: 10px; }
footer { margin: 18px 0 0; color: #929bad; font-size: 10px; text-align: center; }
footer a, .privacy-note a { color: #6673b8; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .shell { width: min(680px, calc(100% - 24px)); padding-top: 26px; }
  .workspace { grid-template-columns: 1fr; }
  .preview-panel { min-height: 530px; }
  .canvas-wrap { min-height: 400px; }
  .empty-state { min-height: 400px; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 18px); padding-top: 18px; }
  .hero { gap: 12px; margin-bottom: 17px; }
  .brand-mark { width: 43px; height: 43px; border-radius: 14px; font-size: 26px; }
  .intro { font-size: 12px; }
  .controls, .preview-panel { padding: 17px; }
  .drop-zone { min-height: 133px; padding: 10px; }
  .drop-zone strong { font-size: 12px; }
  .preview-panel { min-height: 460px; }
  .canvas-wrap { min-height: 330px; }
  .empty-state { min-height: 330px; }
  .image-item { gap: 6px; }
  .item-actions { gap: 0; }
}

