.bot-head-editor-page #bot-head-editor { width:100%; max-width:1600px; margin:0 auto; padding:0 24px 40px; }
html.editor-embedded #nav-placeholder,html.editor-embedded .head-editor-hero > div:first-child,html.editor-embedded .head-editor-toolbar > a,html.editor-embedded .editor-apply-primary { display:none !important; }
html.editor-embedded .head-editor-hero { display:flex; padding:8px 0; }
html.editor-embedded .head-editor-toolbar { margin:0; }
html.editor-embedded .editor-action-dock { position:static; padding:0; border:0; background:transparent; }
html.editor-embedded #bot-head-editor { padding-bottom:24px !important; }
.bot-head-editor-page .head-editor-hero { background:transparent; border:0; box-shadow:none; border-radius:0; min-height:0; padding:20px 0; gap:16px; flex-wrap:wrap; }
.bot-head-editor-page .head-editor-hero h1 { margin:0; font-size:36px; }
.bot-head-editor-page .head-editor-kicker { display:none; }
.bot-head-editor-page .head-editor-toolbar { flex:1; gap:8px; }
.editor-action-dock { display:flex; gap:8px; align-items:center; }
.bot-head-editor-page .editor-action-dock .editor-apply-primary { margin:0; min-height:48px; width:auto; flex:1; font-size:15px; background:#171717; color:#fff; box-shadow:none; border:2px solid #171717; }
.editor-more { position:relative; }
.editor-more summary,.editor-saved-presets > summary { cursor:pointer; padding:12px; min-height:44px; font-weight:700; }
.editor-more-items { position:absolute; top:100%; right:0; width:210px; padding:8px; background:#fff; border:1px solid #171717; z-index:30; display:grid; gap:8px; }
.editor-more-items { max-width:calc(100vw - 32px); }
.editor-more-items .editor-button { white-space:normal; text-align:left; line-height:1.4; min-height:44px; }
@media(max-width:950px) {
    .editor-more-items { left:0; right:auto; }
}
.editor-saved-presets { border-top:1px solid #b9b4bb; margin-bottom:16px; }
.bot-head-editor-page .buddy-editor-presets { background:transparent; border:0; box-shadow:none; }
.bot-head-editor-page .head-editor-workspace { display:grid; grid-template-columns:180px minmax(240px,1fr) minmax(300px,380px); grid-template-areas:'layers canvas inspector'; align-items:start; border:0; box-shadow:none; background:transparent; overflow:visible; gap:20px; }
.bot-head-editor-page .head-editor-panel,.bot-head-editor-page .head-canvas-panel { background:transparent; border:0; padding:0; }
.bot-head-editor-page .head-canvas-panel { position:sticky; top:12px; }
.bot-head-editor-page .head-canvas-shell { max-height:65vh; width:auto; max-width:100%; border:0; box-shadow:none; background-image:none; background-color:#e8e1f5; }
.bot-head-editor-page .canvas-heading-row { min-height:0; margin-bottom:8px; }
.bot-head-editor-page .canvas-heading-row > div:first-child,.bot-head-editor-page .editor-panel-heading { display:none; }
.bot-head-editor-page .canvas-preview-actions { width:100%; justify-content:space-between; }
.bot-head-editor-page .canvas-display-toggle { min-height:44px; }
.bot-head-editor-page .head-layer-button { min-height:60px; border:1px solid transparent; border-radius:4px; background:transparent; box-shadow:none; padding:8px; }
.bot-head-editor-page .head-layer-button.is-selected { border-color:#171717; background:#fff; }
.bot-head-editor-page .head-layer-copy strong { white-space:normal; overflow-wrap:anywhere; font-size:13px; }
.bot-head-editor-page .head-editor-toolbar .editor-button { box-shadow:none; background:transparent; border:0; border-bottom:1px solid #171717; border-radius:0; }
.bot-head-editor-page .layer-lock { display:none; }
.bot-head-editor-page .selected-part-summary { background:transparent; border:0; padding:0 0 12px; }
.editor-mode-tabs { display:flex; border-bottom:1px solid #171717; margin-bottom:16px; }
.editor-mode-tabs button { flex:1; min-height:48px; border:0; border-radius:0; background:transparent; color:#171717; font-weight:700; }
.editor-mode-tabs button[aria-selected=true] { box-shadow:inset 0 -4px #171717; background:#f85ca9; }
.editor-mode-panel[hidden] { display:none !important; }
.bot-head-editor-page .inspector-section { border-radius:0; background:transparent; box-shadow:none; }
.bot-head-editor-page .editor-icon-button,.bot-head-editor-page .part-cycle-button,.bot-head-editor-page .position-controls button { min-width:44px; min-height:44px; }
.bot-head-editor-page .part-cycle-row { grid-template-columns:44px minmax(0,1fr) 44px; }
.bot-head-editor-page .part-color-preset { width:36px; height:36px; }
.bot-head-editor-page input[type=range] { min-height:36px; touch-action:pan-y; }
.bot-head-editor-page .part-library-dialog { max-height:85dvh; max-width:calc(100vw - 24px); }
@media(max-width:950px) {
    .bot-head-editor-page #bot-head-editor { padding:0 16px 100px !important; }
    .bot-head-editor-page .head-editor-hero { display:block; padding:12px 0; }
    .bot-head-editor-page .head-editor-hero h1 { font-size:28px; }
    .bot-head-editor-page .head-editor-toolbar { width:auto; flex-wrap:wrap; justify-content:flex-start; margin-top:8px; }
    .bot-head-editor-page .head-editor-toolbar a { padding:10px; font-size:13px; flex:none; }
    .editor-action-dock { position:fixed; left:0; right:0; bottom:0; z-index:40; padding:8px 16px calc(8px + env(safe-area-inset-bottom)); background:#f4f1e8; border-top:1px solid #171717; }
    .bot-head-editor-page .head-editor-workspace { display:flex; flex-direction:column; gap:12px; }
    .bot-head-editor-page .head-canvas-panel { width:100%; top:0; z-index:10; background:#f4f1e8; padding:0 0 8px; }
    .bot-head-editor-page .head-canvas-shell { height:min(27svh,230px); width:auto; max-height:none; }
    .bot-head-editor-page .canvas-preview-actions { flex-wrap:nowrap; gap:8px; }
    .bot-head-editor-page .draft-status { font-size:12px; }
    .bot-head-editor-page .layer-panel,.bot-head-editor-page .inspector-panel { width:100%; }
    .bot-head-editor-page .head-layer-list { display:flex; flex-direction:row; overflow-x:auto; gap:6px; padding:4px 0 10px; overscroll-behavior-x:contain; }
    .bot-head-editor-page .head-layer-button { flex:0 0 100px; display:flex; flex-direction:column; justify-content:center; gap:4px; min-height:82px; }
    .bot-head-editor-page .head-layer-copy strong { font-size:12px; white-space:normal; text-align:center; }
    .bot-head-editor-page .head-layer-copy span { display:none; }
    .bot-head-editor-page .selected-part-summary { min-height:48px; }
    .bot-head-editor-page .selected-part-summary img { width:44px; height:44px; }
    .editor-saved-presets { margin-bottom:8px; }
    .bot-head-editor-page .copy-colors-row { grid-template-columns:minmax(0,1fr) auto; }
    html.editor-embedded .head-editor-hero { display:flex; flex-direction:row; align-items:center; flex-wrap:nowrap; }
    html.editor-embedded .head-editor-toolbar { flex:1; width:auto; }
    html.editor-embedded .head-canvas-shell { height:min(36svh,240px); }
}
