#designer-studio-root[hidden] { display: none; }
body.designer-studio-active { overflow: hidden; }
#designer-studio-root { position: fixed; z-index: 18; inset: 66px 0 0 232px; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #24272d; background: #f4f5f7; }
#designer-studio-root * { box-sizing: border-box; }
#designer-studio-root button, #designer-studio-root textarea { font: inherit; }
#designer-studio-root button { cursor: pointer; }
#designer-studio-root button:disabled { opacity: .48; cursor: not-allowed; }
#designer-studio-root button:focus-visible, #designer-studio-root textarea:focus-visible, #designer-studio-root a:focus-visible { outline: 2px solid #e0bc00; outline-offset: 2px; }
.ds-shell { display: flex; width: 100%; height: 100%; min-height: 0; }
.ds-workspace { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; background: #f3f4f6; }
.ds-workspace-top { height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.ds-title { min-width: 120px; display: flex; flex-direction: column; line-height: 1.25; }
.ds-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ds-title span { color: #828892; font-size: 11px; }
.ds-tabs { display: flex; align-self: center; padding: 3px; border: 1px solid #edf0f2; border-radius: 8px; background: #f7f8fa; }
.ds-tabs button { min-width: 86px; padding: 7px 11px; border: 0; border-radius: 6px; background: none; color: #6a717b; white-space: nowrap; }
.ds-tabs button.active { background: #fff; color: #1f2329; font-weight: 700; box-shadow: 0 1px 3px #24272d14; }
.ds-zoom { display: flex; align-items: center; gap: 7px; color: #626972; white-space: nowrap; }
.ds-zoom button { width: 27px; height: 27px; border: 0; border-radius: 5px; background: #f4f5f7; font-size: 19px; line-height: 1; }
.ds-zoom button:hover, .ds-tools button:hover, .ds-compose-actions button:hover { background: #fff4a6; color: #1f2329; }
.ds-tools { position: absolute; z-index: 2; left: 18px; top: 50%; display: flex; flex-direction: column; gap: 5px; transform: translateY(-50%); padding: 6px; border: 1px solid #e4e6e9; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px #20242a12; }
.ds-tools button { width: 34px; height: 36px; border: 0; border-radius: 6px; background: #fff; font-size: 20px; }
.ds-canvas { display: flex; flex: 1; min-height: 0; align-items: center; justify-content: center; position: relative; overflow: auto; padding: 30px 72px; }
.ds-empty-canvas { display: flex; flex-direction: column; align-items: center; max-width: 380px; text-align: center; color: #59616b; }
.ds-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 13px; border-radius: 8px; background: #fff; color: #d6ae00; font-size: 25px; box-shadow: 0 4px 12px #252a3110; }
.ds-empty-canvas strong { color: #30343b; font-size: 17px; }
.ds-empty-canvas p { margin: 7px 0 16px; }
.ds-empty-canvas button, .ds-new, .ds-refresh { padding: 8px 13px; border: 1px solid #e1e3e6; border-radius: 6px; background: #fff; color: #343b45; }
.ds-canvas-image, .ds-canvas-placeholder { position: relative; width: min(62vw, 620px); max-width: 100%; max-height: 70vh; overflow: hidden; border: 9px solid #fff; background: #fff; box-shadow: 0 7px 22px #242a3619; transform-origin: center; }
.ds-canvas-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ds-canvas-image img[src=""] { display: none; }
.ds-ref-indicator { position: absolute; left: 9px; bottom: 9px; padding: 5px 8px; border-radius: 4px; background: #fffdf0ed; color: #5a4c00; font-size: 11px; }
.ds-source-thumbs { position: absolute; top: 16px; right: 16px; max-width: 220px; padding: 8px; border: 1px solid #e5e7e9; border-radius: 7px; background: #fff; box-shadow: 0 3px 12px #242a3614; }
.ds-source-thumbs strong { display: block; margin-bottom: 5px; color: #555e68; font-size: 11px; }
.ds-source-thumbs > div { display: flex; gap: 5px; overflow-x: auto; }
.ds-source-thumbs img { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 4px; object-fit: cover; }
.ds-source-thumbs img[alt] { background: #f1f3f5; }
.ds-canvas-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; background: linear-gradient(125deg,#f4eef9,#dcecf5,#eee6f5); color: #5b6270; }
.ds-canvas-placeholder strong { font-size: 18px; }
.ds-ratio-avatar { aspect-ratio: 1; }
.ds-ratio-sign { aspect-ratio: 1384/780; }
.ds-ratio-poster { aspect-ratio: 3; }
.ds-ratio-dish { aspect-ratio: 4/3; }
.ds-ratio-wall { aspect-ratio: 720/990; }
.ds-canvas-actions { position: absolute; bottom: 13px; display: flex; gap: 18px; padding: 8px 12px; border: 1px solid #e5e7e9; border-radius: 6px; background: #fff; color: #69717b; font-size: 12px; }
.ds-canvas-actions a { color: #7c6500; text-decoration: none; }
.ds-filmstrip { flex: none; display: flex; gap: 10px; height: 111px; padding: 9px 17px 9px 66px; overflow-x: auto; border-top: 1px solid #e2e5e9; background: #fff; }
.ds-image-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 7px; background: #fff; text-align: left; color: #353b44; }
.ds-image-card.selected { border-color: #dfb900; box-shadow: 0 0 0 2px #ffe81566; }
.ds-image-body { display: flex; align-items: center; justify-content: center; width: 100%; height: 160px; background: #f1f3f5; color: #959da8; font-size: 12px; }
.ds-image-body img { width: 100%; height: 100%; object-fit: contain; }
.ds-image-caption { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; }
.ds-image-caption strong { font-size: 12px; font-weight: 650; }
.ds-image-caption small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8b929c; font-size: 11px; }
.ds-image-card.compact { flex: 0 0 88px; }
.ds-image-card.compact .ds-image-body { height: 65px; }
.ds-image-card.compact .ds-image-caption { padding: 4px 5px; }
.ds-image-card.compact small { display: none; }
.ds-list { flex: 1; min-height: 0; overflow: auto; padding: 24px 65px; }
.ds-list h2 { margin: 0 0 18px; font-size: 18px; }
.ds-list p { color: #8c939d; }
.ds-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
.ds-drawer { position: absolute; z-index: 4; top: 0; right: 380px; bottom: 0; width: min(340px, calc(100% - 380px)); min-width: 240px; overflow: hidden; border: 1px solid #e3e5e8; border-radius: 8px 0 0 8px; background: #fff; box-shadow: -8px 0 24px #29303b12; }
.ds-drawer header, .ds-chat header { display: flex; flex: none; align-items: center; justify-content: space-between; height: 58px; padding: 0 16px; border-bottom: 1px solid #eef0f2; }
.ds-drawer header strong, .ds-chat header strong { font-size: 16px; }
.ds-drawer header button, .ds-chat header button { width: 30px; height: 30px; border: 0; border-radius: 5px; background: none; color: #58616b; font-size: 20px; }
.ds-drawer header button:hover, .ds-chat header button:hover { background: #f1f2f4; }
.ds-drawer { display: flex; flex-direction: column; }
.ds-new { margin: 15px; }
.ds-history, .ds-ref-content { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
.ds-history button { display: block; width: 100%; padding: 11px; border: 0; border-bottom: 1px solid #f0f1f2; background: none; text-align: left; }
.ds-history button.active { background: #fff9cc; }
.ds-history strong, .ds-history small { display: block; }
.ds-history small { color: #8a929d; }
.ds-ref-content > p { margin: 0 0 13px; color: #828a95; font-size: 12px; }
.ds-ref-content h3 { margin: 17px 0 8px; font-size: 13px; }
.ds-refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ds-refs button { padding: 3px; border: 2px solid transparent; border-radius: 6px; background: #f6f7f8; color: #606873; text-align: left; font-size: 11px; }
.ds-refs button.selected { border-color: #e2bc00; background: #fffbe0; }
.ds-refs img { display: block; width: 100%; height: 90px; object-fit: contain; }
.ds-refs span { display: block; padding: 5px 3px; }
.ds-role-tabs { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 3px; }
.ds-role-tabs button { flex: none; padding: 5px 7px; border: 1px solid #e4e6e9; border-radius: 5px; background: #fff; color: #565e67; font-size: 12px; }
.ds-role-tabs button.active { border-color: #e3be00; background: #fff7bc; color: #262a30; font-weight: 700; }
.ds-gallery-filter { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #69717b; font-size: 12px; }
.ds-gallery-filter select { flex: 1; min-width: 0; padding: 7px; border: 1px solid #e1e4e8; border-radius: 5px; background: #fff; color: #303740; }
.ds-gallery-search { display: flex; gap: 5px; margin: 10px 0 13px; }
.ds-gallery-search input { flex: 1; min-width: 0; padding: 7px; border: 1px solid #e1e4e8; border-radius: 5px; background: #f7f8fa; color: #303740; }
.ds-gallery-search button, .ds-gallery-more { padding: 7px 10px; border: 1px solid #e1e4e8; border-radius: 5px; background: #fff; color: #343a43; }
.ds-gallery-more { display: block; width: 100%; margin-top: 12px; }
.ds-current-ref { padding: 6px 8px; border-radius: 5px; background: #fff8cb; color: #6f5b00 !important; }
.ds-generating { animation: ds-generate 2s ease-in-out infinite alternate; }
@keyframes ds-generate { from { background-position: 0 0; filter: saturate(.8); } to { background-position: 100% 0; filter: saturate(1.25); } }
.ds-menu-map { margin: 10px 0 14px; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 7px; background: #fff; }
.ds-menu-map > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 9px 11px; border-bottom: 1px solid #eceef1; }
.ds-menu-map > header strong, .ds-menu-map > header small { display: block; }
.ds-menu-map > header strong { font-size: 13px; }
.ds-menu-map > header small { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #858d98; font-size: 10px; }
.ds-menu-map > header button { flex: none; padding: 6px 9px; border: 1px solid #e3be00; border-radius: 5px; background: #fff8bd; color: #39320a; font-size: 11px; }
.ds-menu-empty { margin: 10px; padding: 18px 10px; border: 1px dashed #d9dde2; border-radius: 5px; color: #8a929d; text-align: center; font-size: 11px; }
.ds-menu-layout { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 9px; }
.ds-menu-count { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; min-height: 82px; border: 1px solid #eceef1; border-radius: 6px; background: #f7f8fa; color: #818994; }
.ds-menu-count small { font-size: 9px; white-space: nowrap; }
.ds-menu-count strong { margin: 1px 0; color: #292e36; font-size: 22px; line-height: 1.2; }
.ds-menu-count span { font-size: 9px; }
.ds-menu-content { min-width: 0; }
.ds-menu-content-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; color: #4a525c; font-size: 11px; }
.ds-menu-content-head button { flex: none; padding: 5px 8px; border: 1px solid #e3be00; border-radius: 5px; background: #fff8bd; color: #39320a; font-size: 10px; }
.ds-menu-groups { display: flex; align-items: flex-start; gap: 8px; max-height: 258px; overflow: auto; overscroll-behavior-x: contain; padding-bottom: 4px; }
.ds-menu-group { flex: 0 0 228px; min-width: 0; overflow: hidden; border: 1px solid #eceef1; border-radius: 5px; background: #fff; }
.ds-menu-group h3 { display: flex; justify-content: space-between; margin: 0; padding: 8px 10px; background: #f7f8fa; color: #4a525c; font-size: 11px; }
.ds-menu-group h3 small { color: #9299a2; font-size: 10px; font-weight: 400; }
.ds-menu-row { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 6px 9px; border-top: 1px solid #f0f1f3; }
.ds-menu-result { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 1px solid #eceef1; border-radius: 4px; background: #f6f7f8; color: #969da6; font-size: 9px; text-align: center; }
.ds-menu-result img { width: 100%; height: 100%; object-fit: cover; }
.ds-menu-name { flex: 1; min-width: 0; }
.ds-menu-name > button { display: block; width: 100%; overflow: hidden; padding: 0; border: 0; background: none; color: #323841; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; }
.ds-menu-name > button:hover { color: #806700; text-decoration: underline; }
.ds-menu-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-menu-name small { margin-top: 2px; color: #9299a2; font-size: 9px; }
.ds-menu-delete { flex: 0 0 22px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: #f5f6f7; color: #8b929c; font-size: 17px; line-height: 1; }
.ds-menu-delete:hover { background: #fff0ec; color: #b33a2b; }
.ds-menu-row > a { color: #756000; font-size: 10px; text-decoration: none; }
.ds-menu-note { margin: 8px 10px; color: #997000; font-size: 10px; }
.ds-menu-clear { margin: 0 10px 10px; padding: 4px 7px; border: 0; background: transparent; color: #858d98; font-size: 10px; }
.ds-chat { display: flex; flex: 0 0 380px; flex-direction: column; min-width: 0; border-left: 1px solid #e5e7eb; background: #fff; }
.ds-chat header small { display: block; color: #8b929a; font-size: 11px; }
.ds-chat header > div:last-child { display: flex; gap: 4px; }
.ds-chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 15px; overscroll-behavior: contain; background: #fff; }
.ds-message { width: fit-content; max-width: 94%; margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #f6f7f8; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.ds-message.user { margin-left: auto; background: #fff4a8; }
.ds-message.assistant { border: 1px solid #edf0f2; background: #f7f8fa; }
.ds-quick-start { margin: -4px 0 18px; padding: 10px; border: 1px solid #e9ecef; border-radius: 9px; background: #fff; }
.ds-quick-start strong { display: block; margin-bottom: 8px; color: #3d444d; font-size: 12px; }
.ds-quick-start > div { display: grid; gap: 6px; }
.ds-quick-start button { width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: #f2f4f6; color: #3f464e; text-align: left; font-size: 12px; }
.ds-quick-start button:hover { background: #fff4a6; color: #252a30; }
.ds-attachment { display: block; width: 120px; max-height: 130px; margin-bottom: 7px; border-radius: 5px; object-fit: contain; }
.ds-inline-images { display: flex; gap: 7px; margin-top: 8px; overflow-x: auto; }
.ds-inline-images img { width: 75px; height: 75px; object-fit: cover; border-radius: 5px; }
.ds-thinking, .ds-loading { color: #838b96; font-size: 12px; }
.ds-summary, .ds-progress { margin: 10px 0 18px; padding: 13px; border: 1px solid #e8eaed; border-radius: 8px; background: #fff; }
.ds-confirm-card { margin: 12px 0 18px; padding: 13px; border: 1px solid #ead26a; border-radius: 8px; background: #fffdf0; }
.ds-confirm-card strong, .ds-confirm-card small { display: block; }
.ds-confirm-card small { margin-top: 4px; color: #7c7453; }
.ds-confirm-card div { display: flex; gap: 8px; margin-top: 11px; }
.ds-confirm-card button { flex: 1; padding: 8px 10px; border: 1px solid #e0d48b; border-radius: 6px; background: #fff; color: #4b4528; cursor: pointer; }
.ds-confirm-card button:first-child { border-color: #d9b900; background: #ffe815; color: #22262c; font-weight: 700; }
.ds-summary > strong, .ds-progress > strong { font-size: 13px; }
.ds-summary h2 { margin: 5px 0; font-size: 16px; }
.ds-summary p { margin: 6px 0 9px; color: #747c86; font-size: 12px; }
.ds-summary-types { display: flex; flex-wrap: wrap; gap: 5px; }
.ds-summary-types span { padding: 4px 7px; border-radius: 5px; background: #f4f5f7; font-size: 11px; }
.ds-reference-open { display: block; width: 100%; margin: 12px 0 6px; padding: 9px; border: 1px solid #dcdfe3; border-radius: 6px; background: #fff; text-align: left; color: #544500; }
.ds-selected-refs { display: flex; gap: 5px; overflow-x: auto; }
.ds-selected-refs img { width: 55px; height: 55px; object-fit: cover; border-radius: 4px; }
.ds-summary .ds-cost { color: #9b6200; }
.ds-confirm, .ds-send { border: 0; border-radius: 6px; background: #ffe815; color: #22262c; font-weight: 700; }
.ds-confirm { width: 100%; padding: 10px; }
.ds-progress-track { height: 5px; margin: 10px 0; border-radius: 4px; background: #e8e9ec; }
.ds-progress-track i { display: block; height: 100%; border-radius: 4px; background: #e5c300; }
.ds-result-strip { display: flex; gap: 7px; overflow-x: auto; }
.ds-compose { flex: none; padding: 12px; border-top: 1px solid #edf0f2; }
.ds-compose textarea { display: block; width: 100%; height: 76px; resize: vertical; min-height: 62px; max-height: 150px; padding: 9px 11px; border: 1px solid #e3e6e9; border-radius: 7px; outline: none; background: #f7f8fa; color: #292e36; }
.ds-compose textarea:focus { border-color: #d8b400; box-shadow: 0 0 0 2px #ffe81555; }
.ds-compose-actions { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.ds-compose-actions button { min-height: 30px; padding: 4px 7px; border: 0; border-radius: 5px; background: #f5f6f8; color: #515b66; font-size: 12px; white-space: nowrap; }
.ds-compose-actions button:first-child { width: 30px; font-size: 20px; line-height: 1; }
.ds-compose-actions span { flex: 1; text-align: right; color: #9ca3ad; font-size: 10px; white-space: nowrap; }
.ds-compose-actions .ds-send { padding: 6px 9px; background: #ffe815; color: #22262c; }
.ds-error { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 8px; border-radius: 5px; background: #fff0ec; color: #ae3c2c; font-size: 12px; }
.ds-error button, .ds-pending button { border: 0; background: none; color: inherit; }
.ds-pending { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #606874; font-size: 12px; }
.ds-pending img { width: 42px; height: 42px; object-fit: cover; border-radius: 5px; }
.ds-pending button { margin-left: auto; font-size: 20px; }
@media (max-width: 1240px) { .ds-chat { flex-basis: 340px; } .ds-drawer { right: 340px; width: min(300px, calc(100% - 340px)); } .ds-compose-actions span { display: none; } .ds-canvas { padding-right: 35px; } }

/* Full-screen AI designer workspace matching the reference canvas. */
#designer-studio-root {
  inset: 0;
  z-index: 1000;
  background: #f5f5f5;
  color: #20242b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#designer-studio-root .ds-shell { background: #f5f5f5; }
#designer-studio-root .ds-workspace { background: #f5f5f5; }
#designer-studio-root .ds-workspace-top {
  height: 72px;
  padding: 0 38px;
  border: 0;
  background: transparent;
}
#designer-studio-root .ds-brand-controls,
#designer-studio-root .ds-top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #2c3037;
}
#designer-studio-root .ds-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #9a62e8;
  font-size: 22px;
  transform: rotate(28deg) scaleX(.72);
}
#designer-studio-root .ds-brand-controls button,
#designer-studio-root .ds-top-actions button {
  border: 0;
  background: transparent;
  color: #2d3239;
}
#designer-studio-root .ds-page-add {
  padding: 0 3px;
  font-size: 19px;
}
#designer-studio-root .ds-page-number { font-size: 14px; }
#designer-studio-root .ds-page-chevron {
  padding: 0;
  color: #70767e !important;
  font-size: 15px;
}
#designer-studio-root .ds-tabs {
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #ededed;
}
#designer-studio-root .ds-tabs button {
  min-width: 0;
  padding: 9px 16px;
  border-radius: 22px;
  color: #4c5159;
  font-size: 14px;
}
#designer-studio-root .ds-tabs button.active {
  background: #fff;
  color: #20242b;
  box-shadow: 0 1px 5px #2f333a12;
}
#designer-studio-root .ds-top-actions { gap: 12px; color: #626871; }
#designer-studio-root .ds-top-actions button {
  padding: 0;
  color: #777d85;
  font-size: 18px;
}
#designer-studio-root .ds-top-actions button[aria-label="缩小"],
#designer-studio-root .ds-top-actions button[aria-label="放大"] { font-size: 20px; }
#designer-studio-root .ds-top-actions span { font-size: 14px; }
#designer-studio-root .ds-top-divider {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: #e0e0e0;
}
#designer-studio-root .ds-tools {
  left: 21px;
  top: 50%;
  gap: 2px;
  padding: 8px 5px;
  border: 1px solid #dedede;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 7px #20242a0c;
}
#designer-studio-root .ds-tools button {
  width: 30px;
  height: 37px;
  border-radius: 15px;
  background: #fff;
  color: #303843;
  font-size: 19px;
  font-weight: 400;
}
#designer-studio-root .ds-tools button:hover,
#designer-studio-root .ds-top-actions button:hover,
#designer-studio-root .ds-brand-controls button:hover { background: #f1f1f1; }
#designer-studio-root .ds-tool-separator {
  display: block;
  width: 16px;
  height: 1px;
  margin: 2px auto;
  background: #dedede;
}
#designer-studio-root .ds-tool-icon,
#designer-studio-root .ds-compose-icon {
  position: relative;
  color: #182631;
}
#designer-studio-root .ds-tool-icon::before,
#designer-studio-root .ds-tool-icon::after,
#designer-studio-root .ds-compose-icon::before,
#designer-studio-root .ds-compose-icon::after {
  pointer-events: none;
}
#designer-studio-root .ds-tool-pin::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 11px;
  height: 14px;
  border: 1.7px solid #182631;
  border-radius: 9px 9px 10px 10px;
  transform: rotate(0deg);
}
#designer-studio-root .ds-tool-pin::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 3px;
  height: 3px;
  border: 1.4px solid #182631;
  border-radius: 50%;
}
#designer-studio-root .ds-tool-text {
  color: #172630;
  font-size: 20px !important;
  font-family: Georgia, serif;
}
#designer-studio-root .ds-tool-image::before,
#designer-studio-root .ds-tool-image-add::before,
#designer-studio-root .ds-tool-sparkle::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 15px;
  height: 13px;
  border: 1.5px solid #182631;
  border-radius: 2px;
}
#designer-studio-root .ds-tool-image::after,
#designer-studio-root .ds-tool-image-add::after,
#designer-studio-root .ds-tool-sparkle::after {
  content: "⌁";
  position: absolute;
  left: 10px;
  top: 6px;
  color: #182631;
  font-size: 13px;
  line-height: 1;
  transform: rotate(-35deg);
}
#designer-studio-root .ds-tool-image-add::before { left: 9px; top: 10px; }
#designer-studio-root .ds-tool-image-add::after {
  left: 6px;
  top: 7px;
  content: "▧";
  font-size: 16px;
  transform: none;
}
#designer-studio-root .ds-tool-crop::before {
  content: "⌗";
  position: absolute;
  left: 6px;
  top: 5px;
  color: #182631;
  font-size: 23px;
  line-height: 1;
}
#designer-studio-root .ds-tool-sparkle::after {
  content: "✦";
  left: 17px;
  top: 5px;
  font-size: 8px;
  transform: none;
}
#designer-studio-root .ds-tool-video::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 15px;
  height: 12px;
  border: 1.5px solid #182631;
  border-radius: 3px;
}
#designer-studio-root .ds-tool-video::after {
  content: "▶";
  position: absolute;
  left: 12px;
  top: 11px;
  color: #182631;
  font-size: 8px;
}
#designer-studio-root .ds-canvas {
  padding: 20px 68px 32px;
  background: #f5f5f5;
}
#designer-studio-root .ds-empty-canvas { max-width: 420px; color: #8d929a; }
#designer-studio-root .ds-empty-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e5d9ff, #bfe8fb);
  color: transparent;
  box-shadow: 0 7px 12px #4d668c1c;
}
#designer-studio-root .ds-empty-canvas strong,
#designer-studio-root .ds-empty-canvas p,
#designer-studio-root .ds-empty-canvas button { display: none; }
#designer-studio-root .ds-empty-canvas::after {
  content: "可以把图片拖入这里或点击 上传图片  资产库 进行修改\A也可以直接在右侧向 AI 设计师描述你的需求";
  white-space: pre-line;
  color: #7f8793;
  font-size: 14px;
  line-height: 1.9;
}
#designer-studio-root .ds-chat {
  flex: 0 0 400px;
  margin: 18px 16px 18px 0;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 25px;
  background: #fff;
  box-shadow: none;
}
#designer-studio-root .ds-chat header {
  height: 64px;
  padding: 0 17px;
  border-bottom: 0;
}
#designer-studio-root .ds-chat header strong {
  color: #1d5f9e;
  font-size: 14px;
  font-weight: 500;
}
#designer-studio-root .ds-chat header > div:last-child { gap: 8px; }
#designer-studio-root .ds-chat-tools button {
  width: auto;
  height: 30px;
  padding: 0 3px;
  border-radius: 15px;
  color: #252a31;
  font-size: 16px;
}
#designer-studio-root .ds-chat-tools .ds-only-me {
  padding: 0 5px;
  color: #7b5b98;
  font-size: 12px;
}
#designer-studio-root .ds-chat-messages {
  padding: 0 16px 16px;
  background: #fff;
}
#designer-studio-root .ds-message {
  border-radius: 13px;
  font-size: 14px;
}
#designer-studio-root .ds-message.user { background: #f4f5f6; }
#designer-studio-root .ds-message.assistant { background: #fff; }
#designer-studio-root .ds-quick-start {
  margin: 8px 0 18px;
  padding: 0 10px 10px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
}
#designer-studio-root .ds-quick-start strong {
  padding-top: 12px;
  font-size: 14px;
}
#designer-studio-root .ds-quick-start button {
  padding: 12px 12px;
  border-radius: 9px;
  background: #f2f2f2;
  font-size: 14px;
}
#designer-studio-root .ds-compose {
  padding: 14px 16px 18px;
  border-top: 0;
}
#designer-studio-root .ds-compose textarea {
  height: 154px;
  min-height: 154px;
  max-height: 154px;
  padding: 17px 14px 50px;
  border: 1px solid #dedede;
  border-radius: 18px;
  background: #fff;
  font-size: 14px;
}
#designer-studio-root .ds-compose textarea::placeholder { color: #a4a9b0; }
#designer-studio-root .ds-compose-actions {
  position: relative;
  gap: 8px;
  margin-top: -44px;
  padding: 0 10px 0 8px;
}
#designer-studio-root .ds-compose-actions button {
  width: 35px;
  height: 35px;
  min-height: 35px;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
  color: #313840;
  font-size: 17px;
}
#designer-studio-root .ds-compose-actions button:nth-child(2),
#designer-studio-root .ds-compose-actions button:nth-child(3) { font-size: 15px; }
#designer-studio-root .ds-compose-actions .ds-compose-icon {
  flex: 0 0 35px;
  font-size: 16px;
}
#designer-studio-root .ds-compose-actions .ds-icon-plus { font-size: 22px; }
#designer-studio-root .ds-compose-actions .ds-icon-cube::before {
  content: "◇";
  font-size: 21px;
}
#designer-studio-root .ds-compose-actions .ds-icon-image-add::before {
  content: "▣";
  font-size: 17px;
}
#designer-studio-root .ds-compose-actions .ds-icon-store::before {
  content: "▤";
  font-size: 18px;
}
#designer-studio-root .ds-compose-actions .ds-icon-globe::before {
  content: "◎";
  font-size: 20px;
}
#designer-studio-root .ds-compose-actions .ds-icon-more::before {
  content: "•••";
  color: #313840;
  font-size: 12px;
  letter-spacing: 1px;
}
#designer-studio-root .ds-compose-actions .ds-icon-more {
  color: transparent;
  font-size: 12px;
  letter-spacing: 1px;
}
#designer-studio-root .ds-compose-actions span { display: none; }
#designer-studio-root .ds-compose-actions .ds-send {
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 0;
  background: #b9b9b9;
  color: #fff;
  font-size: 22px;
}
#designer-studio-root .ds-compose-actions .ds-send:not(:disabled) {
  background: #9d9d9d;
}
#designer-studio-root .ds-drawer {
  top: 84px;
  right: 416px;
  bottom: 18px;
  border-radius: 16px;
}
#designer-studio-root .ds-message-images {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
#designer-studio-root .ds-message-images .ds-attachment { margin: 0; }
#designer-studio-root .ds-pending {
  align-items: center;
  padding: 6px 0;
}
#designer-studio-root .ds-pending-images {
  display: flex;
  gap: 5px;
  max-width: 210px;
  overflow-x: auto;
}
#designer-studio-root .ds-pending-images img {
  flex: 0 0 42px;
}
#designer-studio-root .ds-task-result {
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
}
#designer-studio-root .ds-task-result > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  height: auto;
  padding: 0 0 10px;
  border-bottom: 1px solid #eef0f2;
}
#designer-studio-root .ds-task-result > header strong,
#designer-studio-root .ds-task-result > header small { display: block; }
#designer-studio-root .ds-task-result > header strong { color: #1760a0; font-size: 14px; }
#designer-studio-root .ds-task-result > header small { margin-top: 2px; color: #8b929a; font-size: 11px; }
#designer-studio-root .ds-task-result > header > span { color: #737b84; font-size: 11px; }
#designer-studio-root .ds-task-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding-top: 10px;
}
#designer-studio-root .ds-task-result-grid article {
  min-width: 0;
  padding: 6px;
  border: 1px solid #edf0f2;
  border-radius: 9px;
}
#designer-studio-root .ds-task-result-image {
  display: grid;
  place-items: center;
  height: 105px;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f5f6;
  color: #9aa1a9;
  font-size: 11px;
}
#designer-studio-root .ds-task-result-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#designer-studio-root .ds-task-result-grid article > strong {
  display: block;
  overflow: hidden;
  margin: 6px 1px;
  color: #3c434b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
#designer-studio-root .ds-task-result-grid article > div:last-child {
  display: flex;
  gap: 4px;
}
#designer-studio-root .ds-task-result-grid article button {
  flex: 1;
  padding: 5px 3px;
  border: 1px solid #e1e4e7;
  border-radius: 5px;
  background: #fff;
  color: #4a535d;
  font-size: 10px;
}
#designer-studio-root .ds-task-result-grid article button:first-child {
  border-color: #f0d35a;
  background: #fff9d7;
  color: #735d00;
}
@media (max-width: 1240px) {
  #designer-studio-root .ds-chat { flex-basis: 360px; }
  #designer-studio-root .ds-drawer { right: 376px; width: min(300px, calc(100% - 376px)); }
}
