html[data-theme="light"] body.subpage-scroll-lock #subpage.creation-plan-mode { width: min(100%, 1080px); }
.creation-studio-active .image-preview-backdrop { z-index: 3090; }
.creation-studio-active .image-preview-sheet { z-index: 3100; }
.creation-studio-active .toast, .cs-board-open .toast { z-index: 3300; }
.cs-studio { width: 100%; max-width: 1080px; margin: 0 auto; padding: 12px 20px 32px; box-sizing: border-box; color: #182333; }
.cs-studio *, .cs-board * { box-sizing: border-box; letter-spacing: 0; }
.cs-studio button, .cs-board button { cursor: pointer; font: inherit; touch-action: manipulation; }
.cs-studio button:disabled, .cs-board button:disabled { opacity: .42; cursor: default; }
.cs-studio button:focus-visible, .cs-studio select:focus-visible, .cs-studio textarea:focus-visible, .cs-board :focus-visible { outline: 2px solid #7663e9; outline-offset: 2px; }
.cs-project-bar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-bottom: 12px; }
.cs-project-bar button { min-width: 40px; min-height: 40px; border: 0; color: #657287; background: transparent; font-size: 12px; }
.cs-studio .app-icon, .cs-board .app-icon { width: 19px; height: 19px; flex-shrink: 0; }
.cs-workspace { display: grid; gap: 20px; }
.cs-intro { padding: 38px 0 20px; }
.cs-intro > span { font-size: 12px; color: #7160d7; }
.cs-intro h3 { font-size: 25px; margin: 10px 0 0; line-height: 1.4; }
.cs-compose-panel { min-width: 0; }
.cs-studio .cs-compose { display: block; min-height: 0; padding: 0; border: 1px solid #dce2eb; border-radius: 8px; background: #fff; box-shadow: 0 7px 24px rgb(24 35 51 / 4%); overflow: hidden; }
.cs-studio .cs-compose textarea { display: block; width: 100%; min-height: 130px; max-height: 280px; margin: 0; padding: 18px 16px; border: 0; border-radius: 0; box-shadow: none; resize: vertical; color: #182333; background: #fff; font: inherit; font-size: 15px; line-height: 1.7; }
.cs-compose textarea::placeholder { color: #9ca5b3; }
.cs-studio .cs-compose textarea[hidden], .cs-board-compose textarea[hidden] { display: none; }
.cs-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px; }
.cs-input-tools { display: flex; gap: 4px; }
.cs-editing-version { color: #8792a3; font-size: 12px; padding-left: 5px; }
.cs-input-tools button, .cs-reference > button { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; color: #66748b; background: #f3f6fa; }
.cs-generate { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 10px 13px; border: 0; border-radius: 6px; color: #fff; background: #6550e8; font-size: 13px !important; white-space: nowrap; }
.cs-reference { display: flex; align-items: center; gap: 10px; padding: 0 12px 8px; color: #748096; font-size: 12px; }
.cs-reference > button:first-child { width: 58px; height: 58px; border: 1px solid #e1e6ed; background: #fff; overflow: hidden; }
.cs-reference img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cs-reference > button:last-child { margin-left: auto; background: none; }
.cs-suggestions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.cs-suggestions button { min-height: 34px; max-width: 100%; padding: 6px 9px; border: 1px solid #e2e6ef; border-radius: 6px; color: #67758c; background: #fff; font-size: 12px; overflow-wrap: anywhere; }
.cs-settings { border-bottom: 1px solid #e5e9f0; padding: 14px 0; color: #7b8698; font-size: 12px; }
.cs-settings summary, .cs-history summary, .cs-result-more summary { min-height: 36px; line-height: 36px; cursor: pointer; }
.cs-result-more { border-top: 1px solid #e5e9f0; color: #7d8798; font-size: 12px; }
.cs-settings > div { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 8px; }
.cs-settings label { display: grid; gap: 8px; min-width: 0; }
.cs-studio select, .cs-board select { min-width: 0; max-width: 100%; min-height: 40px; padding: 8px; border: 1px solid #e1e6ed; border-radius: 6px; color: #48596e; background: #fff; font: inherit; }
.cs-studio .cs-variation, .cs-studio .cs-tasks { display: inline-flex; gap: 6px; align-items: center; min-height: 42px; padding: 8px 0; border: 0; color: #7664d8; background: transparent; font-size: 12px; }
.cs-status { color: #7a8596; font-size: 12px; line-height: 1.6; }
.cs-error { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; color: #b34e4e; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.cs-error button { min-height: 36px; padding: 5px 9px; border: 1px solid #e2d4d4; border-radius: 6px; color: inherit; background: #fff; }
.cs-image { min-width: 0; overflow: hidden; border-radius: 8px; background: #eaf0f3; }
.cs-image > img { display: block; width: 100%; max-height: 70dvh; object-fit: contain; cursor: zoom-in; }
.cs-image-wait { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; min-height: 280px; color: #8b96a5; font-size: 13px; }
.cs-result-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 0 0; }
.cs-result-tools button { display: inline-flex; gap: 5px; align-items: center; min-height: 40px; border: 0; padding: 5px 0; color: #65738a; background: transparent; font-size: 12px; }
.cs-image-hint { margin: 4px 0 12px; color: #8c96a7; font-size: 11px; }
.cs-history { border-top: 1px solid #e5e9f0; color: #7d8798; font-size: 12px; }
.cs-history > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 0; }
.cs-history button { min-width: 0; padding: 5px; border: 1px solid #e2e6ed; border-radius: 6px; color: #67758c; background: #fff; font-size: 11px; }
.cs-history button[aria-pressed=true] { border-color: #9b8ce9; background: #f6f3ff; }
.cs-history img { display: block; width: 100%; height: 58px; object-fit: contain; margin-bottom: 5px; }
.cs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cs-compare figure { margin: 0; min-width: 0; }
.cs-compare img { width: 100%; height: 340px; object-fit: contain; cursor: zoom-in; }
.cs-compare figcaption { padding: 8px; text-align: center; color: #7c8798; font-size: 11px; }
.cs-compare-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.cs-compare-tools button { min-height: 36px; padding: 6px 9px; border: 1px solid #e2e6ed; border-radius: 6px; color: #67758c; background: #fff; font-size: 12px; }
.cs-compare-tools button[aria-pressed=true] { color: #6f59de; background: #f4f1ff; border-color: #c7bff1; }
.cs-compare-tools select { flex: 1; font-size: 12px; }
.cs-loading { padding: 30px; font-size: 14px; color: #7f899a; }
.cs-board-open { overflow: hidden; }
.cs-board { position: fixed; z-index: 3100; inset: 0; display: flex; flex-direction: column; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); background: #edf1f5; color: #1c293b; overscroll-behavior: contain; }
.cs-board header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #e2e7ee; background: #fff; flex-shrink: 0; }
.cs-board header h3 { flex: 1; margin: 0; font-size: 17px; }
.cs-board button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid transparent; border-radius: 6px; color: #627187; background: transparent; }
.cs-board .cs-board-done { width: auto; padding: 0 15px; color: #fff; background: #6550e8; font-size: 13px; }
.cs-board-toolbar, .cs-board-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 16px; background: #fff; }
.cs-brush-tools, .cs-colors, .cs-sizes { display: flex; align-items: center; gap: 2px; }
.cs-board [aria-pressed=true] { border-color: #b2a4ef; background-color: #f3efff; color: #6c52d7; }
.cs-board-ratio { display: inline-flex; align-items: center; gap: 8px; color: #7e8999; font-size: 12px; }
.cs-board-ratio select { min-height: 36px; }
.cs-colors button { width: 44px; height: 44px; padding: 0; }
.cs-colors button::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--cs-color); }
.cs-sizes button { width: 44px; height: 44px; padding: 0; }
.cs-sizes i { display: block; border-radius: 50%; background: #48576c; }
.cs-paper-space { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; min-width: 0; padding: 16px; overflow: hidden; }
.cs-paper-space canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 3px 16px rgb(20 38 54 / 7%); }
.cs-board-message { min-height: 24px; margin: 0; padding: 4px 16px; color: #ad4f4f; font-size: 12px; }
.cs-board-message:empty { min-height: 0; padding-block: 0; }
.cs-board-compose { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 12px 16px; border-top: 1px solid #e2e7ee; background: #fff; }
.cs-board-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 90px; padding: 10px; border: 1px solid #dce2eb; border-radius: 6px; color: #182333; background: #fff; font: inherit; font-size: 14px; line-height: 1.5; resize: none; }
.cs-board .cs-board-generate { gap: 5px; width: auto; min-height: 44px; height: auto; padding: 10px 12px; color: #fff; background: #6550e8; font-size: 13px; white-space: nowrap; }
.cs-board-compose.is-sketch-only .cs-board-generate { width: 100%; }
@media (min-width: 850px) { .cs-studio.has-result .cs-workspace { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .cs-studio:not(.has-result) { max-width: 720px; } }
@media (max-width: 600px) { .cs-studio { padding-inline: 18px; } .cs-intro { padding-top: 24px; } .cs-settings > div { grid-template-columns: 1fr; } .cs-compare { grid-template-columns: 1fr; } .cs-compare figure:not(.is-visible) { display: none; } .cs-compare img { height: auto; max-height: 65dvh; } .cs-board-toolbar, .cs-board-controls { padding-inline: 12px; } .cs-board-controls { gap: 4px; } .cs-paper-space { padding: 12px; } }
