/* Editor v2: tools without stacked rows; phone modes remain within thumb reach. */
.editor-v2 .editor-files-menu { position:relative; z-index:55; }
.editor-v2 .editor-files-menu>div { width:320px; max-width:calc(100vw - 36px); max-height:min(76dvh,680px); overflow-y:auto; overscroll-behavior:contain; }
.editor-v2 .editor-files-menu .editor-menu-title { margin:10px 12px 8px; color:var(--muted); font-size:11px; }
.editor-v2 .editor-files-menu .editor-example-bar, .editor-v2 .editor-files-menu .editor-readiness { position:static; display:block; margin:8px 0; padding:0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; }
.editor-v2 .editor-files-menu .editor-example-bar>summary, .editor-v2 .editor-files-menu .editor-readiness>summary { display:block; max-width:none; min-height:48px; padding:13px 12px; font-size:13px; line-height:1.5; white-space:normal; overflow:visible; cursor:pointer; }
.editor-v2 .editor-files-menu .editor-example-content, .editor-v2 .editor-files-menu #readinessList { position:static; display:block; width:100%; max-width:none; padding:0 12px 12px; box-shadow:none; border:0; background:transparent; }
.editor-v2 .editor-files-menu .editor-example-content p { font-size:12px; }
.editor-v2 .editor-files-menu .editor-example-content nav { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; }
.editor-v2 .editor-files-menu .editor-example-content a { border:1px solid var(--line); border-radius:4px; font-size:12px; }
.editor-v2 .editor-files-menu>div>button, .editor-v2 .editor-files-menu>div>a { min-height:46px; font-size:13px; }
.editor-v2 .editor-files-menu .editor-open-site { color:var(--forest); font-weight:700; }
.mobile-section-tools { display:none; }
@media(max-width:1100px) {
 .canvas-editor.editor-v2 { height:auto; overflow:visible; padding-bottom:calc(82px + env(safe-area-inset-bottom)); }
 .canvas-editor.editor-v2 .editor-wrap { height:auto; min-height:calc(100dvh - 82px); }
 .canvas-editor.editor-v2 .ik-builder-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; min-height:68px; padding:10px 18px; background:#f7f8f5; }
 .canvas-editor.editor-v2 .editor-document { display:block; order:0; width:auto; min-width:0; }
 .canvas-editor.editor-v2 .editor-document strong { display:block; max-width:none; font-size:13px; line-height:1.4; }
 .canvas-editor.editor-v2 .editor-document .status { margin:3px 0 0; max-width:none; padding:0; font-size:11px; line-height:1.45; white-space:normal; overflow:visible; text-overflow:clip; }
 .canvas-editor.editor-v2 .ik-builder-tools .editor-toolbar { display:flex; flex-wrap:nowrap; gap:5px; width:auto; margin:0; }
 .canvas-editor.editor-v2 .editor-toolbar #undo, .canvas-editor.editor-v2 .editor-toolbar #redo { display:inline-flex; width:44px; min-height:44px; padding:8px; font-size:20px; border:1px solid var(--line); background:#fff; }
 .canvas-editor.editor-v2 .editor-toolbar .toolbar-label { display:none; }
 .canvas-editor.editor-v2 .editor-toolbar .mobile-history { display:none; }
 .canvas-editor.editor-v2 .editor-files-menu>summary { min-height:44px; padding:11px 10px; font-size:12px; background:#fff; }
 .canvas-editor.editor-v2 .editor-files-menu>div { top:52px; right:0; left:auto; max-height:calc(100dvh - 228px); }
 .canvas-editor.editor-v2 .editor-mobile-tabs {
  position:fixed; inset:auto 0 0; z-index:50; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px;
  margin:0; padding:8px max(14px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  background:#fff; border:0; border-top:1px solid #d7ded8; border-radius:0; box-shadow:0 -6px 24px #14252108;
 }
 .canvas-editor.editor-v2 .editor-mobile-tabs button { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; min-height:52px; padding:6px; border:0; border-radius:7px; background:transparent; color:#52625c; font-size:12px; font-weight:600; }
 .canvas-editor.editor-v2 .editor-mobile-tabs button>span { font-size:19px; line-height:1; }
 .canvas-editor.editor-v2 .editor-mobile-tabs [aria-pressed=true] { background:#194f42; color:#fff; }
 .canvas-editor.editor-v2 .editor-side { padding:18px 18px 0; background:#f7f8f5; }
 .canvas-editor.editor-v2 .mobile-section-label { margin:0 0 8px; font-size:12px; }
 .canvas-editor.editor-v2 .mobile-section-select { width:100%; min-height:50px; padding:12px; border:1px solid #c5d2c9; border-radius:6px; background:#fff; font-size:16px; }
 .canvas-editor.editor-v2 .mobile-section-tools { display:block; margin-top:6px; }
 .canvas-editor.editor-v2 .mobile-section-tools[hidden] { display:none; }
 .canvas-editor.editor-v2 .mobile-section-tools>summary { min-height:44px; padding:12px 0; font-size:12px; color:var(--muted); cursor:pointer; }
 .canvas-editor.editor-v2 .mobile-section-actions { padding:0 0 10px; }
 .canvas-editor.editor-v2 .mobile-section-actions .btn { min-height:44px; font-size:12px; }
 .canvas-editor.editor-v2 .editor-panel { padding:22px 18px 32px; background:#fff; }
 .canvas-editor.editor-v2 .editor-panel .form-heading { margin-bottom:12px; }
 .canvas-editor.editor-v2 .editor-panel h2 { font-size:30px; margin-bottom:12px; }
 .canvas-editor.editor-v2 .editor-panel .intro { font-size:14px; line-height:1.6; margin-bottom:24px; }
 .canvas-editor.editor-v2 .editor-panel .fields { gap:22px; }
 .canvas-editor.editor-v2 .editor-panel .field label { font-size:14px; }
 .canvas-editor.editor-v2 .editor-panel .field small { font-size:12px; line-height:1.6; }
 .canvas-editor.editor-v2 .editor-panel input:not([type=range]):not([type=checkbox]), .canvas-editor.editor-v2 .editor-panel select, .canvas-editor.editor-v2 .editor-panel textarea { min-height:48px; font-size:16px; }
 .canvas-editor.editor-v2 .editor-panel textarea { min-height:130px; }
 .canvas-editor.editor-v2 .editor-panel .btn { min-height:46px; font-size:13px; }
 .canvas-editor.editor-v2 .editor-panel .text-button, .canvas-editor.editor-v2 .editor-panel .remove { min-height:44px; font-size:13px; }
 .canvas-editor.editor-v2 .editor-panel .repeat-row { padding:18px 15px; background:#f7f8f5; }
 .canvas-editor.editor-v2 .editor-item-controls .btn { min-height:44px; }
 .canvas-editor.editor-v2 .editor-panel .optional-fields>summary { min-height:48px; padding:12px 0; font-size:14px; }
 .canvas-editor.editor-v2.editor-design-view .editor-side { display:none; }
 .canvas-editor.editor-v2 .editor-preview { min-height:0; height:auto; padding:0; }
 .canvas-editor.editor-v2 .editor-preview-context { padding:12px 18px; margin:0; min-height:0; font-size:12px; line-height:1.5; }
 .canvas-editor.editor-v2 .canvas-toolbar { padding:8px 18px; margin:0; }
 .canvas-editor.editor-v2 .viewport-toggle .btn { min-height:44px; font-size:12px; }
 .canvas-editor.editor-v2 .canvas-dimensions { display:none; }
 .canvas-editor.editor-v2 .editor-preview-frame { flex:none; width:100%; max-width:none; height:var(--mobile-preview-height,65dvh); border:0; border-radius:0; box-shadow:none; }
 .canvas-editor.editor-v2 .editor-preview-frame.is-phone { max-width:none; }
 .canvas-editor.editor-v2 .editor-preview-canvas { height:100%; }
 .canvas-editor.editor-v2 .editor-panel :is(input,textarea,select,fieldset) { scroll-margin-block:100px; }
}
@media(max-width:760px) {
 .canvas-editor.editor-v2 .canvas-toolbar { display:none; }
 .canvas-editor.editor-v2 .editor-panel .design-picker { gap:10px; }
 .canvas-editor.editor-v2 .editor-panel .design-choice small { font-size:11px; }
}
