body.ctor-page{min-height:100vh;display:flex;flex-direction:column;color:var(--text);font-size:16px}body.ctor-page .ctor{flex:none;height:calc(100dvh - var(--service-header-h));min-height:520px;display:grid;grid-template-columns:var(--panel-w) minmax(0,1fr);min-width:0}.ctor-side{display:flex;flex-direction:column;min-height:0;background:var(--surface);border-right:1px solid var(--border);color:var(--text)}.ctor-side .panel-content{display:flex;flex-direction:column;gap:8px}.ctor-side .section-label{margin:0}.ctor-side .section-label:not(:first-child){margin-top:10px}.ctor-side h1{margin-bottom:0}.ctor-map{position:relative;min-width:0;min-height:0}.site-header .cabinet-actions{flex-wrap:nowrap;gap:12px}.site-header .cabinet-actions button{font-size:14px;color:var(--text);border:0;white-space:nowrap}#ctor-tools .ctor-tools-bar{display:flex;gap:4px;padding:4px;border-radius:var(--radius);background:var(--bg)}#ctor-tools .ctor-tools-bar button{flex:1;min-height:44px;padding:8px 4px;font-size:14px;color:var(--text);background:transparent;border:0;border-radius:var(--radius)}#ctor-tools .ctor-tools-bar button:hover:not([aria-pressed=true]){background:var(--surface)}#ctor-tools .ctor-tools-bar button[aria-pressed=true]{color:var(--accent-ink);background:var(--accent);box-shadow:var(--shadow-sm)}.ctor-side .ctor-history{display:flex;gap:8px}.ctor-side .ctor-history button,.ctor-side #ctor-files button,.ctor-side #ctor-cabinet-save button,.ctor-side .ctor-row button,.ctor-side .ctor-card-panel button,.ctor-side #ctor-archive button,.ctor-side #ctor-archive .archive-actions a,.ctor-vertex button{min-height:44px;padding:8px 12px;font-size:14px;line-height:1.3;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.ctor-side #ctor-cabinet-save button{width:100%}.ctor-side #ctor-files .ctor-tools-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px}#ctor-files .ctor-group>h2{display:none}.ctor-side .ctor-shot-open{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 16px;font-size:16px;color:var(--accent-ink);background:var(--accent);border:0;border-radius:var(--radius)}.ctor-side .ctor-shot-open:after{content:"→"}.ctor-side .ctor-shot-open:hover{background:var(--accent-hover)}.ctor-hint{margin:0;font-size:14px;line-height:1.6;color:var(--text)}.ctor-group{display:flex;flex-direction:column;gap:8px}.ctor-group h2{margin:0;font-family:var(--font-display);font-size:18px;color:var(--text)}.ctor-row{display:flex;flex-direction:column;gap:8px;padding:12px;font-size:14px;line-height:1.45;color:var(--text);border:1px solid var(--border);border-radius:var(--radius);background:var(--bg)}.ctor-row.is-selected{border-color:var(--text);box-shadow:inset 3px 0 var(--accent)}.ctor-row input{width:100%}.ctor-row label{display:flex;flex-direction:column;gap:4px;margin:0;font-size:14px;color:var(--text)}.ctor-row-actions{display:flex;flex-wrap:wrap;gap:8px}.ctor-colors{display:flex;flex-wrap:wrap;gap:6px}.ctor-side .ctor-row .ctor-colors button{width:28px;min-height:28px;height:28px;padding:0;border:2px solid var(--bg);border-radius:50%;box-shadow:0 0 0 1px var(--border)}.ctor-side .ctor-row .ctor-colors button[aria-pressed=true]{box-shadow:0 0 0 2px var(--text)}.ctor-status{pointer-events:none;position:absolute;z-index:4;left:50%;top:76px;translate:-50% 0;width:max-content;max-width:min(480px,calc(100% - 32px));margin:0;padding:10px 16px;font-size:14px;line-height:1.45;color:var(--text);background:var(--surface-raised);border:1px solid var(--border);box-shadow:var(--shadow-lg)}.ctor-status:empty,#ctor-card:empty,#ctor-files:empty,#ctor-snapshot:empty,#ctor-cabinet:empty,#ctor-cabinet-save:empty{display:none}.ctor-vertex{position:fixed;z-index:30;display:flex;gap:8px;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md)}body.ctor-page.ctor-snapshot .ctor{height:100vh}body.ctor-page.ctor-snapshot #ctor-status{translate:none}.ctor-output-actions{display:contents}.ctor-export-short{display:none}@media (min-width: 768px){.ctor-side .panel-content{gap:6px}.ctor-side .section-label:not(:first-child){margin-top:6px}body.ctor-page .ctor-side :is(button,input,select){height:32px;min-height:32px;padding:4px 8px;line-height:20px}#ctor-tools .ctor-tools-bar button,.ctor-side #ctor-cabinet-save button{height:32px;min-height:32px;padding:4px 8px;line-height:20px}body.ctor-page .ctor-side #ctor-files :is(button,input,select){height:32px;min-height:32px;padding:4px 6px;line-height:20px}.ctor-side #ctor-files .ctor-tools-bar{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.ctor-export-long{display:none}.ctor-export-short{display:inline}.ctor-side #ctor-files button{white-space:nowrap}.ctor-output-actions{display:flex;flex-wrap:wrap;gap:4px}.ctor-side .ctor-shot-open{width:auto;color:var(--text);background:var(--surface);border:1px solid var(--border);justify-content:center}.ctor-side .ctor-shot-open:after{content:none}.ctor-side .ctor-shot-open:hover{background:var(--bg)}.ctor-side #ctor-cabinet-save button{width:auto}.ctor-row{padding:8px;gap:6px}.ctor-row-actions,.ctor-side .ctor-history{gap:4px}#ctor-tools .ctor-tools-bar{padding:2px;gap:2px}}@media (max-width: 767px){body.ctor-page .ctor{flex:1 1 auto;height:auto;min-height:0;display:flex;flex-direction:column}.ctor-map{order:-1;flex:none;height:58dvh;min-height:340px}.ctor-side{position:relative;z-index:5;margin-top:-14px;border-right:0;border-radius:14px 14px 0 0;box-shadow:0 -4px 18px #2b2b2b14}.ctor-map .maplibregl-ctrl-bottom-left,.ctor-map .maplibregl-ctrl-bottom-right{margin-bottom:14px}.ctor-side .panel-content{padding:16px 18px 18px;overflow:visible}.ctor-status{top:122px}.site-header .cabinet-actions{gap:0}}.ctor-side #ctor-archive .archive-status{margin:0}.ctor-side #ctor-archive .archive-status a{color:var(--text)}.ctor-side #ctor-archive .archive-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}body.ctor-page .ctor-side #ctor-archive .archive-item{width:100%;height:auto;text-align:left;white-space:normal;overflow-wrap:anywhere}.ctor-side #ctor-archive .archive-item[aria-expanded=true]{border-color:var(--text)}.ctor-side #ctor-archive .archive-entry{margin:6px 0 4px;padding-left:12px;border-left:4px solid var(--accent)}.ctor-side #ctor-archive .archive-entry h3{margin:0 0 4px;font-size:inherit;overflow-wrap:anywhere}.ctor-side #ctor-archive .archive-entry p{margin:0 0 2px}.ctor-side #ctor-archive .archive-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.ctor-side #ctor-archive .archive-actions a{display:inline-flex;align-items:center;text-decoration:none}
