.control-group{margin:0 0 2px;padding:0}.control-group+.control-group{margin-top:9px;border-top:1px solid var(--line)}.control-group-title{display:flex;align-items:center;justify-content:space-between;padding:15px 5px 2px;color:var(--ink);font-size:11px;font-weight:800;letter-spacing:.02em}.control-group-title small{font-size:9px;color:#99958d;text-transform:uppercase;letter-spacing:1px;font-weight:500}.control-group .section:first-of-type{border-top:0;padding-top:10px}.upload{border:2px dashed #8b82e8;background:linear-gradient(135deg,#f5f3ff,#fffefb);padding:16px 15px;gap:13px;box-shadow:0 5px 18px #7569d51f;cursor:pointer}.upload:hover,.upload.over{border-color:#5f54dc;background:#fff;box-shadow:0 7px 22px #7569d533;transform:translateY(-1px)}.upload:focus-within{border-color:#4f46c9;box-shadow:0 0 0 3px #6d62ff45,0 7px 22px #7569d533}.upload.done{border-style:solid;border-color:#49a978;background:#f5fff8}.upload.is-loading{pointer-events:none;opacity:.72}.upload.is-loading .upload-icon{font-size:0}.upload.is-loading .upload-icon:after{content:"";display:block;width:22px;height:22px;border:3px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:upload-spinner .8s linear infinite}@keyframes upload-spinner{to{transform:rotate(360deg)}}.upload-icon{width:50px;height:50px;border-radius:13px;background:var(--ink);color:#fff;font-size:24px;box-shadow:0 5px 12px #17171729}.upload-copy strong{font-size:14px;font-weight:800;letter-spacing:-.1px;color:#4f46c9;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.upload-copy span{font-size:11px;margin-top:4px;color:#5f54dc;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.upload:hover .upload-copy strong,.upload:hover .upload-copy span,.upload:focus-within .upload-copy strong,.upload:focus-within .upload-copy span{color:#3328a5}.background-color-tip{display:flex;align-items:flex-start;gap:7px;margin-top:10px;padding:9px 10px;border:1px solid #ff9a7e;border-radius:10px;background:#fff1ec;color:#8b2d16;font-size:10px;font-weight:750;line-height:1.55;box-shadow:0 4px 12px #ff5c3517}.background-color-tip:before{content:"!";display:grid;place-items:center;flex:none;width:17px;height:17px;border-radius:50%;background:var(--accent);color:#fff;font-size:11px;font-weight:900;line-height:1}

.title-gap-region>.range-row{margin-top:0}.title-gap-value,.range-percent-value{display:inline-flex;align-items:center;gap:6px;color:#57535f;font-variant-numeric:tabular-nums}.title-gap-input,.range-percent-input{box-sizing:border-box;width:82px;height:34px;border:1px solid #d9d5cc;border-radius:8px;background:#fffefa;color:#282725;padding:0 8px;font:650 13px/1 inherit;text-align:center;outline:none}.title-gap-input:hover,.range-percent-input:hover{border-color:#bcb8ad}.title-gap-input:focus,.range-percent-input:focus{border-color:#68655f;background:#fff;box-shadow:0 0 0 3px #00000008}
#preview-zoom{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:58px;height:34px;padding:0 10px;border:1px solid #4439b8;border-radius:9px;background:#5b4bd8;color:#fff;font-size:13px;font-weight:820;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 4px 10px #5145c733}
.frame-screen-uploads{margin-top:16px;padding-top:14px;border-top:1px dashed #d4d0c7;display:grid;gap:14px}.frame-screen-upload[hidden]{display:none}.frame-screen-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.frame-screen-heading strong{font-size:11px;font-weight:800;color:var(--ink)}.frame-screen-heading span{font-size:9px;color:#99958d;text-transform:uppercase;letter-spacing:.8px}

.focus-highlight{position:absolute;z-index:4;display:none;pointer-events:none;border:2px solid var(--acid);border-radius:10px;background:#d9ff4318;box-shadow:0 0 0 4px #d9ff4330,0 0 26px #d9ff4366;animation:focus-hint-pulse 1.05s ease-in-out infinite}.focus-highlight.show{display:block}@keyframes focus-hint-pulse{0%,100%{opacity:.3;box-shadow:0 0 0 3px #d9ff4320,0 0 14px #d9ff4340}50%{opacity:1;box-shadow:0 0 0 6px #d9ff4350,0 0 30px #d9ff4380}}

.text-style-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:7px;padding:8px;border:1px solid #e6e2da;border-radius:10px;background:#f5f3ee}.text-style-controls:focus-within{border-color:var(--acid);background:#fbfff0;box-shadow:0 0 0 2px #d9ff4370}.text-style-controls label{display:flex;align-items:center;gap:5px;min-width:0;color:#858078;font-size:9px}.text-style-controls .style-label{white-space:nowrap}.text-style-controls input[type=number],.text-style-controls select{width:100%;min-width:0;height:29px;border:1px solid #d9d5cc;border-radius:7px;background:#fffefa;color:var(--ink);padding:0 6px;font-size:10px}.text-style-controls input[type=color]{width:29px;height:29px;flex:none;border:0;padding:0;background:transparent}.text-style-controls input[type=color]::-webkit-color-swatch-wrapper{padding:0}.text-style-controls input[type=color]::-webkit-color-swatch{border:1px solid #0002;border-radius:7px}.text-style-heading{margin-top:16px;padding-top:14px;border-top:1px dashed #d4d0c7;font-size:10px;font-weight:800;color:#77746d}
.text-item-group,.setting-region{margin-top:12px;padding:12px;border:1px solid #dcd8cf;border-radius:14px;background:#fffefa;box-shadow:0 2px 8px #2a261d08;transition:border-color .18s,box-shadow .18s}.text-item-group:focus-within,.setting-region:focus-within{border-color:#aaa59a;box-shadow:0 0 0 3px #00000008}.text-item-group>.field{margin-top:0}.text-item-group>.text-style-controls{margin-top:9px}.type-subsection .text-item-group{margin-top:11px}.orientation-region{margin-top:0}.background-region>.themes{margin-top:0}.device-visibility-region>.device-edit-target{margin-top:10px}.screenshot-region.frame-screen-upload{margin-top:12px;padding:12px;border:1px solid #dcd8cf}.device-scale-region.range-row{margin-top:12px}.device-position-region.transform-panel{margin-top:12px}.text-shared-region>.color-grid,.footer-shared-region>.field{margin-top:0}.text-shared-region>.position-grid,.footer-shared-region>.position-grid{margin-top:10px}
.device-export-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding-top:12px;border-top:1px dashed #d8d4cb}.device-export-meta{min-width:0;color:#77736c;font-size:9px;line-height:1.45}.device-export-meta strong{display:block;color:#2b2926;font-size:10px;font-weight:780}.device-frame-export{flex:none;min-width:126px;height:38px;border:1px solid #171717;border-radius:10px;background:#171717;color:#fff;padding:0 13px;font-size:11px;font-weight:780;box-shadow:0 4px 10px #17171718;transition:.18s}.device-frame-export:hover{background:#343331;transform:translateY(-1px)}.device-frame-export:focus-visible{outline:3px solid #5167ff42;outline-offset:2px}.device-frame-export.busy{opacity:.65;pointer-events:none}
.seg.device-switches button.editing{outline:0;border-color:var(--line);background:#fffefa;color:#79766f;box-shadow:none}
.seg.device-switches button.active:not(.editing){border-color:#d5d1c8;background:#fffefa;color:#3f3c36;box-shadow:none}
.sticky-device-editor{position:sticky;top:0;z-index:12;margin:10px 0 0;padding:10px;border:1px solid #d5d1c8;border-radius:13px;background:#fffefaee;backdrop-filter:blur(14px);box-shadow:0 4px 12px #2a261d0d;transition:background-color .18s,border-color .18s,box-shadow .18s}
.sticky-device-sentinel{display:block;height:0;margin:0;padding:0;pointer-events:none}
.sticky-device-editor>span{padding-left:2px;color:#5f5b54;font-weight:780}
.sticky-device-editor button{min-width:94px}
.sticky-device-editor.is-stuck{background:#d9ff43;border-color:#8ea91b;box-shadow:0 10px 24px #778c1738}
.sticky-device-editor.is-stuck>span{color:#202600}
.section.devices-off .device-visibility-region~*{display:none!important}

.section{padding-top:22px;padding-bottom:22px}
  .section-title{margin-bottom:16px}
  .section-title h2{font-size:16px;line-height:1.25;font-weight:820;letter-spacing:-.25px;color:#171717}
  .section-title span{font-size:10px;line-height:1;font-weight:750;letter-spacing:1.15px;color:#6f6b63;background:#ece9e2;border-radius:999px;padding:5px 8px}
  .transform-panel h3,.type-subsection-title{font-size:14px;line-height:1.3;font-weight:800;color:#252421}
  .type-subsection-title span{font-size:9px;font-weight:700;padding:4px 7px;border-radius:999px;background:#ece9e2;color:#77736c}
  .text-style-heading{font-size:12px;line-height:1.45;font-weight:800;color:#4e4b45}
  .color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .color-field{min-width:0}
  .color-value-control{display:flex;align-items:center;gap:7px;min-width:0;width:100%;max-width:100%}
  .color-value-control>input[type="color"]{flex:0 0 auto}
  .color-value-control .color-hex-input{appearance:none;flex:1 1 0;min-width:0;width:0;height:29px;border:1px solid #d9d5cc;border-radius:7px;background:#fffefa;color:#272622;padding:0 7px;font:650 10px/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;letter-spacing:.15px;text-transform:uppercase;outline:none;cursor:text}
  .color-value-control .color-hex-input:hover{border-color:#bcb8ad}
  .color-value-control .color-hex-input:focus{border-color:#68655f;box-shadow:0 0 0 3px #00000008;background:#fff}
  .color-field.color-hex-ready{align-items:stretch;flex-direction:column;gap:5px}
  .color-field.color-hex-ready>span{order:0;color:#77746d;font-size:9px}
  .color-field.color-hex-ready>.color-value-control{order:1}
  .text-style-controls .style-color.color-hex-ready{align-items:center;flex-direction:row;gap:5px}
  .text-style-controls .style-color .color-value-control{flex:1 1 0;width:auto;gap:5px}
  .text-style-controls .style-color .color-hex-input{padding:0 5px;font-size:9px}
  @media(min-width:761px){
    .workspace{--sidebar-width:440px;position:relative;grid-template-columns:minmax(0,1fr) var(--sidebar-width)}
    .sidebar-resize-handle{position:absolute;z-index:14;top:0;bottom:0;left:calc(100% - var(--sidebar-width) - 7px);width:14px;border:0;padding:0;background:transparent;cursor:col-resize;touch-action:none}
    .sidebar-resize-handle::after{content:"";position:absolute;left:5px;top:50%;width:4px;height:54px;border-radius:99px;background:#b7b3aa;box-shadow:0 0 0 1px #fff8;transform:translateY(-50%);opacity:.55;transition:.18s}
    .sidebar-resize-handle:hover::after,.sidebar-resize-handle:focus-visible::after,body.sidebar-resizing .sidebar-resize-handle::after{height:76px;background:#6f6b63;opacity:1}
    .sidebar-resize-handle:focus-visible{outline:3px solid #5167ff42;outline-offset:-2px}
    body.sidebar-resizing{cursor:col-resize;user-select:none}
  }

  /* Keep editor labels readable alongside the larger controls. */
  .field label{font-size:12px}
  .color-field{font-size:11px}
  .transform-label{font-size:11px}
  .control-group-title{font-size:12px}
  .text-style-controls label,.text-style-controls .style-label{font-size:11px}
  .range-label{font-size:13px}
  .edit-note{font-size:11px}
  .frame-screen-heading span{font-size:11px}
  .upload-copy span{font-size:12px}
  body{font-size:16px}
  .intro p{font-size:14px}
  .section-title span{font-size:11px}
  .seg button{font-size:14px}
  .mini{font-size:12px}
  .preset strong{font-size:12px}
  .preset span{font-size:11px}
  .field input,.field select{font-size:14px}
  .text-style-controls input[type=number],.text-style-controls select{font-size:12px}
  .range-number-edit{font-size:13px}
  @media(max-width:760px){.sidebar-resize-handle{display:none}.sticky-device-editor{position:relative;top:auto;z-index:auto}}

  /* Right editor panel: keep every piece of interface copy comfortably readable. */
  .controls *{font-size:15px!important}
  .controls .intro h1{font-size:27px!important}
  .controls .section-title h2{font-size:18px!important}
  .controls .upload-icon{font-size:24px!important;background:#8b8b87;color:#fff;box-shadow:0 5px 12px #55555524}
  .controls .background-color-tip::before{font-size:15px}

  /* Remove repeated decorative English subtitles from the editor panel. */
  .controls .kicker,
  .controls .section-title>span,
  .controls .control-group-title>small,
  .controls .frame-screen-heading>span,
  .controls .type-subsection-title>span{display:none!important}
  .controls .control-group-title,
  .controls .text-style-heading{display:none!important}
  .controls label[for="device-scale"]>span{color:#171717;font-weight:800}
  .controls .color-hex-input{font-weight:400!important}
  .device-edit-target,.sticky-device-sentinel{display:none!important}
  .device-control-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}
  .device-control-heading .device-scale-title{display:block;margin:0;color:#171717;font-weight:800}
  .device-control-heading .inline-device-mode{margin-left:auto}

  /* Device type is the first decision: Duo or a Dynamic Island iPhone. */
  .device-type-section{padding-top:10px!important}
  .device-type-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .device-type-option[data-device-type="ipad"]{grid-column:1/-1}
  .device-type-option{display:flex;align-items:center;gap:11px;min-width:0;min-height:78px;padding:12px;border:1px solid #e1dee7;border-radius:14px;background:#fff;color:#5f5b65;text-align:left;transition:.18s}
  .device-type-option:hover{border-color:#aaa1ed;background:#f8f6ff}
  .device-type-option.active{border-color:#9e93ed;background:#f2efff;color:#5145c7;box-shadow:0 0 0 2px #a79def3b}
  .device-type-option>span:last-child{min-width:0}
  .device-type-option strong,.device-type-option small{display:block}
  .device-type-option strong{font-weight:820;color:#22202a;line-height:1.2}
  .device-type-option small{margin-top:5px;color:#85808c;line-height:1.2}
  .device-type-icon{position:relative;display:block;flex:none;box-sizing:border-box;border:2px solid currentColor;background:#fff}
  .device-type-icon-duo{width:34px;height:24px;border-radius:6px;background:linear-gradient(90deg,#fff 46%,currentColor 46% 54%,#fff 54%)}
  .device-type-icon-iphone{width:19px;height:34px;border-radius:6px}
  .device-type-icon-iphone::after{content:"";position:absolute;left:50%;top:3px;width:8px;height:3px;border-radius:99px;background:currentColor;transform:translateX(-50%)}
  .device-type-icon-ipad{width:28px;height:36px;border-radius:5px}
  .device-type-icon-ipad::after{content:"";position:absolute;left:50%;top:3px;width:3px;height:3px;border-radius:50%;background:currentColor;transform:translateX(-50%)}
  .iphone-finish-picker[hidden],.ipad-finish-picker[hidden]{display:none!important}
  .iphone-finish-title{margin-bottom:9px;color:#171717;font-weight:800}
  .iphone-finish-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
  .iphone-finish-options button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;height:42px;padding:0 8px;border:1px solid #e2dfe8;border-radius:10px;background:#fff;color:#696570;font-weight:720}
  .iphone-finish-options button:hover{border-color:#aaa1ed;background:#f8f6ff}
  .iphone-finish-options button.active{border-color:#9e93ed;background:#f2efff;color:#5145c7;box-shadow:0 0 0 2px #a79def35}
  .iphone-finish-options i{display:block;flex:none;width:17px;height:17px;border-radius:50%;border:1px solid #0002;box-shadow:inset 0 0 0 1px #fff4}
  .finish-blue{background:linear-gradient(135deg,#69738c,#202638)}
  .finish-orange{background:linear-gradient(135deg,#ffad75,#a73f17)}
  .finish-silver{background:linear-gradient(135deg,#f2f2f0,#7f817f)}
  .finish-gray{background:linear-gradient(135deg,#777b82,#25282e)}
  html[data-device-type="iphone"] .device-visibility-region,
  html[data-device-type="iphone"] .duo-device-note,
  html[data-device-type="iphone"] .inline-device-mode,
  html[data-device-type="ipad"] .device-visibility-region,
  html[data-device-type="ipad"] .duo-device-note,
  html[data-device-type="ipad"] .inline-device-mode{display:none!important}
  html[data-device-type="iphone"] .device-control-heading,
  html[data-device-type="ipad"] .device-control-heading{justify-content:flex-start}
  html[data-device-type="iphone"] .device-control-heading .range-number-edit,
  html[data-device-type="ipad"] .device-control-heading .range-number-edit{margin-left:0}
  .inline-device-mode{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #dfdbe8;border-radius:10px;background:#efedf4}
  .inline-device-mode button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:58px;height:34px;padding:0 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:#716d77;font-size:13px;font-weight:760;line-height:1}
  .inline-device-mode button:hover{background:#fff;border-color:#d7d2e3}
  .inline-device-mode button.active{background:#fff;border-color:#9e93ed;color:#5145c7;box-shadow:0 0 0 2px #a79def38}
  .inline-device-mode button::before{content:"";display:block;flex:none;box-sizing:border-box;border:2px solid currentColor;background:transparent}
  .inline-device-mode button[data-edit-mode="inner"]::before{width:20px;height:14px;border-radius:4px;background:linear-gradient(90deg,transparent 46%,currentColor 46% 54%,transparent 54%)}
  .inline-device-mode button[data-edit-mode="outer"]::before{width:11px;height:18px;border-radius:4px}
  .device-position-region h3{justify-content:space-between;gap:12px}
  .device-position-region .device-heading-copy{display:inline-flex;align-items:center;color:#171717;font-weight:800}

  /* Device state icons: unfolded dual-screen and folded portrait. */
  .device-switches button{justify-content:flex-start}
  .device-switches button::after{margin-left:auto}
  .device-switches button::before,.device-edit-target button::before{content:"";display:block;flex:none;box-sizing:border-box;border:2px solid currentColor;background:transparent}
  .device-switches #mode-inner::before{width:38px;height:24px;border-radius:6px;background:linear-gradient(90deg,transparent 47%,currentColor 47% 53%,transparent 53%)}
  .device-switches #mode-outer::before{width:20px;height:30px;border-radius:6px}
  .device-edit-target button{display:inline-flex;align-items:center;justify-content:center;gap:9px}
  .device-edit-target #edit-inner::before{width:28px;height:18px;border-radius:5px;background:linear-gradient(90deg,transparent 46%,currentColor 46% 54%,transparent 54%)}
  .device-edit-target #edit-outer::before{width:14px;height:22px;border-radius:4px}
  .device-edit-target button.active{background:#fffefa;border-color:#9a958b;color:#25231e;box-shadow:0 0 0 2px #b9b3aa55}
  .device-edit-target button.active:hover{background:#fff;border-color:#817c72}
  .frame-screen-heading strong{display:inline-flex;align-items:center;gap:10px}
  .frame-screen-heading strong::before{content:"";display:block;flex:none;box-sizing:border-box;border:2px solid currentColor;background:transparent}
  .frame-screen-upload[data-frame-screen="inner"] .frame-screen-heading strong::before{width:30px;height:19px;border-radius:5px;background:linear-gradient(90deg,transparent 46%,currentColor 46% 54%,transparent 54%)}
  .frame-screen-upload[data-frame-screen="outer"] .frame-screen-heading strong::before{width:15px;height:23px;border-radius:4px}
  .frame-screen-upload[data-frame-screen="iphone"] .frame-screen-heading strong::before{width:15px;height:28px;border-radius:5px;background:linear-gradient(currentColor,currentColor) 50% 3px/7px 3px no-repeat}
  .frame-screen-upload[data-frame-screen="ipad"] .frame-screen-heading strong::before{width:22px;height:29px;border-radius:4px;background:radial-gradient(circle,currentColor 0 1.5px,transparent 2px) 50% 3px/5px 5px no-repeat}

  /* Position heading follows the frame currently being edited. */
  .transform-panel h3{display:flex;align-items:center;gap:10px}
  .transform-panel h3::before{display:none}
  .transform-panel h3[data-device-mode="inner"]::before{width:30px;height:19px;border-radius:5px;background:linear-gradient(90deg,transparent 46%,currentColor 46% 54%,transparent 54%)}
  .transform-panel h3[data-device-mode="outer"]::before{width:15px;height:23px;border-radius:4px}
  .transform-panel h3[data-device-mode="iphone"]::before{width:15px;height:28px;border-radius:5px;background:linear-gradient(currentColor,currentColor) 50% 3px/7px 3px no-repeat}
  .transform-panel h3[data-device-mode="ipad"]::before{width:22px;height:29px;border-radius:4px;background:radial-gradient(circle,currentColor 0 1.5px,transparent 2px) 50% 3px/5px 5px no-repeat}

  /* Frame scale label follows the frame currently being edited. */
  .controls label[for="device-scale"]>span{display:inline-flex;align-items:center;gap:10px}
  .controls label[for="device-scale"]>span::before{display:none}
  .controls label[for="device-scale"]>span[data-device-mode="inner"]::before{width:30px;height:19px;border-radius:5px;background:linear-gradient(90deg,transparent 46%,currentColor 46% 54%,transparent 54%)}
  .controls label[for="device-scale"]>span[data-device-mode="outer"]::before{width:15px;height:23px;border-radius:4px}
  .controls label[for="device-scale"]>span[data-device-mode="iphone"]::before{width:15px;height:28px;border-radius:5px;background:linear-gradient(currentColor,currentColor) 50% 3px/7px 3px no-repeat}
  .controls label[for="device-scale"]>span[data-device-mode="ipad"]::before{width:22px;height:29px;border-radius:4px;background:radial-gradient(circle,currentColor 0 1.5px,transparent 2px) 50% 3px/5px 5px no-repeat}
  .presets .preset.active{border-color:#9a958b;box-shadow:0 0 0 2px #b9b3aa55}
  .mini.active{background:#fffefa;color:#25231e;border-color:#9a958b;box-shadow:0 0 0 2px #b9b3aa55}
  .theme.active{box-shadow:0 0 0 2px #9a958b;padding:2px}
  .finish.active{border-color:#9a958b;color:#3f3c36;box-shadow:inset 0 0 0 1px #b9b3aa}
  .device-frame-export{background:var(--acid);border-color:#9fb91f;color:#202600;box-shadow:0 6px 18px #8ea91b35}
  .device-frame-export:hover{background:#e8ff78;border-color:#7f9917;box-shadow:0 8px 24px #8ea91b45}

  @media(max-width:760px){
    .device-type-options{grid-template-columns:1fr}
    .device-type-option[data-device-type="ipad"]{grid-column:auto}
    .text-style-controls{grid-template-columns:1fr;gap:8px}
    .text-style-controls label{justify-content:space-between;width:100%}
    .text-style-controls input[type=number],.text-style-controls select{flex:1 1 auto;width:auto}
  }

  /* Figma palette: calm indigo surfaces, quiet borders, and soft selected states. */
  :root{--ink:#1c1b22;--muted:#77747e;--paper:#f7f6f4;--card:#fff;--line:#e4e1e9;--accent:#5b4bd8;--acid:#5b4bd8}
  body{background:var(--paper);color:var(--ink)}
  header{background:#fff;border-bottom-color:#e6e3eb}
  .mark{background:#5b4bd8;box-shadow:0 6px 16px #5b4bd82b}
  .head-btn{background:#fff;border-color:#e3e0ea;color:#5146bf}
  .head-btn:hover{border-color:#aaa1ed;background:#f7f5ff}
  .lang-switcher{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #e3e0ea;border-radius:11px;background:#f4f2fa}
  .lang-switcher .lang-switch{border:0;background:transparent;padding:6px 9px;border-radius:8px;font-size:12px;font-weight:700;color:#5e5870;line-height:1.1}
  .lang-switcher .lang-switch:hover{background:#fff;color:#4535c6}
  .lang-switcher .lang-switch.active{background:#5b4bd8;color:#fff;box-shadow:0 2px 6px #5b4bd830}
  .controls{background:#fbfafc;border-left-color:#e4e1e9}
  .controls::-webkit-scrollbar-thumb{background:#d9d5e7;border-color:#fbfafc}
  .section{border-top-color:#e7e4ec}
  .section-title h2,.control-group-title,.transform-panel h3,.type-subsection-title{color:#1e1d24}
  .section-title span,.control-group-title small,.type-subsection-title span{background:#f0eefb;color:#7168a0}
  .seg button,.preset,.field input,.field select,.color-field,.mini,.range-number-edit{background:#fff;border-color:#e3e0e8;color:#57535f}
  .seg button:hover,.preset:hover,.field input:hover,.field select:hover,.mini:hover{border-color:#aaa1ed;background:#f8f6ff}
  .seg button.active:not(.editing),.seg button.editing{border-color:#a79def;background:#f4f2ff;color:#5145c7;box-shadow:0 0 0 2px #a79def35}
  .seg button.active::after{background:radial-gradient(circle at 26px 10px,#fff 0 7px,transparent 7.5px),#5b4bd8}
  .seg button.editing{outline:0}
  .seg button.editing::after{background:radial-gradient(circle at 26px 10px,#fff 0 7px,transparent 7.5px),#5b4bd8}
  .device-edit-target button.active{background:#f4f2ff;border-color:#a79def;color:#5145c7;box-shadow:0 0 0 2px #a79def35}
  .device-edit-target button.active:hover{background:#eeebff;border-color:#8e82e8}
  .presets .preset.active{border-color:#9e93ed;background:#f2efff;color:#5145c7;box-shadow:0 0 0 2px #a79def45}
  .presets .preset.active span{color:#7269a3}
  .themes .theme.active{box-shadow:0 0 0 2px #9e93ed;padding:2px}
  .theme:hover{background:#f4f2ff}
  .color-field{color:#6d6877}
  .color-field input::-webkit-color-swatch{border-color:#d9d4e7}
  .background-color-tip{border-color:#f0c1b6;background:#fff4f1;color:#a64b36}
  .background-color-tip:before{background:#ef6e4f}
  .upload{border-color:#9388ec;background:#f8f7ff;box-shadow:0 5px 18px #7166d51b}
  .upload:hover,.upload.over{border-color:#5b4bd8;background:#fff;box-shadow:0 7px 22px #5b4bd82b}
  .upload:focus-within{border-color:#5b4bd8;box-shadow:0 0 0 3px #7669e840,0 7px 22px #5b4bd82b}
  .upload-icon,.controls .upload-icon{background:#5b4bd8;color:#fff;box-shadow:0 5px 12px #5b4bd82b}
  .upload-copy strong{color:#5145c7}
  .upload-copy span{color:#665bd1}
  .upload:hover .upload-copy strong,.upload:hover .upload-copy span,.upload:focus-within .upload-copy strong,.upload:focus-within .upload-copy span{color:#3d31a5}
  .upload.done{border-color:#72b78f;background:#f5fff8}
  .setting-region,.text-item-group{background:#fff;border-color:#e4e1e9;box-shadow:0 3px 12px #4037770a}
  .setting-region:focus-within,.text-item-group:focus-within{border-color:#b1a8ed;box-shadow:0 0 0 3px #7669e815}
  .text-style-controls{border-color:#e9e6f2;background:#f7f6fb}
  .text-style-controls:focus-within{border-color:#a79def;background:#f4f2ff;box-shadow:0 0 0 2px #a79def45}
  .text-style-controls input[type=number],.text-style-controls select{border-color:#ddd8eb;background:#fff;color:#2a2732}
  .text-style-heading{border-top-color:#ddd8eb;color:#5b5565}
  .transform-panel{background:#fff;border-color:#e4e1e9}
  .icon-seg,.rotation-actions,.number-control{background:#f2f1f7}
  .icon-btn:hover,.transform-action:hover,.icon-btn.active,.transform-action.active{background:#e5e1ff;color:#5145c7}
  .number-control:focus-within{background:#f8f7ff;outline-color:#a79def66}
  input[type=range]{accent-color:#5b4bd8}
  .stage{background:#efeff5}
  .stagebar{border-bottom-color:#e0dee8;color:#77747e}
  .stage-scroll{background:#efeff5}
  .exportbar{background:#f6f5fa;border-top-color:#e2dfe9}
  .export,.device-frame-export,.mobile-export{background:#5b4bd8;color:#fff;box-shadow:0 8px 22px #5b4bd83d}
  .export:hover,.device-frame-export:hover,.mobile-export:hover{background:#6b5bea;box-shadow:0 10px 28px #5b4bd84d}
  .export-size-tag{background:#fff;border-color:#e0dcef}
  .focus-highlight{border-color:#8f83eb;background:#7669e815;box-shadow:0 0 0 4px #7669e825,0 0 26px #7669e844}
  .focus-highlight.show{animation-name:focus-hint-pulse-indigo}
  @keyframes focus-hint-pulse-indigo{0%,100%{opacity:.3;box-shadow:0 0 0 3px #7669e815,0 0 14px #7669e828}50%{opacity:1;box-shadow:0 0 0 6px #7669e83d,0 0 30px #7669e85c}}
  .sticky-device-editor{background:#fff;border-color:#e0dcef;box-shadow:0 4px 12px #40377712}
  .sticky-device-editor.is-stuck{background:#f1efff;border-color:#a79def;box-shadow:0 10px 24px #5b4bd82b}
  .sticky-device-editor.is-stuck>span{color:#5145c7}
  .seo-content{background:#fbfafc;border-top-color:#e4e1e9;color:#26242d}
  .seo-eyebrow{color:#5b4bd8}
  .seo-feature,.seo-step-guide,.seo-shots figure{border-color:#e6e3eb;background:#fff}
  .seo-lead,.seo-feature p,.seo-steps,.seo-faq p,.seo-step-guide figcaption,.seo-shots figcaption{color:#706d77}

@media(max-width:760px){
  .stage-scroll{padding:28px 16px 48px;box-sizing:border-box}
  header{padding:0 12px;gap:8px}
  .brand{min-width:0;gap:8px}
  .brand span{display:none}
  .head-actions{gap:6px;flex:none}
  .head-actions .head-guide-link{display:none}
  .head-actions .lang-switcher{display:inline-flex;padding:2px;gap:1px}
  .head-actions .lang-switcher .lang-switch{display:inline-flex;align-items:center;justify-content:center;padding:5px 7px;font-size:11px;white-space:nowrap}
  .head-actions #reset-all{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;font-size:11px;line-height:1.1;white-space:nowrap}
}
@media(max-width:420px){
  header{padding:0 10px;gap:6px}
  .brand{gap:6px}
  .brand .mark{width:31px;height:31px;border-radius:9px}
  .brand .mark svg{width:18px}
  .brand strong{font-size:14px}
  .head-actions{gap:4px}
  .head-actions .lang-switcher .lang-switch{padding:4px 6px;font-size:10.5px}
  .head-actions #reset-all{padding:5px 7px;font-size:10.5px}
}

/* Clear keyboard focus without changing the visual treatment for pointer users. */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #7669e866;outline-offset:2px}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
.stagebar #draft-status:not([hidden]){display:inline-flex;align-items:center;max-width:48%;padding:5px 8px;border-radius:6px;background:#fff0d8;color:#7d3e00;font-size:11px;line-height:1.3}
@media(max-width:760px){.stagebar #draft-status:not([hidden]){max-width:55%;font-size:10px}}

/* Project setup precedes the per-canvas editing controls. */
.device-finish-section .setting-region{margin-top:0}
.project-device-note{margin:10px 0 0;color:#625d6b;font-size:11px;line-height:1.6}
.project-device-note[hidden]{display:none}
.device-finish-section .duo-finish-note{margin-top:0;padding:11px 12px;border:1px solid #e1dee7;border-radius:10px;background:#fffefa}
.device-orientation-section .orientation-region{margin-top:0}

/* 多行标题输入框、对齐按钮、水印开关、清除截图与画布拖拽反馈 */
.field textarea{width:100%;min-height:42px;max-height:140px;border:1px solid #e3e0e8;background:#fff;border-radius:9px;padding:9px 10px;outline:none;color:var(--ink);font:inherit;line-height:1.45;resize:vertical;display:block}
.field textarea:hover{border-color:#aaa1ed;background:#f8f6ff}
.field textarea:focus{border-color:#68655f;box-shadow:0 0 0 3px #00000008;background:#fff}
.field textarea.title-input{font-weight:730}
.text-align-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.text-align-label{color:#5e5a66;font-weight:650}
.text-align-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;flex:1;max-width:240px}
.text-align-buttons button{height:34px;border:1px solid #e3e0e8;border-radius:8px;background:#fff;color:#57535f;font-weight:650;padding:0 8px;transition:.16s}
.text-align-buttons button:hover{border-color:#aaa1ed;background:#f8f6ff}
.text-align-buttons button.active{border-color:#9e93ed;background:#f2efff;color:#5145c7;box-shadow:0 0 0 2px #a79def35}
.watermark-toggle{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.watermark-toggle input[type="checkbox"]{flex:none;width:18px;height:18px;margin:3px 0 0;accent-color:#5b4bd8;cursor:pointer}
.watermark-toggle-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.watermark-toggle-copy strong{color:#1e1d24;font-weight:750;line-height:1.35}
.watermark-toggle-copy small{color:#625d6b;line-height:1.45}
.controls .watermark-toggle-copy small{font-size:13px!important}
.mini-actions{flex-wrap:wrap}
.mini.mini-clear{margin-left:auto;color:#8e3425;border-color:#ebd0cb}
.mini.mini-clear:hover:not(:disabled){border-color:#d46b5a;background:#fff5f3;color:#7a2114}
.mini.mini-clear:disabled{opacity:.4;cursor:default}
.artboard-wrap canvas.is-dragging{cursor:grabbing!important}
.local-note,.stagebar,.edit-note,.canvas-hint,.seo-footer{color:#5e5a66}
.template-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.template-field{display:block;min-width:0}
.template-field>label,.template-field>span{display:block;font-size:12px!important;color:#625d6b;margin:0 1px 5px}
.template-field select,.template-field input[type="text"]{width:100%;border:1px solid #e3e0e8;background:#fff;border-radius:9px;padding:9px 10px;outline:none;color:var(--ink)}
.template-field select:hover,.template-field input[type="text"]:hover{border-color:#aaa1ed;background:#f8f6ff}
.template-field select:focus,.template-field input[type="text"]:focus{border-color:#68655f;box-shadow:0 0 0 3px #00000008;background:#fff}
.controls .headline-highlight-tip{margin:6px 2px 0;color:#625c75;font-size:12.5px!important;line-height:1.45}
@media(max-width:760px){.template-mini-grid{grid-template-columns:1fr}}
