

    /* ===== Local commercial-use fonts (uploaded TTF) ===== */
    @font-face {
      font-family: "Pretendard";
      src: url("./PretendardVariable.ttf") format("truetype");
      font-weight: 100 900;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Gmarket Sans";
      src: url("./GmarketSansTTFLight.ttf") format("truetype");
      font-weight: 300;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Gmarket Sans";
      src: url("./GmarketSansTTFMedium.ttf") format("truetype");
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Gmarket Sans";
      src: url("./GmarketSansTTFBold.ttf") format("truetype");
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Noto Sans KR";
      src: url("./NotoSansKR-VariableFont_wght.ttf") format("truetype");
      font-weight: 100 900;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "BM DoHyeon";
      src: url("./BMDOHYEON_ttf.ttf") format("truetype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "NanumSquare Neo";
      src: url("./NanumSquareNeo-Variable.ttf") format("truetype");
      font-weight: 100 900;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Tenada";
      src: url("./Tenada.ttf") format("truetype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "GodoRounded";
      src: url("./godoRounded L.ttf") format("truetype");
      font-weight: 300;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "GodoRounded";
      src: url("./godoRounded R.ttf") format("truetype");
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

    /* Paperlogy weights */
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-1Thin.ttf") format("truetype"); font-weight:100; font-style:normal; font-display:swap; }
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-2ExtraLight.ttf") format("truetype"); font-weight:200; font-style:normal; font-display:swap; }
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-3Light.ttf") format("truetype"); font-weight:300; font-style:normal; font-display:swap; }
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-4Regular.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-5Medium.ttf") format("truetype"); font-weight:500; font-style:normal; font-display:swap; }
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-6SemiBold.ttf") format("truetype"); font-weight:600; font-style:normal; font-display:swap; }
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-7Bold.ttf") format("truetype"); font-weight:700; font-style:normal; font-display:swap; }
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-8ExtraBold.ttf") format("truetype"); font-weight:800; font-style:normal; font-display:swap; }
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-9Black.ttf") format("truetype"); font-weight:900; font-style:normal; font-display:swap; }

    :root {
      --panel: rgba(17, 21, 19, 0.96);
      --line: #2a332d;
      --line-soft: rgba(255,255,255,.06);
      --text: #f5f7f5;
      --muted: #aeb8b1;
      --brand: #174a36;
      --brand-2: #275d49;
      --brand-3: #dfe8e2;
      --shadow: 0 24px 60px rgba(0,0,0,.35);
      --radius-xl: 24px;
      --outline: #b7bdb9; /* 고정 테두리 */
      --scroll-track: rgba(16, 21, 19, 0.72);
      --scroll-thumb: linear-gradient(180deg, rgba(58, 124, 94, 0.92), rgba(31, 82, 61, 0.96));
      --scroll-thumb-border: rgba(210, 236, 223, 0.12);
    }
    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      color: var(--text);
      font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(31, 79, 60, 0.22), transparent 25%),
        radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 18%),
        linear-gradient(180deg, #080a09 0%, #101513 100%);
    }
    * {
      scrollbar-width: thin;
      scrollbar-color: rgba(58,124,94,.9) rgba(16,21,19,.55);
    }
    *::-webkit-scrollbar { width: 12px; height: 12px; }
    *::-webkit-scrollbar-track {
      background: var(--scroll-track);
      border-radius: 999px;
    }
    *::-webkit-scrollbar-thumb {
      background: var(--scroll-thumb);
      border-radius: 999px;
      border: 2px solid var(--scroll-thumb-border);
    }
    *::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(83,166,126,.95), rgba(37,98,72,.98));
    }

    .shell {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 420px 1fr 320px;
      gap: 18px;
      padding: 18px;
    }
    .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
      overflow: hidden;
      backdrop-filter: blur(14px);
    }
    .panel-header {
      padding: 20px 22px 14px;
      border-bottom: 1px solid var(--line-soft);
      background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    }
    .brand-row {
      display: inline-flex; align-items: center; gap: 10px;
      font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
      color: var(--brand-3); font-size: 12px;
    }
    .mark {
      width: 10px; height: 10px; border-radius: 999px;
      background: linear-gradient(135deg, #2d7a5b, #f3f7f4);
      box-shadow: 0 0 18px rgba(77, 172, 128, .35);
    }
    h1, h2, h3, p { margin: 0; }
    .title { margin-top: 12px; font-size: 26px; line-height: 1.2; font-weight: 900; letter-spacing: -.03em; }
    .subtitle { margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--muted); }
    .panel-body { padding: 20px 22px 24px; }
    .section { margin-bottom: 22px; }
    .section h3 {
      margin-bottom: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
      color: #d7e2db;
    }
    .field { margin-bottom: 12px; }
    label { display:block; margin-bottom:7px; font-size:13px; color:#e5ece7; }
    input[type="color"], textarea, select, input[type="range"], input[type="file"] { width: 100%; }
    input[type="color"] {
      height: 46px; border: 1px solid #334038; background: #0f1412; border-radius: 14px; padding: 4px;
    }
    textarea, select {
      border: 1px solid #334038; background:#0f1412; color:#f7faf8; border-radius:14px; padding:11px 12px; font-size:14px; outline:none;
    }
    textarea { min-height: 84px; resize: vertical; }
    .text-compact { min-height: unset; resize: none; line-height:1.35; white-space: pre; overflow-x: auto; }
    input[type="file"] {
      border: 1px dashed #3c4a42; background:#0e1311; color:#dce6df; border-radius:14px; padding:12px; font-size:13px;
    }
    input[type="range"] { width: 100%; accent-color: #4e8a6d; }
    input[type="color"]:disabled {
      opacity: .45;
      cursor: not-allowed;
      filter: grayscale(35%);
    }

    .left-panel .panel-body {
      display:flex;
      flex-direction:column;
      gap:16px;
      max-height: calc(100vh - 170px);
      overflow:auto;
      scrollbar-width: thin;
    }
    .left-panel .panel-body::-webkit-scrollbar { width: 10px; }
    .left-panel .panel-body::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; }
    .guide-card {
      padding: 16px 18px;
      border-radius: 20px;
      border: 1px solid rgba(111,203,158,.24);
      background: linear-gradient(180deg, rgba(24,52,41,.88), rgba(15,22,19,.94));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    }
    .guide-title {
      font-size: 14px;
      font-weight: 900;
      letter-spacing: -.02em;
      margin-bottom: 8px;
    }
    .guide-flow {
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .guide-step {
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.06);
      font-size: 12px;
      color: #dfe8e2;
      line-height: 1.45;
    }
    .guide-step strong {
      display:block;
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #86d9af;
      margin-bottom: 4px;
    }
    .section {
      margin-bottom: 0;
      padding: 18px;
      border-radius: 22px;
      border: 1px solid rgba(255,255,255,.06);
      background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.015));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    }
    .section h3 {
      display:flex;
      align-items:center;
      gap:10px;
      margin-bottom: 14px;
      font-size: 15px;
      letter-spacing: -.02em;
      text-transform: none;
      color: #f3f7f4;
    }
    .section h3::before {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width: 26px;
      height: 26px;
      padding: 0 8px;
      border-radius: 999px;
      background: rgba(99, 205, 153, .14);
      border: 1px solid rgba(111,203,158,.35);
      color: #9ae6bf;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .06em;
      text-transform: uppercase;
      content: attr(data-step);
    }
    .section-hint {
      margin: -4px 0 14px;
      font-size: 12px;
      line-height: 1.55;
      color: var(--muted);
    }
    .field { margin-bottom: 14px; }
    label { margin-bottom:8px; font-size:14px; font-weight:700; color:#eef4f0; }
    .target-group-label {
      margin-bottom:8px;
      font-size:12px;
      font-weight:800;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #9eb5a9;
    }
    #summaryCapturePanel { position: relative; }
    #summaryCapturePanel .panel-body {
      display:flex;
      flex-direction:column;
      gap:14px;
      min-height: calc(100vh - 170px);
    }
    .summary-capture-cta {
      position: sticky;
      top: calc(50vh - 82px);
      z-index: 3;
      margin-top: 0;
    }
    .summary-card { order: 1; }
    .summary-capture-cta { order: 2; }
    #resetBtn { order: 3; }
    @media (max-width: 1220px) {
      .shell { grid-template-columns: 1fr; }
      .left-panel .panel-body,
      #summaryCapturePanel .panel-body { max-height: none; min-height: auto; }
      .summary-capture-cta { position: static; }
      .guide-flow { grid-template-columns: 1fr; }
    }

    .grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
    .chip-row { display:flex; gap:8px; flex-wrap:wrap; }
    .chip-spacer { flex-basis: 100%; height: 14px; pointer-events: none; }
    .chip-btn {
      appearance:none; border:0; border-radius:14px; cursor:pointer; font-weight:900; transition:.2s ease;
      padding:10px 12px; background:#0f1412; color:#dde6df; border:1px solid #334038; font-size:13px;
    }
    .chip-btn.active {
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      border-color:#497f66; color:white; box-shadow:0 10px 24px rgba(23,74,54,.28);
    }

    .summary-capture-cta {
      margin-top: 16px;
      padding: 16px 14px;
      border-radius: 18px;
      border: 1px solid rgba(111, 203, 158, 0.55);
      background: linear-gradient(135deg, rgba(23,74,54,0.98), rgba(44,122,91,0.98));
      box-shadow: 0 16px 36px rgba(23,74,54,.34), inset 0 1px 0 rgba(255,255,255,.08);
    }
    .summary-capture-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 16px 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.14);
      background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
      color: #fff;
      font-size: 16px;
      font-weight: 900;
      letter-spacing: -.02em;
      cursor: pointer;
      box-shadow: 0 12px 30px rgba(0,0,0,.18);
    }
    .summary-capture-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 36px rgba(0,0,0,.24);
    }
    .summary-capture-icon {
      width: 42px; height: 42px; border-radius: 14px;
      display: inline-flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,.12);
      font-size: 22px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    }
    .summary-capture-meta {
      display: flex; flex-direction: column; align-items: flex-start; text-align: left;
      gap: 2px;
    }
    .summary-capture-title { font-size: 17px; font-weight: 900; line-height: 1.1; }
    .summary-capture-subtitle { font-size: 12px; color: rgba(255,255,255,.82); line-height: 1.35; }
    .primary-btn, .ghost-btn {
      width:100%; padding:13px 14px; font-size:14px; margin-bottom:10px;
      border:0; border-radius:14px; cursor:pointer; font-weight:900; transition:.2s ease;
    }
    .primary-btn { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:white; box-shadow: 0 16px 34px rgba(23,74,54,.30); }
    .ghost-btn { background:#111613; color:#e4ebe5; border:1px solid #334038; }
    .hint { font-size:12px; color: var(--muted); line-height:1.6; }
    .workspace { display:flex; flex-direction:column; min-height: calc(100vh - 36px); }
    .workspace-top {
      display:flex; justify-content:space-between; align-items:center; gap:12px;
      padding:18px 20px; border-bottom:1px solid var(--line-soft);
      background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    }
    .workspace-stage {
      flex:1; padding:20px;
      background: radial-gradient(circle at top, rgba(47, 103, 79, 0.18), transparent 24%),
                linear-gradient(180deg, #0b100f 0%, #0e1311 100%);
    }
    .garment-grid { height:100%; display:grid; grid-template-columns:1fr 1fr; gap:18px; }
    .garment-card {
      position:relative; border-radius:24px; border:1px solid rgba(255,255,255,.06);
      background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
      padding:18px; min-height:720px; overflow:hidden;
    }
    .garment-label {
      position:absolute; top:18px; left:18px; z-index:6;
      padding:8px 12px; border-radius:999px; font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase;
      background: rgba(8,12,10,.7); border:1px solid rgba(255,255,255,.08); color:#eef4f0; backdrop-filter: blur(8px);
    }
    .garment-label-row { display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; }
    .access-code-badge {
      display:inline-flex; align-items:center; justify-content:center;
      min-height: 30px; padding: 7px 10px; border-radius: 999px;
      font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
      color: #dff5ea; background: rgba(23,74,54,.72); border: 1px solid rgba(111,203,158,.35);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(8px);
    }
    .pattern-stage {
      position:relative; width:100%; height:calc(100% - 44px); margin-top:44px; border-radius:22px; overflow:hidden;
      border: 1px solid rgba(255,255,255,.06);
      background: #0f1412;
    }
    .font-note { margin-top:8px; font-size:11px; color:var(--muted); line-height:1.45; }
    .pattern-svg { position:absolute; inset:0; width:100%; height:100%; }
    .color-meta {
      margin-top: 6px;
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
      font-weight: 700;
      letter-spacing: .01em;
    }
    .color-meta strong {
      color: #eef4f0;
      font-weight: 900;
      margin-right: 6px;
    }
    .overlay { position:absolute; inset:0; z-index:4; }
    .draggable {
      position:absolute; min-width:40px; font-weight:900; letter-spacing:0.04em; color:white; cursor:grab; user-select:none;
      transform: translate(-50%,-50%);
      text-shadow:0 3px 12px rgba(0,0,0,.30);
      padding:4px 10px; border-radius:10px; text-align:center;
      white-space: pre; word-break: keep-all; overflow-wrap: normal; line-height:1.08; z-index:5;
    }
    .draggable.active { outline:1px dashed rgba(255,255,255,.65); background: rgba(255,255,255,.06); }
    .image-logo {
      position:absolute; width:90px; height:90px;
      transform: translate(-50%,-50%); cursor:grab; z-index:5;
      filter: drop-shadow(0 6px 14px rgba(0,0,0,.28));
      background-repeat:no-repeat;
      background-position:center;
      background-size:contain;
      background-color:transparent;
      background-image:none;
      border-radius:10px;
    }
    .image-logo.active { outline:1px dashed rgba(255,255,255,.72); background: transparent !important; background-color: transparent !important; opacity: 1 !important; box-shadow: 0 0 0 2px rgba(120,214,171,.22), 0 6px 14px rgba(0,0,0,.28); }
    .pattern-picker {
      display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px;
      width:100%; max-width:100%; box-sizing:border-box;
      max-height: 280px; overflow-y: auto; overflow-x: hidden;
      padding-right: 2px; padding-bottom: 2px;
      align-content: start; justify-items: stretch;
    }

    @media (max-width: 560px) {
      .pattern-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    .pattern-picker::-webkit-scrollbar { width: 8px; }
    .pattern-picker::-webkit-scrollbar-thumb {
      background: rgba(120,214,171,.28); border-radius: 999px;
    }
    .pattern-picker::-webkit-scrollbar-track {
      background: rgba(255,255,255,.03); border-radius: 999px;
    }
    .pattern-tile {
      border:1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.02);
      border-radius: 18px;
      padding:10px 6px 12px;
      cursor:pointer;
      transition:.15s ease;
      text-align:center;
      width:100%; min-width:0; box-sizing:border-box;
    }
    .pattern-tile.active {
      outline: 2px solid rgba(120, 214, 171, .55);
      box-shadow: 0 10px 26px rgba(23,74,54,.25);
    }
    .pattern-thumb {
      width:min(84px, calc(100% - 8px)); height:auto; aspect-ratio:1 / 1; border-radius:999px;
      background: #ffffff;
      display:flex; align-items:center; justify-content:center;
      overflow:hidden;
      border: 1px solid rgba(17,21,19,.10);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
      margin: 0 auto;
      box-sizing:border-box;
    }
    .pattern-thumb img {
      width:100%; height:100%; object-fit:cover; object-position:center center; opacity:1;
      border-radius:999px;
      background:#ffffff;
      image-rendering:auto;
      display:block;
    }
    .pattern-name { margin-top:8px; font-size:12px; line-height:1.15; color:#dfe8e2; font-weight:900; letter-spacing:.02em; }
.pattern-none { font-size: 12px; font-weight: 900; color: rgba(17,21,19,.82); letter-spacing: .02em; }
.pattern-thumb.none { display:flex; align-items:center; justify-content:center; background:#f5f7f5; border-radius:999px; }

    .workspace-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    .tool-icon-btn {
      appearance:none; border:1px solid #334038; background:#101613; color:#eef4f0;
      border-radius:14px; width:48px; height:48px; cursor:pointer; font-size:20px; font-weight:900;
      display:inline-flex; align-items:center; justify-content:center; transition:.2s ease;
      box-shadow: 0 10px 24px rgba(0,0,0,.18);
    }
    .tool-icon-btn:hover, .tool-icon-btn.active {
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      border-color:#497f66;
    }
    .capture-hint { font-size:12px; color:var(--muted); }
    .capture-select-overlay {
      position: fixed; inset: 0; z-index: 9999; display:none; cursor: crosshair;
      background: rgba(0,0,0,.18);
    }
    .capture-select-overlay.active { display:block; }
    .capture-crosshair {
      position:absolute; inset:0; pointer-events:none;
      background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
      background-size: 24px 24px;
      opacity:.35;
    }
    .capture-selection-box {
      position:absolute; border:2px solid #dfe8e2; background: rgba(23,74,54,.18);
      box-shadow: 0 0 0 9999px rgba(0,0,0,.28);
      display:none; pointer-events:none;
    }
    .capture-selection-box.show { display:block; }
    .capture-selection-label {
      position:absolute; left:0; top:-34px; background:#0f1412; color:#f5f7f5; border:1px solid rgba(255,255,255,.08);
      border-radius:999px; padding:6px 10px; font-size:11px; font-weight:900; letter-spacing:.04em;
      white-space:nowrap;
    }

    .gradient-split-wrap { display:none; }
    .gradient-split-wrap.show { display:block; }
    .gradient-angle-wrap { display:none; }
    .gradient-angle-wrap.show { display:block; }
    .gradient-angle-panel {
      display:grid; grid-template-columns: 88px 1fr; gap:14px; align-items:center;
      padding:12px; border-radius:18px; border:1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.025); margin-top:10px;
    }
    .angle-wheel {
      --angle: 135deg;
      position:relative; width:88px; height:88px; border-radius:999px;
      border:1px solid rgba(255,255,255,.12);
      background: conic-gradient(from 180deg, rgba(255,255,255,.08), rgba(120,214,171,.75), rgba(255,255,255,.08));
      box-shadow: inset 0 0 0 8px rgba(7,11,9,.72), 0 12px 26px rgba(0,0,0,.16);
    }
    .angle-wheel::before {
      content:""; position:absolute; inset:10px; border-radius:999px;
      background: radial-gradient(circle at center, rgba(255,255,255,.16), rgba(255,255,255,.03) 58%, rgba(0,0,0,.14) 100%);
      border:1px solid rgba(255,255,255,.08);
    }
    .angle-wheel::after {
      content:""; position:absolute; left:50%; top:50%; width:2px; height:28px;
      background: linear-gradient(180deg, #ffffff 0%, #78d6ab 100%);
      border-radius:999px; transform-origin: center calc(100% - 2px);
      transform: translate(-50%, calc(-100% + 6px)) rotate(var(--angle));
      box-shadow: 0 0 10px rgba(120,214,171,.35);
    }
    .gradient-angle-meta { display:flex; flex-direction:column; gap:8px; }
    .gradient-angle-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; }
    .gradient-angle-value { font-size:12px; color:#eef4f0; font-weight:900; letter-spacing:.06em; }
    .angle-preset-btn {
      appearance:none; border:1px solid rgba(255,255,255,.08); background:#111613; color:#dfe8e2;
      border-radius:999px; padding:8px 10px; font-size:11px; font-weight:900; cursor:pointer; transition:.18s ease;
    }
    .angle-preset-btn:hover, .angle-preset-btn.active {
      background: linear-gradient(135deg, rgba(23,74,54,.95), rgba(89,173,133,.9)); color:#fff; border-color:#4e856b;
      box-shadow: 0 10px 20px rgba(23,74,54,.24);
    }
    .field.color-disabled label { color: rgba(203,214,208,.62); }
    .field.color-disabled input[type="color"] {
      opacity:.18; filter:grayscale(1); pointer-events:none;
      background:
        linear-gradient(135deg, transparent 0 44%, rgba(255,59,59,.96) 44% 56%, transparent 56% 100%),
        conic-gradient(from 45deg, #e6e6e6 0 25%, #bfc5c1 0 50%, #e6e6e6 0 75%, #bfc5c1 0 100%);
      background-size:100% 100%, 10px 10px;
      border-color: rgba(255,255,255,.22);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    }
    .field.color-disabled .label-note-none { display:inline-flex; }
    .label-with-note { display:flex; align-items:center; justify-content:space-between; gap:8px; }
    .label-note-none {
      display:none; align-items:center; gap:8px; font-size:11px; font-weight:900; letter-spacing:.05em; color:#eef3ef;
      padding:5px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.10);
      background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }
    .label-note-none::before {
      content:""; width:14px; height:14px; border-radius:999px; border:1px solid rgba(255,255,255,.28);
      background:
        linear-gradient(135deg, transparent 0 43%, rgba(255,59,59,.98) 43% 57%, transparent 57% 100%),
        conic-gradient(from 45deg, #f1f1f1 0 25%, #bcc2be 0 50%, #f1f1f1 0 75%, #bcc2be 0 100%);
      background-size:100% 100%, 6px 6px;
      box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset;
    }
    .target-groups { display:grid; gap:10px; }
    .target-group-label { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
    .gradient-split-meta {
      margin-top: 8px; display:flex; justify-content:space-between; align-items:center;
      font-size: 12px; color: var(--muted); font-weight: 700;
    }
    .gradient-split-value { color:#dfe8e2; font-weight:900; }

    @media (max-width: 1340px) {
      .shell { grid-template-columns: 1fr; }
      .garment-grid { grid-template-columns: 1fr; }
      .garment-card { min-height: 680px; }
    }
  

/* ---- next original style block ---- */



    /* ===== Local commercial-use fonts (uploaded TTF) ===== */
    /* Paperlogy weights */
    .preview-tools-host {
      display:flex;
      align-items:stretch;
      justify-content:flex-end;
      margin-left:auto;
      width:min(360px, 100%);
    }
    .workspace-top.capture-in-preview {
      align-items:stretch;
    }
    .workspace-top-main {
      min-width:0;
      flex:1 1 auto;
    }
    .workspace-top.capture-in-preview .summary-capture-cta {
      position:static;
      top:auto;
      order:unset;
      margin:0;
      padding:0;
      border:none;
      background:none;
      box-shadow:none;
      width:100%;
    }
    .workspace-top.capture-in-preview .summary-capture-btn {
      height:100%;
      min-height:88px;
      justify-content:flex-start;
      text-align:left;
      padding:18px 16px;
      border-radius:20px;
      box-shadow: 0 16px 36px rgba(23,74,54,.28);
    }
    #summaryCapturePanel .panel-body.compact-summary {
      min-height:auto;
    }
    .summary-editor-host {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .summary-editor-host .editor-shell {
      padding:0;
      border:none;
      background:transparent;
      box-shadow:none;
    }
    .summary-editor-host .ghost-btn {
      width:100%;
    }
    .summary-editor-host .section-hint {
      margin-bottom: 14px;
    }
    .image-logo > img.logo-artwork {
      display:block;
      width:100%;
      height:100%;
      object-fit:contain;
      pointer-events:none;
      user-select:none;
    }
    @media (max-width: 1220px) {
      .workspace-top.capture-in-preview {
        flex-direction:column;
        align-items:stretch;
      }
      .preview-tools-host {
        width:100%;
      }
    }
  

/* ---- next original style block ---- */



    /* ===== Local commercial-use fonts (uploaded TTF) ===== */
    /* Paperlogy weights */
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-9Black.ttf") format("truetype"); font-weight:900; font-style:normal; font-display:swap; }

  html, body { overflow: hidden; }
  body { min-height: 100vh; }
  .shell {
    height: calc(100vh - 36px);
    min-height: 0;
    overflow: hidden;
    grid-template-columns: 400px minmax(0, 1fr) 340px;
  }
  .panel { height: 100%; }
  .workspace { min-height: 0; height: 100%; }
  .workspace-top { padding: 14px 18px; }
  .workspace-stage { padding: 14px; min-height: 0; }
  .garment-grid { gap: 14px; }
  .garment-card { min-height: 0; padding: 14px; }
  .pattern-stage { min-height: 0; }
  .garment-label { top: 14px; left: 14px; }

  .right-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(58,124,94,.9) rgba(16,21,19,.55);
  }
  .right-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding-right: 4px;
  }
  .right-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(14px);
  }
  .summary-panel-card { flex: 0 0 auto; display: flex; flex-direction: column; }
  .editor-card-wrap { flex: 1 1 auto; min-height: 0; }

  .right-panel::-webkit-scrollbar { width: 10px; }
  .right-panel::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; }
  .right-card-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  }
  .right-card-title {
    margin-top: 10px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.03em;
  }
  .right-card-subtitle {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
  }
  .right-card-body {
    padding: 16px 18px 18px;
  }
  .compact-editor-body { padding-top: 14px; }
  .summary-body-tight {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    flex: 1 1 auto;
  }
  .summary-card {
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    padding: 14px;
  }
  .summary-title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 10px;
    color: #eff5f1;
  }
  .summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    font-size: 12px;
  }
  .summary-list li {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    gap: 8px;
    align-items: start;
    color: #ecf2ee;
  }
  .summary-list li span:first-child {
    color: #9fb0a6;
    font-weight: 800;
  }
  .summary-list li span:last-child {
    font-weight: 700;
    word-break: break-all;
  }

  #editorCard {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }
  #editorCard.is-active {
    border-color: rgba(255,255,255,.95);
    box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 10px 28px rgba(0,0,0,.18);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  }
  #editorCard .field { margin-bottom: 12px; }
  #editorCard textarea { min-height: 68px; }
  #editorCard .ghost-btn { margin-bottom: 0; }

  .capture-spotlight {
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .capture-spotlight .summary-capture-btn {
    padding: 16px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 211, 92, .55);
    background: linear-gradient(135deg, rgba(255,162,57,.98), rgba(247,205,74,.98));
    color: #1a1407;
    box-shadow: 0 16px 36px rgba(255,165,49,.24), inset 0 1px 0 rgba(255,255,255,.35);
  }
  .capture-spotlight .summary-capture-btn:hover {
    box-shadow: 0 18px 38px rgba(255,165,49,.3), inset 0 1px 0 rgba(255,255,255,.4);
  }
  .capture-spotlight .summary-capture-icon {
    background: rgba(26,20,7,.12);
    color: #1a1407;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  }
  .capture-spotlight .summary-capture-title {
    color: #1d1608;
    font-size: 16px;
  }
  .capture-spotlight .summary-capture-subtitle {
    color: rgba(29,22,8,.82);
  }

  @media (max-width: 1600px) {
    .shell { grid-template-columns: 372px minmax(0,1fr) 320px; }
  }
  @media (max-width: 1340px) {
    html, body { overflow: auto; }
    .shell { height: auto; grid-template-columns: 1fr; overflow: visible; }
    .right-panel-stack { height: auto; }
    .garment-grid { grid-template-columns: 1fr; }
  }


/* ---- next original style block ---- */



    /* ===== Local commercial-use fonts (uploaded TTF) ===== */
    /* Paperlogy weights */
    @font-face { font-family:"Paperlogy"; src:url("./Paperlogy-9Black.ttf") format("truetype"); font-weight:900; font-style:normal; font-display:swap; }

/* Mobile optimization for iPhone Safari / Samsung Internet / Chrome */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    overscroll-behavior-y: contain;
    touch-action: manipulation;
  }

  @media (max-width: 1024px) {
    html, body {
      overflow: auto;
      height: auto;
      min-height: 100%;
    }
    .shell {
      height: auto;
      min-height: 100dvh;
      overflow: visible;
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 12px;
    }
    .panel,
    .workspace,
    .right-panel,
    .left-panel {
      height: auto;
      min-height: 0;
    }
    .workspace {
      order: 1;
    }
    .left-panel {
      order: 2;
    }
    .right-panel {
      order: 3;
      overflow: visible;
    }
    .left-panel .panel-body,
    #summaryCapturePanel .panel-body,
    .right-panel-stack {
      max-height: none;
      min-height: 0;
      height: auto;
      overflow: visible;
      padding-right: 0;
    }
    .workspace-top {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 14px;
    }
    .preview-tools-host {
      width: 100%;
      margin-left: 0;
    }
    .workspace-stage {
      padding: 12px;
    }
    .garment-grid {
      grid-template-columns: 1fr;
      gap: 12px;
      height: auto;
    }
    .garment-card {
      min-height: auto;
      padding: 12px;
    }
    .pattern-stage {
      height: auto;
      min-height: clamp(420px, 92vw, 760px);
      aspect-ratio: 1484 / 2048;
    }
    .grid-2,
    .guide-flow {
      grid-template-columns: 1fr;
    }
    .pattern-picker {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      max-height: none;
      overflow: visible;
    }
    .chip-row {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 4px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .chip-row::-webkit-scrollbar {
      display: none;
    }
    .chip-btn {
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .summary-list li {
      grid-template-columns: 88px minmax(0,1fr);
    }
    input[type="color"],
    textarea,
    select,
    input[type="range"],
    input[type="file"],
    .chip-btn,
    .primary-btn,
    .ghost-btn {
      font-size: 16px;
    }
  }

  @media (max-width: 640px) {
    .shell {
      padding: 10px;
      gap: 10px;
    }
    .panel-header,
    .panel-body,
    .right-card-header,
    .right-card-body {
      padding-left: 14px;
      padding-right: 14px;
    }
    .title {
      font-size: 22px;
    }
    .subtitle,
    .section-hint,
    .hint,
    .right-card-subtitle {
      font-size: 12px;
    }
    .workspace-stage {
      padding: 10px;
    }
    .garment-card {
      border-radius: 18px;
      padding: 10px;
    }
    .garment-label {
      top: 10px;
      left: 10px;
      font-size: 10px;
      padding: 7px 10px;
    }
    .pattern-stage {
      min-height: min(76dvh, 640px);
    }
    .pattern-picker {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .pattern-thumb {
      width: 72px;
      height: 72px;
    }
    .summary-list li {
      grid-template-columns: 1fr;
      gap: 4px;
    }
    .summary-list li span:first-child {
      font-size: 11px;
    }
    .summary-capture-btn {
      padding: 14px 12px;
      border-radius: 16px;
      gap: 10px;
    }
    .summary-capture-title {
      font-size: 15px;
    }
    .summary-capture-subtitle {
      font-size: 11px;
    }
    .gradient-angle-panel {
      grid-template-columns: 1fr;
    }
  }

/* Desktop palette recommend UI */
  .recommend-card{
    margin: 10px 0 14px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.18));
    border-radius: 16px;
  }
  .recommend-head{ display:flex; flex-direction:column; gap:4px; margin-bottom:12px;}
  .recommend-title{ font-weight:800; font-size:14px; letter-spacing:.2px;}
  .recommend-sub{ font-size:12px; opacity:.82; line-height:1.45;}
  .recommend-controls{ display:block; }
  #applyPaletteBtn{ width:100%; min-height:44px; }
  .recommend-meta{
    margin-top:12px;
    font-size:12px;
    line-height:1.55;
    opacity:.94;
    padding:10px 12px;
    border-radius:12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    white-space: pre-line;
  }



/* ---- next original style block ---- */



/* =====================================================================
   VOADEL Responsive Mobile UI v3 · latest pattern set
   - Desktop: original layout and original logic remain unchanged.
   - Mobile: same SVG garment, patterns, colors, text/logo logic.
   ===================================================================== */
#mobileStudioHeader,
#mobilePreviewBar,
#mobileStudioTabs,
#mobileControlsHost {
  display: none;
}

@media (max-width: 1024px) {
  :root {
    --mobile-header-h: 58px;
    --mobile-tabs-h: 64px;
  }

  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    background: #0b100e;
  }

  body.voadel-mobile-mode {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    overscroll-behavior: none;
  }

  body.voadel-mobile-mode .shell {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 50% -10%, rgba(47,103,79,.22), transparent 28%),
      #0b100e;
  }

  body.voadel-mobile-mode .left-panel,
  body.voadel-mobile-mode .right-panel {
    display: none !important;
  }

  #mobileStudioHeader {
    order: 0;
    flex: 0 0 var(--mobile-header-h);
    min-height: var(--mobile-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(12,18,15,.97);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    z-index: 60;
  }

  .mobile-brand-lockup {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobile-brand-mark {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #85c8a3;
    box-shadow: 0 0 14px rgba(133,200,163,.7);
  }

  .mobile-brand-copy {
    min-width: 0;
  }

  .mobile-brand-en {
    color: #9bd1b5;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-brand-title {
    margin-top: 3px;
    color: #f4f8f5;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
  }

  .mobile-head-btn {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.055);
    color: #eef5f0;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-head-btn.primary {
    border-color: rgba(255,211,92,.55);
    background: linear-gradient(135deg, #f5a63f, #f1cc4b);
    color: #1d1709;
    box-shadow: 0 8px 20px rgba(245,166,63,.2);
  }

  body.voadel-mobile-mode .workspace {
    order: 1;
    display: flex !important;
    flex-direction: column;
    flex: 0 0 clamp(350px, 52dvh, 560px);
    width: 100%;
    min-height: 0 !important;
    height: clamp(350px, 52dvh, 560px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #0d1310;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: flex-basis .22s ease, height .22s ease;
  }

  body.voadel-mobile-mode.mobile-preview-compact .workspace {
    flex-basis: 208px;
    height: 208px !important;
  }

  body.voadel-mobile-mode .workspace-top {
    display: none !important;
  }

  #mobilePreviewBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 0 0 44px;
    min-height: 44px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(15,22,19,.97);
    z-index: 12;
  }

  .mobile-face-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 154px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    background: #090e0c;
  }

  .mobile-face-btn {
    min-height: 31px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8fa097;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .03em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-face-btn.active {
    background: linear-gradient(180deg, rgba(44,102,76,.95), rgba(26,72,53,.95));
    color: #f5faf7;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  }

  .mobile-preview-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .mobile-preview-id {
    max-width: 112px;
    padding: 6px 9px;
    border: 1px solid rgba(124,211,165,.25);
    border-radius: 999px;
    background: rgba(33,83,61,.42);
    color: #bce5cd;
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-preview-toggle {
    min-width: 54px;
    min-height: 31px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: #dce7e0;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
  }

  body.voadel-mobile-mode .workspace-stage {
    position: relative;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 4px 6px 6px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(53,116,87,.18), transparent 36%),
      linear-gradient(180deg, #0b100f 0%, #0d1310 100%) !important;
  }

  body.voadel-mobile-mode .garment-grid {
    display: block !important;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
  }

  body.voadel-mobile-mode .garment-card {
    display: none !important;
    width: min(100%, 470px);
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 auto;
    padding: 4px !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.022);
    overflow: hidden !important;
  }

  body.voadel-mobile-mode[data-mobile-face="front"] #frontCaptureCard,
  body.voadel-mobile-mode[data-mobile-face="back"] #backCaptureCard {
    display: block !important;
  }

  body.voadel-mobile-mode .garment-label {
    top: 8px !important;
    left: 9px !important;
    z-index: 10;
    padding: 5px 8px !important;
    border-radius: 9px !important;
    font-size: 9px !important;
  }

  body.voadel-mobile-mode #frontCaptureCard .access-code-badge {
    display: none !important;
  }

  body.voadel-mobile-mode .pattern-stage {
    width: 100% !important;
    height: calc(100% - 24px) !important;
    min-height: 0 !important;
    margin-top: 24px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: rgb(16,21,19) !important;
    touch-action: none;
  }

  body.voadel-mobile-mode .pattern-svg {
    width: 100% !important;
    height: 100% !important;
  }

  body.voadel-mobile-mode .draggable,
  body.voadel-mobile-mode .image-logo {
    touch-action: none;
  }

  body.voadel-mobile-mode .draggable.active,
  body.voadel-mobile-mode .image-logo.active {
    outline-width: 1px;
  }

  #mobileStudioTabs {
    order: 2;
    flex: 0 0 var(--mobile-tabs-h);
    min-height: var(--mobile-tabs-h);
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    align-items: stretch;
    padding: 5px 6px;
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(12,18,15,.985);
    box-shadow: 0 -8px 22px rgba(0,0,0,.18);
    z-index: 55;
  }

  .mobile-tab-btn {
    min-width: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #7f9187;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tab-icon {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    line-height: 1;
    filter: grayscale(.2);
  }

  .mobile-tab-btn.active {
    background: linear-gradient(180deg, rgba(45,105,78,.44), rgba(24,57,43,.45));
    color: #dff4e7;
    box-shadow: inset 0 0 0 1px rgba(117,205,158,.22);
  }

  #mobileControlsHost {
    order: 3;
    flex: 1 1 auto;
    display: block;
    width: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 12px calc(26px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 20% 0%, rgba(40,94,70,.12), transparent 24%),
      #0b100e;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #mobileControlsHost::-webkit-scrollbar {
    width: 5px;
  }

  #mobileControlsHost::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(62,135,99,.75);
  }

  #mobileControlsHost > [data-mobile-panel] {
    display: none !important;
  }

  #mobileControlsHost > [data-mobile-panel].mobile-panel-visible {
    display: block !important;
  }

  #mobileControlsHost > .section {
    margin: 0 !important;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 19px;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014));
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
  }

  #mobileControlsHost > .right-card {
    margin: 0 !important;
    border-radius: 19px !important;
  }

  #mobileControlsHost > .editor-card-wrap {
    margin-top: 10px !important;
  }

  #mobileControlsHost .right-card-header {
    padding: 14px 15px 11px !important;
  }

  #mobileControlsHost .right-card-body {
    padding: 14px 15px 16px !important;
  }

  #mobileControlsHost .section h3 {
    margin-bottom: 10px;
    font-size: 12px;
  }

  #mobileControlsHost .section-hint {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.55;
  }

  #mobileControlsHost .pattern-picker {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #mobileControlsHost .pattern-btn,
  #mobileControlsHost .pattern-option {
    min-width: 0;
  }

  #mobileControlsHost .pattern-thumb {
    width: 74px !important;
    height: 74px !important;
  }

  #mobileControlsHost .grid-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  #mobileControlsHost .gradient-angle-panel {
    grid-template-columns: 1fr !important;
  }

  #mobileControlsHost input[type="color"],
  #mobileControlsHost textarea,
  #mobileControlsHost select,
  #mobileControlsHost input[type="range"],
  #mobileControlsHost input[type="file"],
  #mobileControlsHost button {
    font-size: 16px;
  }

  #mobileControlsHost .chip-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    overflow: visible !important;
  }

  #mobileControlsHost .chip-btn {
    width: 100%;
    min-height: 42px;
    white-space: normal !important;
  }

  #mobileControlsHost[data-active-tab="text"] .mobile-logo-target-group,
  #mobileControlsHost[data-active-tab="logo"] .mobile-text-target-group {
    display: none !important;
  }

  #mobileControlsHost[data-active-tab="text"] .mobile-text-target-group,
  #mobileControlsHost[data-active-tab="logo"] .mobile-logo-target-group {
    display: block !important;
  }

  #mobileControlsHost .target-groups {
    gap: 12px;
  }

  #mobileControlsHost .summary-capture-cta {
    margin-top: 12px;
  }

  #mobileControlsHost #resetBtn {
    margin-top: 10px;
  }

  .mobile-panel-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #a8b8af;
    font-size: 11px;
    font-weight: 750;
  }

  .mobile-panel-caption::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #78c79b;
    box-shadow: 0 0 10px rgba(120,199,155,.6);
  }

  .capture-select-overlay {
    z-index: 9999 !important;
  }
}

@media (max-width: 420px) {
  .mobile-brand-en {
    display: none;
  }

  .mobile-brand-title {
    margin-top: 0;
    font-size: 14px;
  }

  .mobile-head-btn {
    padding: 0 9px;
  }

  body.voadel-mobile-mode .workspace {
    flex-basis: clamp(332px, 49dvh, 480px);
    height: clamp(332px, 49dvh, 480px) !important;
  }

  #mobileControlsHost {
    padding-left: 9px;
    padding-right: 9px;
  }

  #mobileControlsHost > .section {
    padding: 13px;
  }

  #mobileControlsHost .pattern-thumb {
    width: 66px !important;
    height: 66px !important;
  }
}

@media (min-width: 1025px) {
  body:not(.voadel-mobile-mode) #mobileStudioHeader,
  body:not(.voadel-mobile-mode) #mobilePreviewBar,
  body:not(.voadel-mobile-mode) #mobileStudioTabs,
  body:not(.voadel-mobile-mode) #mobileControlsHost {
    display: none !important;
  }
}



/* ---- next original style block ---- */


/* ===== VOADEL v4: PNG + 주문하기 actions / mobile save stability ===== */
.summary-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.summary-action-grid .summary-capture-btn,
.summary-action-grid .summary-order-btn {
  min-width: 0;
  min-height: 104px;
  padding: 13px 10px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.summary-action-grid .summary-capture-meta {
  align-items: center;
  text-align: center;
}
.summary-action-grid .summary-capture-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}
.summary-action-grid .summary-capture-title {
  font-size: 14px;
  white-space: nowrap;
}
.summary-action-grid .summary-capture-subtitle {
  font-size: 10px;
  line-height: 1.35;
}
.summary-order-btn {
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(126, 224, 179, .48);
  background: linear-gradient(135deg, rgba(22, 88, 61, .98), rgba(51, 139, 98, .98));
  color: #f5fff8;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(20, 95, 63, .24), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .16s ease, box-shadow .16s ease;
}
.summary-order-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(20, 95, 63, .30), inset 0 1px 0 rgba(255,255,255,.20);
}
.summary-order-btn .summary-capture-icon {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.summary-order-btn .summary-capture-title,
.summary-order-btn .summary-capture-subtitle {
  color: #f5fff8;
}

.mobile-head-btn.order {
  border-color: rgba(126,224,179,.42);
  background: linear-gradient(135deg, rgba(26,95,66,.98), rgba(48,139,96,.98));
  color: #f4fff7;
  box-shadow: 0 8px 20px rgba(20,95,63,.18);
}
.mobile-head-btn .mobile-action-icon {
  margin-right: 4px;
  font-size: 13px;
}
body.voadel-mobile-mode .mobile-header-actions {
  gap: 5px;
}
body.voadel-mobile-mode .mobile-head-btn {
  min-height: 36px;
  padding: 0 8px;
  font-size: 10.5px;
  border-radius: 11px;
  white-space: nowrap;
}
body.voadel-mobile-mode .summary-action-grid {
  gap: 8px;
}
body.voadel-mobile-mode .summary-action-grid .summary-capture-btn,
body.voadel-mobile-mode .summary-action-grid .summary-order-btn {
  min-height: 92px;
}
@media (max-width: 380px) {
  body.voadel-mobile-mode .mobile-brand-title { font-size: 13px; }
  body.voadel-mobile-mode .mobile-brand-en { font-size: 8px; }
  body.voadel-mobile-mode .mobile-head-btn {
    width: 38px;
    padding: 0;
    font-size: 0;
  }
  body.voadel-mobile-mode .mobile-head-btn .mobile-action-icon {
    margin: 0;
    font-size: 16px;
  }
}


/* v11 mobile full-screen capture feedback */
#mobileSaveBtn:disabled { opacity:.72; cursor:wait; filter:saturate(.75); }


/* v12 UI fix: keep 3 pattern tiles per row on desktop without horizontal scrollbar */
@media (min-width: 1025px) {
  body:not(.voadel-mobile-mode) .pattern-picker { overflow-x:hidden !important; }
  body:not(.voadel-mobile-mode) .pattern-picker::-webkit-scrollbar:horizontal { height: 0 !important; }
}


/* v16 mobile save sheet */
#mobileSaveSheet { position: fixed; inset: 0; display: none; z-index: 1200; }
#mobileSaveSheet.show { display: block; }
.mobile-save-sheet-backdrop { position:absolute; inset:0; background: rgba(3,9,7,.62); backdrop-filter: blur(2px); }
.mobile-save-sheet-panel {
  position:absolute; left: 12px; right: 12px; bottom: 12px;
  border-radius: 24px; padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(14,24,20,.98), rgba(8,15,12,.98));
  border:1px solid rgba(124,225,179,.18);
  box-shadow: 0 20px 48px rgba(0,0,0,.36);
  color:#eaf2ed;
}
.mobile-save-sheet-close { position:absolute; top:10px; right:12px; width:32px; height:32px; border:none; border-radius:999px; background:rgba(255,255,255,.06); color:#eaf2ed; font-size:22px; line-height:1; }
.mobile-save-sheet-kicker { display:inline-flex; align-items:center; min-height:28px; padding:0 12px; border-radius:999px; background:rgba(72,173,123,.18); color:#bde8cf; font-weight:900; font-size:12px; letter-spacing:.03em; }
.mobile-save-sheet-panel h3 { margin:12px 0 8px; font-size:20px; line-height:1.2; }
.mobile-save-sheet-desc { margin:0 0 14px; color:#c7d5cd; font-size:13px; line-height:1.55; }
.mobile-save-sheet-actions { display:grid; gap:10px; }
.mobile-save-option { width:100%; text-align:left; border-radius:18px; padding:14px 14px 13px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03); color:#eef5f0; }
.mobile-save-option.primary { background: linear-gradient(135deg, rgba(75,164,115,.28), rgba(18,40,28,.95)); border-color: rgba(117,228,170,.28); }
.mobile-save-option.secondary { background: rgba(255,255,255,.04); }
.mobile-save-option-title { display:block; font-size:15px; font-weight:900; }
.mobile-save-option-sub { display:block; margin-top:4px; font-size:12px; line-height:1.45; color:#c9d4cd; }
.mobile-capture-guide { margin-top: 12px; display:grid; gap:8px; }
.mobile-guide-card { border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:12px 13px; background:rgba(255,255,255,.03); }
.mobile-guide-title { font-size:13px; font-weight:900; color:#eef5f0; }
.mobile-guide-body { margin-top:4px; font-size:13px; color:#cfe0d6; }
.mobile-guide-note { margin:2px 2px 0; font-size:11px; line-height:1.5; color:#a9b8b0; }
body.mobile-save-sheet-open { overflow:hidden; }


/* v17 prepared quick-save states */
#mobileQuickSaveAction:disabled { opacity:.72; cursor:wait; }
#mobileQuickSaveAction[data-state="preparing"] .mobile-save-option-title::after {
  content:""; display:inline-block; width:12px; height:12px; margin-left:8px;
  border:2px solid rgba(255,255,255,.35); border-top-color:#dff5e8; border-radius:50%;
  vertical-align:-2px; animation:voadelQuickSpin .8s linear infinite;
}
#mobileQuickSaveAction[data-state="ready"] { box-shadow:0 0 0 1px rgba(119,232,172,.24), 0 10px 28px rgba(25,106,65,.2); }
#mobileQuickSaveAction[data-state="error"] { border-color:rgba(255,170,120,.32); }
@keyframes voadelQuickSpin { to { transform:rotate(360deg); } }


/* v19 mobile save feedback */
#mobileSaveToast {
  position:fixed; left:50%; bottom:24px; z-index:1400;
  max-width:calc(100vw - 32px); transform:translate(-50%, 18px);
  padding:12px 16px; border-radius:999px;
  background:rgba(12,28,20,.96); border:1px solid rgba(126,226,177,.28);
  color:#eaf4ee; font-size:13px; font-weight:800; line-height:1.35;
  box-shadow:0 12px 30px rgba(0,0,0,.34); opacity:0; pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
#mobileSaveToast.show { opacity:1; transform:translate(-50%, 0); }


/* v20 multilingual: Chinese and English are global modes without order actions. */
html[data-voadel-lang="zh"] #orderRequestBtn,
html[data-voadel-lang="en"] #orderRequestBtn,
html[data-voadel-lang="zh"] #mobileOrderBtn,
html[data-voadel-lang="en"] #mobileOrderBtn,
body.voadel-global-language #orderRequestBtn,
body.voadel-global-language #mobileOrderBtn {
  display: none !important;
}
html[data-voadel-lang="zh"] .summary-action-grid,
html[data-voadel-lang="en"] .summary-action-grid,
body.voadel-global-language .summary-action-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}
html[data-voadel-lang="zh"] .summary-action-grid .summary-capture-btn,
html[data-voadel-lang="en"] .summary-action-grid .summary-capture-btn,
body.voadel-global-language .summary-action-grid .summary-capture-btn {
  width: 100% !important;
}


/* v22 mobile larger preview ratio: give the singlet preview more vertical space while keeping the existing structure intact. */
