.page-shell .canvas-heading>.preview-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;max-width:100%;overflow-x:auto;padding:2px 0 4px;scrollbar-width:thin}.page-shell .preview-toolbar>.canvas-controls{display:flex;flex:none;flex-wrap:nowrap;gap:8px;margin:0}.page-shell .preview-toolbar>.result-actions{display:flex;align-items:center;flex:none;flex-wrap:nowrap;gap:7px;margin:0}.page-shell .preview-toolbar .result-actions>button{white-space:nowrap;flex:none;height:38px;min-height:38px;margin:0;padding:8px 11px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.3}.color-merge-section .merge-value-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.merge-value-row small{font-size:10px;color:#8193a5}.merge-value-row input{width:62px;min-width:0;padding:5px 6px;text-align:center;font-size:12px;border:1px solid #dfe7ef;border-radius:7px}.result-actions #replace-noise.selected,.editor-quick-actions #editor-replace-noise.selected{background:#fff0e7;border-color:#eac5ab;color:#a45e2e}.replace-source{display:flex;align-items:center;gap:12px;padding:15px;background:#f5f8fc;border-radius:12px}.replace-source>i{height:42px;width:42px;flex:none;border-radius:9px;border:1px solid #00000012}.replace-source span{display:block;font-size:12px;margin-top:5px;color:#71869b}.replace-filter{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:10px;margin:20px 0 12px}.replace-filter input,.replace-filter select{min-width:0}.replace-instruction{font-size:12px;color:#7a8b9e}.replace-targets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:340px;overflow:auto;padding:3px;margin:14px 0}.replace-targets button{display:flex;align-items:center;flex-direction:column;gap:6px;min-height:90px;padding:12px 6px;background:#fff;border:1px solid #dfe7f1;border-radius:9px;cursor:pointer}.replace-targets button:hover{border-color:#9174d6;background:#faf7ff}.replace-targets button:disabled{opacity:.45;cursor:default}.replace-targets i{width:30px;height:30px;border-radius:7px;border:1px solid #00000015}.replace-targets strong{font-size:12px;color:#3f5369}.replace-targets span{font-size:10px;color:#8292a4}.editor-quick-actions #merge-colors{min-height:36px;font-size:12px}.editor-quick-actions .editor-reference-options{margin-left:auto}.drawing-hero{padding:34px 38px;margin-bottom:24px;border:1px solid #e0daf5;border-radius:22px;background:linear-gradient(120deg,#f1ebff,#f4faf7)}.drawing-hero h1{font-size:36px;color:#264a42;margin:12px 0}.drawing-hero p{font-size:15px;color:#7c8fa0}.drawing-steps{display:flex;align-items:center;gap:14px;margin-top:25px;color:#8872bb;font-size:13px}.drawing-steps span{padding:9px 14px;background:#ffffffc4;border:1px solid #e6dff5;border-radius:9px}.drawing-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:24px;align-items:start}.drawing-create-card,.drawing-intro>section{background:white;border:1px solid #e0e7ee;border-radius:18px;padding:28px}.drawing-card-heading{display:flex;gap:14px;align-items:center;margin-bottom:24px}.drawing-card-heading>span{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:#edf6f1;color:#218468}.drawing-card-heading h2{margin:0 0 6px;font-size:22px;color:#2e4d56}.drawing-card-heading p{margin:0;font-size:12px;color:#8798a6}.drawing-start-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#f3f5fa;border-radius:11px}.drawing-start-tabs button{padding:12px 8px;min-height:44px;border:0;border-radius:8px;background:transparent;font:inherit;color:#8b96a8;cursor:pointer}.drawing-start-tabs button.selected{background:#fff;box-shadow:0 2px 8px #22334a09;color:#187f66;font-weight:600}.drawing-create-card h3{margin:26px 0 12px;font-size:14px;color:#4b6076}.drawing-size-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.drawing-size-options button{display:grid;gap:7px;padding:16px 8px;min-height:78px;border:1px solid #e0e6ef;background:#fff;border-radius:11px;cursor:pointer;color:#62758b}.drawing-size-options strong{font-size:17px}.drawing-size-options span{font-size:11px;color:#8999aa}.drawing-size-options button.selected{border-color:#8bc6b3;background:#f0faf5;color:#177f63}.drawing-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px;margin:24px 0}.drawing-fields label{display:grid;gap:9px;font-size:12px;color:#728699}.drawing-fields input,.drawing-fields select{width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #dce5ed;border-radius:9px;background:#fff;font-family:inherit;font-size:14px;color:#3d5b67}.drawing-dimensions{padding:14px;border:1px solid #e2eee7;background:#f5faf7;border-radius:10px;font-size:12px;line-height:1.7;color:#6c8f7d;margin-bottom:18px}.drawing-create-card #drawing-create{min-height:52px;font-size:16px;justify-content:space-between;padding-inline:22px}.drawing-create-card #drawing-status{font-size:12px;color:#9a754b;line-height:1.8;margin-top:12px}.drawing-intro{display:grid;gap:20px}.drawing-intro h2{font-size:19px;margin:0 0 12px;color:#3b5b62}.drawing-intro p,.drawing-intro li{font-size:13px;line-height:1.9;color:#8296a1}.drawing-intro ul{padding-left:20px;margin-top:22px}.drawing-demo{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;padding:25px;max-width:230px;margin:24px auto;background:#f8fafc;border-radius:16px}.drawing-demo i{aspect-ratio:1;border-radius:50%;background:#e9edf3}.drawing-demo i.painted{background:#d78d97;box-shadow:inset 0 0 0 4px #ffffff66}.drawing-side-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.drawing-side-actions .button{font-size:12px;min-height:40px;text-decoration:none}.drawing-reference{margin-top:18px;border:1px dashed #cbdace;border-radius:12px;padding:18px;text-align:center;background:#f9fcfa}.drawing-reference label{display:grid;gap:8px;cursor:pointer;color:#228569;font-size:14px}.drawing-reference small,.drawing-reference p{font-size:11px;color:#889ca2}.drawing-reference img{max-width:100%;height:130px;object-fit:contain;margin:12px 0}.drawing-nav .icon{flex:none}
@media(max-width:1000px){.drawing-layout{grid-template-columns:1fr}.drawing-intro{grid-template-columns:1fr 1fr}.drawing-intro>section{padding:22px}}
@media(max-width:760px){.sidebar-main-nav .drawing-nav{display:none!important}.drawing-hero{padding:24px 20px}.drawing-hero h1{font-size:28px}.drawing-hero p{font-size:13px;line-height:1.8}.drawing-steps{gap:8px;font-size:10px}.drawing-steps span{padding:8px}.drawing-create-card{padding:22px 18px}.drawing-intro{grid-template-columns:1fr}.drawing-fields{gap:16px 12px}.drawing-fields input,.drawing-fields select{font-size:16px}.drawing-size-options{gap:7px}.drawing-size-options strong{font-size:14px}.drawing-card-heading h2{font-size:20px}.page-shell .canvas-heading>.preview-toolbar{flex-wrap:wrap;gap:10px;overflow:visible}.page-shell .preview-toolbar>.canvas-controls{width:100%;justify-content:space-between}.page-shell .preview-toolbar>.result-actions{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.page-shell .preview-toolbar .result-actions>button{min-width:0;width:100%;min-height:42px;height:auto;font-size:11px;white-space:normal;padding:8px 4px;justify-content:center}.replace-targets{grid-template-columns:repeat(3,minmax(0,1fr))}.replace-filter{grid-template-columns:minmax(0,1fr) 100px}.editor-quick-actions #editor-replace-noise,.editor-quick-actions #editor-highlight,.editor-quick-actions #merge-colors{min-height:36px;font-size:11px;flex:none}}
.page-shell .settings-panel #source-preview:not([hidden]){display:grid!important;grid-template-columns:76px minmax(0,1fr);gap:14px 12px;padding:17px;margin:0 0 22px;border:1px solid #dfe8e8;border-radius:13px;background:linear-gradient(135deg,#f8fcfa,#fff);box-shadow:0 3px 12px #29496905;align-items:center}.page-shell #source-preview #source-img{width:76px;height:76px;object-fit:contain;margin:0;border:1px solid #e1e8e9;border-radius:10px;background:#fff}.source-card-details{min-width:0}.page-shell #source-preview .source-card-label{font-size:10px;letter-spacing:1px;color:#90a59a}.page-shell #source-preview #source-name{display:block;font-size:12px;color:#48665b;line-height:1.6;margin:6px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-shell #source-preview #source-dimensions{display:block;font-size:10px;color:#96a6ae}.page-shell #source-preview .source-card-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:9px}.page-shell #source-preview .source-card-actions .button{margin:0;min-height:36px;height:auto;font-size:11px;padding:8px 5px;text-align:center;justify-content:center}.source-ai-chibi{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:10px 13px;border:1px solid #dbd1fb;border-radius:9px;background:#f0eaff;color:#7458c6;font-family:inherit;font-weight:600;font-size:12px;cursor:pointer}.source-ai-chibi:hover{background:#e8deff;border-color:#b8a1e7}.source-ai-hint{grid-column:1/-1;margin:0;font-size:10px;line-height:1.7;color:#91a298}
/* Keep document actions distinct from help, with one download entry below. */
#bead-editor .editor-actionbar{display:flex;align-items:center;gap:9px;flex:none;min-width:0}
#bead-editor .editor-actionbar>#editor-save-top,#bead-editor .editor-actionbar>#editor-cancel,#bead-editor .editor-actionbar>.workspace-help-link,#bead-editor .editor-actionbar>#editor-how{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:40px;height:40px;padding:9px 16px;border-radius:9px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap;cursor:pointer}
#bead-editor .editor-actionbar>#editor-save-top{min-width:100px;background:#147d63;color:#fff;border:1px solid #147d63;box-shadow:0 3px 9px #147d631a}
#bead-editor .editor-actionbar>#editor-save-top:hover{background:#106950;border-color:#106950}
#bead-editor .editor-actionbar>#editor-cancel{min-width:92px;border:1px solid #eadbd5;background:#fffaf8;color:#947267}
#bead-editor .editor-actionbar>#editor-cancel:hover{border-color:#dcb9ab;background:#fff3ed;color:#9f6653}
#bead-editor .editor-actionbar>.workspace-help-link{position:relative;margin-left:17px;border:1px solid #e3dff0;background:#faf8ff;color:#7b65ad!important;box-shadow:none}
#bead-editor .editor-actionbar>.workspace-help-link:before{content:"";position:absolute;left:-15px;top:8px;height:22px;border-left:1px solid #e5eaf0}
#bead-editor .editor-actionbar>#editor-how{border:1px solid #e2e8ee;background:#f8fafc;color:#738698}
#bead-editor .editor-actionbar>#editor-how:hover{background:#eef3f7;color:#45647b}
@media(min-width:761px){
 .sidebar{--rail-row-pitch:clamp(26px,calc((100dvh - 172px)/13),72px);padding-top:18px!important;padding-bottom:12px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin}
 .sidebar>.brand{min-height:45px;flex:none;margin-bottom:24px!important}
 .sidebar>.sidebar-main-nav,.sidebar>.craft-shortcuts,.sidebar>.sidebar-service-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:0!important;flex:none}
 .sidebar>.sidebar-main-nav{margin-top:0!important}
 .sidebar>.sidebar-service-nav{margin-top:8px!important}
 .sidebar nav>.nav-item,.sidebar .craft-shortcuts>.nav-item{height:calc(var(--rail-row-pitch) - 4px)!important;min-height:0!important;margin:2px 0!important;padding-top:0!important;padding-bottom:0!important;flex-shrink:0}
 .sidebar .studio-convert-nav{padding-right:9px!important}
 .sidebar>.account{min-height:54px!important;max-height:54px;margin-top:auto!important}
}
@media(max-width:760px){
 #bead-editor .editor-actionbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 #bead-editor .editor-actionbar>#editor-save-top,#bead-editor .editor-actionbar>#editor-cancel,#bead-editor .editor-actionbar>.workspace-help-link,#bead-editor .editor-actionbar>#editor-how{min-width:0;width:100%;min-height:42px;height:auto;padding:8px 3px;margin:0;font-size:11px;white-space:normal;line-height:1.4}
 #bead-editor .editor-actionbar>.workspace-help-link:before{display:none}
}
