.lh-extra-dialog{background:var(--bg-panel,#081321);color:var(--text,#e8f0fe);border:1px solid #2d536d;border-radius:18px;width:min(760px,calc(100vw - 24px));max-height:90dvh;margin:auto;padding:24px;overflow:auto;font:15px/1.55 var(--font,system-ui);box-shadow:0 24px 80px #0009}
.lh-extra-dialog::backdrop{background:#020915bd;backdrop-filter:blur(4px)}
.lh-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}.lh-dialog-head h2{font-size:1.25rem}.lh-dialog-head h3{font-size:1rem}
.lh-action{min-height:42px;padding:9px 14px;background:var(--bg-card,#11283e);border:1px solid #355975;border-radius:8px;color:var(--text,#e8f0fe);cursor:pointer;font:inherit}.lh-action:hover{border-color:#00d4ff}.lh-action:focus-visible{outline:3px solid #00d4ff;outline-offset:2px}.lh-action:disabled{opacity:.5;cursor:wait}.lh-primary{background:#075b42;color:#fff;border-color:#18b084;font-weight:700;margin-top:12px;width:100%}
.lh-field{display:flex;flex-direction:column;gap:6px;margin:16px 0;font-size:.9rem;font-weight:600}.lh-extra-dialog input,.lh-extra-dialog select{display:block;width:100%;padding:12px;min-height:46px;background:var(--bg-card,#11283e);color:var(--text,#e8f0fe);border:1px solid #355975;border-radius:8px;font:inherit;box-sizing:border-box}.lh-extra-dialog input[type=checkbox]{width:24px;height:24px;min-height:0}.lh-extra-dialog option{background:var(--bg-panel,#081321)}
.lh-muted{color:var(--text-dim,#9bb2c9);font-size:.87rem;overflow-wrap:anywhere}.lh-error{color:#ff8c9b;white-space:pre-wrap}.lh-lead{font-weight:600}.lh-preview{border-left:3px solid #00c7e6;background:#00c7e60a;padding:12px;margin:16px 0}.lh-palette{background:var(--bg-card,#0c1422);border:1px solid var(--border,#244059);border-radius:12px;padding:16px;margin:12px 0}.lh-palette h3{color:var(--accent,#00d4ff);font-size:1rem}.lh-floor-row{padding:12px 0;border-bottom:1px solid var(--border,#244059);overflow-wrap:anywhere}.lh-floor-row:last-child{border-bottom:0}.lh-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.lh-floor-section{margin:20px 0;padding:20px;border:1px solid var(--border,#244059);border-radius:12px}.lh-floor-section:has(.lh-palette){border-color:#2d6470}#pb-tbody td{overflow-wrap:anywhere}#pb-tbody .lh-action{font-size:.8rem;white-space:nowrap}
@media(max-width:600px){.lh-extra-dialog{padding:16px}.lh-floor-section{padding:12px}.lh-dialog-head{gap:8px}.lh-actions>*{flex:1}.lh-floor-row strong{font-size:1rem}}

/* Allow the extra navigation item to wrap instead of clipping the existing tabs. */
#header{height:auto;min-height:58px;flex-shrink:0;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;gap:8px}
#header .header-right{flex-wrap:wrap}
#lager-switch{display:flex;flex-wrap:wrap;gap:3px}
#top-floor{min-height:30px;padding:5px 9px;font-size:.75rem}
