.product-launch {
  color-scheme: dark;
  --launch-bg: #111310;
  --launch-panel: #191c17;
  --launch-field: #151813;
  --launch-border: #33392d;
  --launch-text: #f4f5ed;
  --launch-muted: #aeb7a5;
  --launch-accent: #d5efab;
  margin: 0;
  min-height: 100vh;
  background: var(--launch-bg);
  color: var(--launch-text);
  font: 15px/1.55 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.product-launch *, .product-launch *::before, .product-launch *::after { box-sizing: border-box; }
.product-launch [hidden] { display: none !important; }
.product-launch button, .product-launch input, .product-launch textarea { font: inherit; }
.product-launch button { cursor: pointer; }
.product-launch button:disabled { cursor: default; opacity: .48; }
.product-launch a { color: inherit; }
.product-launch :focus-visible { outline: 2px solid #e1f9b5; outline-offset: 4px; }

.launch-header { border-bottom: 1px solid #2d3428; }
.launch-header-inner, .launch-main { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.launch-header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.launch-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.launch-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--launch-accent); color: #293318; font-size: 20px; }
.launch-header nav { display: flex; gap: 24px; color: var(--launch-muted); font-size: 13px; }
.launch-header nav a { text-decoration: none; }
.launch-header nav a:hover { color: var(--launch-text); }
.launch-main { padding-block: 32px 48px; }
.launch-heading { display: flex; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.launch-heading h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -.055em; }
.launch-heading p { margin: 10px 0 0; color: var(--launch-muted); }
.launch-local { color: var(--launch-muted); font-size: 12px; white-space: nowrap; }
.launch-local::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #b4d38a; }
.launch-layout { display: grid; grid-template-columns: minmax(285px, 346px) minmax(0, 1fr); align-items: start; gap: 18px; }
.launch-editor, .launch-workspace { min-width: 0; padding: 20px; border: 1px solid var(--launch-border); border-radius: 17px; background: var(--launch-panel); }
.launch-editor h2, .launch-toolbar h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.launch-upload { display: flex; align-items: center; gap: 12px; position: relative; margin-top: 15px; padding: 14px; border: 1px dashed #6b7b59; border-radius: 12px; background: #22291e; cursor: pointer; }
.launch-upload.dragging, .launch-upload:hover { background: #303c27; }
.launch-upload:focus-within { outline: 2px solid var(--launch-accent); outline-offset: 2px; }
.launch-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.launch-upload-icon { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 9px; background: #344329; color: var(--launch-accent); font-size: 22px; }
.launch-upload strong, .launch-upload small { display: block; }
.launch-upload small, .launch-upload-meta { color: var(--launch-muted); font-size: 11px; }
.launch-upload-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; padding-top: 3px; }
.launch-upload-meta > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.launch-text-action { flex-shrink: 0; padding: 4px 0; border: 0; background: none; color: var(--launch-accent); }
.launch-fields { display: grid; gap: 12px; padding-block: 10px 16px; }
.launch-fields label, .launch-options legend { font-size: 13px; font-weight: 650; }
.launch-fields small, .launch-ratios small { color: var(--launch-muted); font-weight: normal; font-size: 11px; }
.launch-fields small { margin-left: 4px; }
.launch-fields input, .launch-fields textarea { width: 100%; margin-top: 5px; padding: 8px 10px; color: var(--launch-text); border: 1px solid var(--launch-border); border-radius: 8px; background: var(--launch-field); font-size: 14px; }
.launch-fields textarea { display: block; resize: vertical; min-height: 59px; }
.launch-fields :is(input, textarea)::placeholder { color: #929d89; }
.launch-options { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.launch-options:last-child { margin-bottom: 0; }
.launch-options legend { padding: 0 0 6px; }
.launch-ratios, .launch-swatches { display: grid; gap: 6px; }
.launch-ratios { grid-template-columns: repeat(3, 1fr); }
.launch-swatches { grid-template-columns: repeat(4, 1fr); }
.launch-ratios button, .launch-swatches button { min-width: 0; min-height: 35px; padding: 5px 3px; border: 1px solid var(--launch-border); border-radius: 8px; background: var(--launch-field); color: var(--launch-text); font-size: 12px; }
.launch-swatches button { display: grid; justify-items: center; gap: 3px; padding-block: 6px; font-size: 11px; }
.launch-swatches button span { width: 23px; height: 16px; border-radius: 4px; background: var(--swatch); }
.launch-swatches [data-theme-choice="oat"] { --swatch: #ecdcc4; }
.launch-swatches [data-theme-choice="sage"] { --swatch: #a8bf9e; }
.launch-swatches [data-theme-choice="blue"] { --swatch: #b2c8e2; }
.launch-swatches [data-theme-choice="ink"] { --swatch: #54656a; }
.launch-ratios button[aria-pressed="true"], .launch-swatches button[aria-pressed="true"] { border-color: #a2bd84; background: #2a3623; color: #e7f6d7; }
.launch-hint { margin: 7px 0 0; color: var(--launch-muted); font-size: 11px; }
.launch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.launch-actions, .launch-views { display: flex; gap: 8px; }
.launch-button { min-height: 36px; padding: 7px 12px; border-radius: 8px; font-weight: 700 !important; font-size: 13px !important; }
.launch-primary { border: 1px solid var(--launch-accent); background: var(--launch-accent); color: #1d2915; }
.launch-primary:hover:not(:disabled) { background: #e8f8ce; }
.launch-secondary { border: 1px solid #54614b; background: #262d23; color: var(--launch-text); }
.launch-secondary:hover:not(:disabled) { background: #36412f; }
.launch-views { margin: 12px 0 11px; overflow: auto; }
.launch-views button { padding: 5px 9px; color: var(--launch-muted); background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 13px; white-space: nowrap; }
.launch-views button[aria-pressed="true"] { color: var(--launch-text); background: #30372b; border-color: #424c3b; }
.launch-stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 300px;
  height: clamp(300px, 59vh, 670px);
  padding: clamp(12px, 2.4vw, 26px);
  overflow: hidden;
  border: 1px solid #343b31;
  border-radius: 12px;
  background: radial-gradient(circle at center, #363d32, #262d25);
}
.launch-stage canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; border-radius: 3px; box-shadow: 0 18px 45px #0c120a88; }
.launch-stage canvas.is-original { background: #dbdcd4; }
.launch-stage:has(canvas.is-detail:not([hidden])) { display: block; overflow: auto; }
.launch-stage canvas.is-detail { display: block; width: min(100%, 540px); max-height: none; margin-inline: auto; }
.launch-materials { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--launch-border); }
.launch-material-heading { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.launch-material-heading h3 { margin: 0; font-size: 14px; }
.launch-material-heading h3 span { color: var(--launch-muted); font-size: 12px; font-weight: 400; }
.launch-material-upload { position: relative; min-height: 30px; padding: 4px 8px; cursor: pointer; }
.launch-material-upload:focus-within { outline: 2px solid var(--launch-accent); outline-offset: 2px; }
.launch-material-upload:has(input:disabled) { opacity: .5; cursor: default; }
.launch-material-list { display: grid; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.launch-material-list:empty { margin: 0; }
.launch-material-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 5px 8px; align-items: center; padding: 7px; border: 1px solid var(--launch-border); border-radius: 8px; }
.launch-material-list canvas { background: #eef0e7; width: 40px; height: 40px; border-radius: 4px; }
.launch-material-list .material-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.launch-material-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 3px; }
.launch-material-controls button, .launch-material-controls select { font-size: 12px; }
.launch-material-controls select { max-width: 100%; padding: 1px 3px; color: var(--launch-text); background: var(--launch-panel); border: 1px solid var(--launch-border); border-radius: 4px; }
.launch-detail-fields { display: grid; gap: 9px; margin: 10px 0; padding: 9px 10px; border: 1px solid var(--launch-border); border-radius: 8px; }
.launch-detail-fields[hidden] { display: none; }
.launch-detail-fields label { display: grid; gap: 4px; font-size: 13px; }
.launch-detail-fields textarea { width: 100%; padding: 6px 8px; background: var(--launch-panel); color: var(--launch-text); border: 1px solid var(--launch-border); border-radius: 5px; font: inherit; resize: vertical; }
.launch-empty { display: grid; text-align: center; gap: 5px; color: var(--launch-muted); }
.launch-empty strong { color: var(--launch-text); }
.launch-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; color: var(--launch-muted); font-size: 12px; }
.launch-status { margin: 0; color: var(--launch-accent); font-size: 13px; }
.launch-status:not(:empty) { margin-top: 8px; }
.launch-status[data-error="true"] { color: #ffc3ae; }
.launch-video-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; margin: 0 0 12px; border: 1px solid #9aac76; border-radius: 8px; color: inherit; font: inherit; font-size: 13px; }
.launch-video-note[hidden] { display: none; }
.launch-video-note button { border-radius: 6px; padding: 5px 10px; border: 1px solid #98a87b; background: #d5efab; color: #1d2915; cursor: pointer; }

@media (max-width: 940px) {
  .launch-header-inner, .launch-main { width: calc(100% - 40px); }
  .launch-layout { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: 12px; }
  .launch-editor, .launch-workspace { padding: 15px; }
}
@media (max-width: 700px) {
  .launch-header-inner, .launch-main { width: calc(100% - 28px); }
  .launch-header-inner { min-height: 53px; }
  .launch-header nav { gap: 13px; }
  .launch-header nav a:first-child { display: none; }
  .launch-main { padding-block: 24px 32px; }
  .launch-heading { display: block; margin-bottom: 15px; }
  .launch-heading p { margin-top: 6px; }
  .launch-local { display: inline-block; margin-top: 5px; }
  .launch-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-stage { height: min(102vw, 450px); min-height: 260px; }
}
@media (max-width: 370px) {
  .launch-toolbar { align-items: flex-start; flex-direction: column; }
}

.launch-ai-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 5px; font-size: 12px; }
.launch-dialog { width: min(440px, calc(100% - 32px)); padding: 22px; border: 1px solid #56624b; border-radius: 14px; background: var(--launch-panel); color: var(--launch-text); }
.launch-dialog::backdrop { background: #081008b8; }
.launch-dialog h2 { margin: 0; font-size: 20px; }
.launch-dialog p { margin: 10px 0; color: var(--launch-muted); }
.launch-dialog a { color: var(--launch-accent); }
.launch-dialog .launch-actions { margin-top: 18px; justify-content: flex-end; }

.launch-mobile-link { display: none; }
@media (max-width: 700px) {
  .launch-editor { display: contents; }
  .launch-upload-panel, .launch-settings { min-width: 0; padding: 15px; border: 1px solid var(--launch-border); border-radius: 17px; background: var(--launch-panel); }
  .launch-upload-panel { order: 0; }
  .launch-workspace { order: 1; }
  .launch-settings { order: 2; }
  .launch-mobile-link { display: inline-block; color: var(--launch-accent) !important; font-size: 12px; }
}

.launch-projects { display: flex; align-items: end; gap: 9px; margin-top: 12px; }
.launch-project-picker { display: grid; gap: 3px; min-width: 0; flex: 1; color: var(--launch-muted); font-size: 11px; }
.launch-project-picker select { min-width: 0; width: 100%; min-height: 36px; padding: 5px 7px; border: 1px solid var(--launch-border); border-radius: 8px; background: var(--launch-field); color: var(--launch-text); font: inherit; font-size: 12px; }
.launch-projects button { flex-shrink: 0; }
.launch-storage-status { min-height: 17px; margin-bottom: 0; }
.launch-storage-status[data-error="true"] { color: #ffc3ae; }
.launch-brand-settings { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--launch-border); }
.launch-brand-settings summary { cursor: pointer; color: var(--launch-text); font-size: 13px; font-weight: 650; }
.launch-brand-settings form { display: grid; gap: 8px; margin-top: 10px; font-size: 13px; }
.launch-brand-color, .launch-logo-picker { display: flex; align-items: center; gap: 8px; }
.launch-brand-color input { width: 39px; height: 28px; margin-left: auto; padding: 2px; border: 1px solid var(--launch-border); border-radius: 5px; background: var(--launch-field); }
.launch-logo-picker { position: relative; min-height: 40px; padding: 6px 8px; border: 1px dashed var(--launch-border); border-radius: 8px; cursor: pointer; }
.launch-logo-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.launch-logo-picker:focus-within { outline: 2px solid var(--launch-accent); outline-offset: 2px; }
.launch-logo-picker canvas { width: 34px; height: 34px; border-radius: 5px; background: #e6e7e0; }
.launch-brand-check { display: flex; align-items: center; gap: 5px; }
.launch-brand-check input { accent-color: var(--launch-accent); }
.launch-brand-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.launch-brand-settings .launch-hint { margin: 0; }
.launch-brand-settings [data-error="true"] { color: #ffc3ae; }

.launch-compose { margin: 0 0 11px; padding: 8px 10px; border: 1px solid var(--launch-border); border-radius: 9px; }
.launch-compose summary { cursor: pointer; color: var(--launch-text); font-size: 13px; }
.launch-compose summary span { margin-left: 6px; color: var(--launch-muted); font-size: 11px; }
.launch-compose-controls { display: grid; align-items: end; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px 15px; padding-top: 8px; }
.launch-compose-controls label { min-width: 0; font-size: 12px; }
.launch-compose-controls output { color: var(--launch-accent); margin-left: 3px; }
.launch-compose-controls input[type="range"] { display: block; width: 100%; margin: 4px 0 0; accent-color: var(--launch-accent); }
.launch-compose-controls button { font-size: 12px; }
.launch-stage canvas.can-reposition { cursor: grab; touch-action: none; }
.launch-stage canvas.is-repositioning { cursor: grabbing; }
.launch-export-set { color: var(--launch-accent); white-space: nowrap; }
@media (max-width: 540px) {
  .launch-compose-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
  .launch-compose-controls button { justify-self: start; }
}


/* The product editor uses the shared navigation drawer without the full workspace layout. */
.launch-shell { min-height: 100vh; }
.launch-content { min-width: 0; }
.launch-header-inner { gap: 12px; }
.launch-header-inner > .launch-brand { margin-right: auto; }
.launch-header-inner > .site-navigation-trigger { margin-right: 0; }
.launch-sidebar {
  --workspace-paper: #131619;
  --workspace-line: #30343a;
  --workspace-ink: #e8dfcb;
  position: fixed;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  color: #dbc49a;
}
.launch-sidebar > .brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #685c45;
  border-radius: 13px;
  background: #242826;
  text-decoration: none;
}
.launch-sidebar > .brand > svg { width: 21px; height: 21px; }
.launch-sidebar svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.launch-sidebar a.rail-link { color: #b7b8bd; text-decoration: none; white-space: nowrap; }
.launch-sidebar a.rail-link.active { background: #292821; color: #f0dda9; font-weight: 650; }
.launch-sidebar .rail-badge { padding: 1px 4px; border-radius: 9px; background: #dac291; color: #252018; font-size: 9px; }
.launch-sidebar .rail-admin-group { margin-top: 12px; border-top: 1px solid #353637; }
html[data-site-nav] .product-launch .launch-sidebar [hidden] { display: none !important; }

@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .product-launch .site-navigation-edge,
  .product-launch .site-navigation-edge:hover {
    inset: 0 auto 0 0;
    width: 12px;
    height: 100dvh;
    border-radius: 0;
    background: transparent;
  }
  .product-launch .site-navigation-edge::before {
    width: 3px;
    height: 27px;
    box-shadow: 0 0 0 3px #dec99b26;
  }
}

.launch-import-entry { margin-top: 3px; text-align: left; font-size: 13px; }
.launch-import-dialog { width: min(580px, calc(100% - 32px)); max-height: min(86vh, 740px); overflow: auto; }
.launch-import-heading, .launch-import-input { display: flex; align-items: center; gap: 8px; }
.launch-import-heading { justify-content: space-between; }
.launch-import-dialog label { font-size: 13px; }
.launch-import-input { margin-top: 5px; }
.launch-import-input input { min-width: 0; flex: 1; padding: 9px; border: 1px solid var(--launch-border); border-radius: 8px; background: var(--launch-field); color: var(--launch-text); }
.launch-import-input button { flex: none; }
.launch-import-tools { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; }
.launch-import-result { margin-top: 12px; padding: 13px; border: 1px solid var(--launch-border); border-radius: 10px; }
.launch-import-result > span { color: var(--launch-muted); font-size: 12px; }
.launch-import-result h3 { margin: 3px 0; font-size: 17px; overflow-wrap: anywhere; }
.launch-import-result p { margin: 4px 0; overflow-wrap: anywhere; }
.launch-import-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 95px)); gap: 9px; margin-top: 9px; }
.launch-import-photos:empty { display: none; }
.launch-import-photos label { position: relative; display: block; cursor: pointer; }
.launch-import-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 7px; border: 1px solid var(--launch-border); background: #e6ddce; color: #292d24; font-size: 11px; }
.launch-import-photos input { position: absolute; top: 4px; left: 4px; accent-color: #6c873a; }
.launch-import-photos label:has(input:checked) img { border: 2px solid var(--launch-accent); }
.launch-import-photos .import-image-unavailable { opacity: .55; }
.launch-import-dialog .launch-actions { flex-wrap: wrap; }

.launch-browser-setup { margin-top: 12px; font-size: 13px; color: var(--launch-muted); }
.launch-browser-setup summary { width: fit-content; color: var(--launch-accent); cursor: pointer; }
.launch-browser-setup ol { margin: 8px 0 0; padding-inline-start: 22px; }
.launch-browser-reopen { margin-top: 10px; }

.launch-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 5px; }
.launch-photo-actions .launch-import-entry { margin-top: 0; }
.launch-white-main { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; color: var(--launch-muted); }
.launch-white-main[hidden] { display: none; }
.launch-cutout-dialog { width: min(740px, calc(100% - 20px)); max-height: min(90dvh, 940px); overflow: auto; }
.launch-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cutout-canvas-wrap { display: grid; justify-items: safe center; max-height: 48dvh; overflow: auto; background: #141813; border: 1px solid var(--launch-border); border-radius: 9px; }
.cutout-canvas-wrap canvas { display: block; width: 100%; height: auto; max-width: none; max-height: none; touch-action: none; cursor: crosshair; background: repeating-conic-gradient(#bcc2b8 0 25%, #e7e9e3 0 50%) 0 0 / 22px 22px; }
.cutout-tools, .launch-export-options { min-width: 0; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--launch-border); border-radius: 9px; }
.cutout-options { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: center; font-size: 13px; }
.cutout-sliders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; }
.cutout-sliders label { display: grid; gap: 3px; font-size: 12px; color: var(--launch-muted); }
.cutout-sliders input { width: 100%; min-width: 0; margin: 0; }
.launch-export-options label { display: block; margin: 6px 0; font-size: 14px; }
.launch-white-main input, .cutout-tools input, .launch-export-options input { accent-color: #79994a; }
.launch-cutout-dialog .launch-actions { flex-wrap: wrap; }
@media (max-width: 520px) {
  .launch-cutout-dialog { padding: 14px; }
  .cutout-sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cutout-canvas-wrap { max-height: 43dvh; }
}

/* ===== 电脑紧凑尺寸（自动生成，只对鼠标设备、宽屏生效）===== */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
.launch-header-inner { min-height: 51px; gap: 16px; }
.launch-brand-mark { font-size: 18px; }
.launch-header nav { gap: 19px; }
.launch-main { padding-block: 26px 38px; }
.launch-heading h1 { font-size: clamp(2.2rem,  3.2vw,  3.25rem); }
.launch-layout { gap: 14px; }
.launch-editor, .launch-workspace { padding: 17px; }
.launch-editor h2, .launch-toolbar h2 { font-size: 15px; }
.launch-upload-icon { font-size: 20px; }
.launch-fields { padding-block: 10px 14px; }
.launch-fields textarea { min-height: 47px; }
.launch-stage { min-height: 255px; padding: clamp(12px, 2.4vw, 22px); }
.launch-dialog { padding: 19px; }
.launch-dialog h2 { font-size: 18px; }
.launch-logo-picker { min-height: 32px; }
.launch-import-result h3 { font-size: 16px; }
.cutout-options { gap: 7px 13px; }

}
