/* Keep primary editing actions visible; secondary actions live in menus. */
#topbar { height: auto; min-height: 48px; flex-shrink: 0; flex-wrap: wrap; gap: 6px; padding: 7px 10px; position: relative; z-index: 110; }
#topbar > * { flex-shrink: 0; }
#topbar .project-name { max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-right: 8px; }
#topbar .menu-btn { white-space: nowrap; padding: 6px 9px; color: #c0c8dc; }
#topbar .toolbar-menu { position: relative; }
.toolbar-menu summary { list-style: none; cursor: pointer; padding: 6px 10px; border: 1px solid #294265; border-radius: 5px; font-size: 12px; color: #d1daeb; }
.toolbar-menu summary::after { content: ' ▾'; }
.toolbar-menu[open] summary { background: #244066; }
.toolbar-menu-content { position: absolute; top: calc(100% + 6px); right: 0; display: flex; flex-direction: column; gap: 5px; min-width: 180px; max-height: min(70vh, 500px); overflow-y: auto; background: #16213e; border: 1px solid #365177; border-radius: 8px; padding: 8px; box-shadow: 0 8px 25px #0008; z-index: 350; }
#topbar .toolbar-menu-content .menu-btn { text-align: left; }
#main, #left-panel, #right-panel { min-height: 0; }
#left-panel, #right-panel { flex-shrink: 0; }
#canvas-container { min-width: 0; }
.getting-started { position: absolute; z-index: 60; top: 22%; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); padding: 24px; background: #fffffff5; color: #263852; border: 1px solid #c7d2df; border-radius: 12px; box-shadow: 0 12px 40px #27395422; }
.getting-started[hidden] { display: none; }
.getting-started { pointer-events: none; }
.getting-started button { pointer-events: auto; }
.getting-started strong { font-size: 20px; }
.getting-started p { font-size: 13px; line-height: 1.5; margin: 10px 0 18px; }
.getting-started > div { display: flex; gap: 8px; flex-wrap: wrap; }
.getting-started button { cursor: pointer; border: 1px solid #acbacb; border-radius: 6px; padding: 9px 12px; background: white; color: #263852; }
.getting-started button:first-child { background: #df3757; color: white; border-color: #df3757; }
@media (max-width: 1050px) { #left-panel { width: 190px; } #right-panel { width: 210px; } #topbar { gap: 4px; } }
@media (max-width: 760px) { #left-panel { width: 160px; } #right-panel { width: 180px; } #topbar .project-name { max-width: 110px; } .toolbar-menu-content { position: fixed; top: 96px; right: 10px; } }
@media (max-width: 560px) { #right-panel { width: 155px; padding: 6px; } #left-panel { width: 130px; } #toolbar { padding: 4px; } .tool-btn { padding: 7px 4px; font-size: 11px; } .tool-group-sub, .tool-btn .shortcut { display: none; } }
/* Whole-house roof presets */
#roof-design-dialog { margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; color: #e4eaf3; background: #16213e; border: 1px solid #446082; border-radius: 14px; box-shadow: 0 24px 90px #0009; }
#roof-design-dialog::backdrop { background: #080d1bbd; }
.roof-design-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.roof-design-heading h2 { font-size: 21px; }
#roof-design-dialog .menu-btn { border: 1px solid #567292; border-radius: 6px; color: #e4eaf3; background: #243550; cursor: pointer; }
.roof-design-heading .menu-btn { padding: 6px 10px; }
#roof-design-dialog p { font-size: 13px; line-height: 1.6; margin: 14px 0; }
#roof-design-dialog label { display: block; font-size: 12px; font-weight: 600; margin: 18px 0 7px; }
#roof-design-preset { width: 100%; padding: 11px; background: #0d1930; border: 1px solid #567292; border-radius: 6px; color: #fff; font: inherit; }
#roof-design-preview { background: #0e1930; margin-top: 16px; border-radius: 8px; height: 155px; }
#roof-design-preview svg { display: block; width: 100%; height: 100%; }
#roof-design-dialog .roof-design-note { color: #a8b8cd; font-size: 12px; }
#roof-design-feedback { color: #ffacb8; }
.roof-design-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.roof-design-actions .menu-btn { padding: 10px 16px; }
#roof-design-dialog #roof-design-apply { background: #e94560; border-color: #e94560; color: white; font-weight: 600; }
