*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:Segoe UI,system-ui,-apple-system,sans-serif;color:#1a1a1a;background:#f4f5f7}button{font:inherit;cursor:pointer;border:1px solid #2563eb;background:#2563eb;color:#fff;border-radius:4px;padding:6px 12px}button:disabled{opacity:.5;cursor:default}button.button--secondary{background:#fff;color:#2563eb}button.button--danger{background:#dc2626;border-color:#dc2626}button.button--small{padding:2px 6px;font-size:11px}input,select,textarea{font:inherit;padding:5px 8px;border:1px solid #ccc;border-radius:4px}label{display:flex;flex-direction:column;gap:3px;font-size:13px;font-weight:600;color:#444;margin-bottom:8px}label input,label select,label textarea{font-weight:400}.checkbox-row{flex-direction:row;align-items:center;gap:6px}a{color:#2563eb}.muted{color:#777;font-size:12px}.app-shell{height:100%;display:flex;flex-direction:column}.app-nav{display:flex;align-items:center;gap:24px;padding:10px 20px;background:#111827;color:#fff}.app-nav__brand{font-weight:700;font-size:18px}.app-nav nav{display:flex;gap:16px}.app-nav a{color:#d1d5db;text-decoration:none}.app-nav a.active{color:#fff;font-weight:600}.app-main{flex:1;overflow:auto;min-height:0}.page{padding:20px;max-width:1100px;margin:0 auto}.page__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.page__actions{display:flex;gap:8px}.panel{background:#fff;border:1px solid #e2e2e2;border-radius:6px;padding:14px;margin-bottom:14px}.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row{display:flex;gap:12px}.form-row>label{flex:1}.form-actions{display:flex;gap:8px}.gel-name{display:flex;align-items:center;gap:6px;margin-top:4px;font-weight:400}.gel-name__swatch{width:14px;height:14px;border:1px solid #999;border-radius:2px}.plain-fieldset{border:0;margin:0;padding:0;min-width:0}.app-nav__user{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:13px}.sign-in{max-width:360px;margin:15vh auto;text-align:center}.sign-in__button{display:inline-block;padding:10px 28px;border-radius:4px;background:#2563eb;color:#fff;text-decoration:none}.view-only-badge{padding:3px 10px;border-radius:10px;background:#e5e7eb;font-size:12px;font-weight:600}.share{position:relative}.share__panel{position:absolute;right:0;top:calc(100% + 6px);z-index:20;width:400px;padding:14px;background:#fff;border:1px solid #d1d5db;border-radius:6px;box-shadow:0 6px 20px #00000026}.share__panel h4{margin:0 0 10px}.share__form{display:flex;gap:6px;margin:8px 0 10px}.share__form input{flex:1;min-width:0}.history-table__detail{background:#f9fafb}.diff-list{list-style:none;margin:0 0 8px;padding:0}.diff-list__item{padding:3px 8px;border-left:3px solid #9ca3af;margin-bottom:3px}.diff-list__item--added{border-left-color:#16a34a}.diff-list__item--removed{border-left-color:#dc2626}.diff-list__item ul{margin:2px 0 0;padding-left:16px}.diff-list del{color:#b91c1c}.diff-list ins{color:#15803d;text-decoration:none}.history-table{background:#fff}.share__link{padding:10px 0;border-top:1px solid #eee}.share__link input{width:100%;margin:6px 0;font-size:12px}.confirm-dialog{border:1px solid #e2e2e2;border-radius:6px;padding:16px;max-width:420px}.confirm-dialog p{margin:0 0 14px}.confirm-dialog .form-actions{justify-content:flex-end}.banner{padding:8px 12px;border-radius:4px;margin-bottom:10px;font-size:13px}.banner--error{background:#fee2e2;color:#991b1b}.banner--warn{background:#fef3c7;color:#92400e}.banner--ok{background:#dcfce7;color:#166534}.fixture-type-table{width:100%;border-collapse:collapse;background:#fff}.fixture-type-table th,.fixture-type-table td{padding:8px 10px;border-bottom:1px solid #eee;text-align:left;vertical-align:middle}.table-actions{white-space:nowrap}.table-actions button+button{margin-left:6px}.symbol-picker{margin-bottom:10px}.symbol-picker__header{display:flex;gap:12px;align-items:center;margin-bottom:8px}.symbol-picker__header label{margin:0}.symbol-picker__preview{border:1px solid #e2e2e2;border-radius:6px;background:#fafafa}.symbol-picker__groups{max-height:280px;overflow-y:auto;border:1px solid #e2e2e2;border-radius:6px;padding:6px 8px}.symbol-picker__group-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin:6px 0 4px}.symbol-picker__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:4px}button.symbol-picker__option{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px;background:#fff;color:#333;border:1px solid #e5e7eb;font-size:11px;line-height:1.2;text-align:center}button.symbol-picker__option:hover{background:#f0f4ff}button.symbol-picker__option--selected{border-color:#2563eb;background:#eff4ff;box-shadow:0 0 0 1px #2563eb}.fixture-photo{display:block;object-fit:contain;background:#fff;border:1px solid #e2e2e2;border-radius:4px}.fixture-photo-field{display:flex;gap:12px;align-items:center;margin-bottom:10px}.fixture-photo-field__empty{width:96px;height:96px;display:flex;align-items:center;justify-content:center;border:1px dashed #ccc;border-radius:4px;color:#999;font-size:12px}.fixture-photo-field__actions{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.fixture-inspector__photo{width:100%;max-height:160px;margin-bottom:10px}.palette__item-photo{width:28px;height:28px;margin-left:auto;flex-shrink:0}.project-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px}.project-list__item{background:#fff;border:1px solid #e2e2e2;border-radius:6px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:8px}.project-list__item>a{flex:1;min-width:0}.project-list__item a{text-decoration:none;color:inherit;flex:1}.project-list__name{font-weight:600;font-size:16px;color:#111}.rig-editor{display:grid;grid-template-columns:220px 1fr 300px;height:calc(100vh - 53px)}.palette{border-right:1px solid #ddd;background:#fff;padding:12px;overflow-y:auto}.palette__hint{font-size:11px;color:#888;margin-top:-4px}.palette__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.palette__item{display:flex;align-items:center;gap:6px;padding:6px;border-radius:4px;cursor:grab;border:1px solid transparent}.palette__item:hover{background:#f0f4ff;border-color:#dbe4ff}.palette__item-name{font-size:12px;font-weight:600}.palette__item-meta{font-size:10px;color:#888}.rig-editor__canvas-area{display:flex;flex-direction:column;min-width:0}.rig-editor__canvas-toolbar{display:flex;align-items:center;gap:14px;padding:8px 14px;background:#fff;border-bottom:1px solid #ddd}.rig-editor__canvas-toolbar h2{font-size:15px;margin:0}.rig-editor__canvas-toolbar .spacer{flex:1}.structure-toolbar{display:flex;gap:6px}.rig-canvas{flex:1;min-height:0;background:#fafafa;background-image:linear-gradient(#eee 1px,transparent 1px),linear-gradient(90deg,#eee 1px,transparent 1px);background-size:40px 40px}.rig-editor__inspector{border-left:1px solid #ddd;background:#f9fafb;padding:12px;overflow-y:auto}.panel__hint{font-size:11px;color:#888;margin:4px 0 8px}.circuit-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}.panel__title-row{display:flex;justify-content:space-between;align-items:baseline}.panel__title-row h3{margin-top:0}.circuit-panel__search{width:100%;margin-top:8px}.circuit-panel__list{max-height:420px;overflow-y:auto;margin:8px 0}.circuit-card{border:1px solid #e2e2e2;border-radius:4px;padding:6px 8px;background:#fff;list-style:none}.circuit-card--empty{background:#fafafa}.circuit-card--over{border-color:#dc2626;background:#fef2f2}.circuit-card--over .capacity-bar__fill{background:#dc2626}.circuit-card__header{display:flex;align-items:center;gap:6px}.circuit-card__header{flex-wrap:wrap;row-gap:2px}.circuit-card__header>strong{flex:1 1 auto;min-width:4em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.circuit-card__load{margin-left:auto;white-space:nowrap}.circuit-kind{font-size:10px;font-weight:700;padding:1px 5px;border-radius:3px;letter-spacing:.04em}.circuit-kind--dimmer{background:#fef3c7;color:#92400e}.circuit-kind--non_dim{background:#ffedd5;color:#9a3412}.circuit-kind--constant{background:#dbeafe;color:#1e40af}.circuit-kind--relay{background:#ede9fe;color:#5b21b6}.circuit-card__dmx{font-family:Consolas,monospace;font-size:11px;color:#5b21b6;white-space:nowrap}.circuit-edit-form{border-top:1px dashed #ddd;margin-top:6px;padding-top:6px}.circuit-edit-form label{margin-bottom:6px}.circuit-edit-form select,.circuit-edit-form>label input{width:100%}.circuit-card__fixtures{list-style:none;padding:0;margin:4px 0;font-size:12px}.circuit-card__fixtures li{display:flex;align-items:center;gap:6px;padding:2px 0;border-top:1px dashed #eee}.circuit-card__fixtures li>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.circuit-card__add{display:flex;flex-direction:column;gap:4px;margin-top:4px}.circuit-card__add:empty{display:none}.circuit-card__add select{width:100%;font-size:12px}.circuit-card__add button{align-self:flex-start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.circuit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;padding:0}.circuits-page{padding:24px;max-width:1200px;margin:0 auto}.circuits-page__filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.circuits-page__filters input{flex:1;min-width:200px}.bulk-circuit-form{margin-top:8px}.bulk-circuit-form__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:0 8px}.bulk-circuit-form__grid input,.bulk-circuit-form__grid select{width:100%;min-width:0}.bulk-circuit-form__footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.capacity-bar{height:6px;background:#eee;border-radius:3px;overflow:hidden;margin:4px 0}.capacity-bar__fill{height:100%;background:#2563eb}.legend-page{padding:24px;max-width:1000px;margin:0 auto}.legend-page__toolbar{display:flex;justify-content:space-between;margin-bottom:16px}.legend-page__notes{white-space:pre-wrap;color:#555}.legend-table-wrap{overflow-x:auto}.legend-table{width:100%;border-collapse:collapse}.legend-table th,.legend-table td{border:1px solid #ccc;padding:6px 10px;text-align:left;font-size:13px}.legend-table tfoot td{font-weight:700;background:#f4f5f7}.legend-table__addresses{font-family:Consolas,monospace;font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}.form-grid label{min-width:0}.form-grid input{min-width:0;width:100%}.spec-grid{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:0 0 10px;font-size:13px}.spec-grid dt{color:#777}.spec-grid dd{margin:0}.load-meter{height:8px;background:#eee;border-radius:4px;overflow:hidden;margin:4px 0}.load-meter--empty{background:repeating-linear-gradient(45deg,#eee,#eee 4px,#f7f7f7 4px,#f7f7f7 8px)}.load-meter__fill{height:100%;background:#16a34a}.load-meter--near_limit .load-meter__fill{background:#d97706}.load-meter--overloaded .load-meter__fill{background:#dc2626}.load-card{border:1px solid #e2e2e2;border-left:4px solid #9ca3af;border-radius:6px;padding:10px 12px;margin-bottom:10px;background:#fff}.load-card--ok{border-left-color:#16a34a}.load-card--near_limit{border-left-color:#d97706}.load-card--overloaded{border-left-color:#dc2626}.load-card__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.load-card h5{margin:0 0 2px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7280}.load-card__big{font-size:18px;font-weight:700}.load-card__big .muted{font-weight:400}.load-card__list{list-style:none;padding:0;margin:4px 0 0;font-size:12px}.load-card__warn{color:#b45309;font-size:12px;font-weight:600}.load-card__status{font-size:12px;font-weight:600}.load-card__status--ok{color:#15803d}.load-card__status--near_limit{color:#b45309}.load-card__status--overloaded{color:#dc2626}.load-card__status--no_swl{color:#6b7280}.load-card__table-wrap{overflow-x:auto;margin-top:12px}.load-table{width:100%;border-collapse:collapse;font-size:13px}.load-table th,.load-table td{border-bottom:1px solid #eee;padding:5px 8px;text-align:left;vertical-align:top}.load-table th{font-size:11px;text-transform:uppercase;color:#6b7280}.load-table .num{text-align:right;font-variant-numeric:tabular-nums}.load-table .mono{font-family:Consolas,monospace;font-size:12px}.load-table tfoot td{font-weight:700;border-top:2px solid #ddd;border-bottom:none}.load-table__row--clickable{cursor:pointer}.load-table__row--clickable:hover{background:#f0f5ff}.schedule-page{padding:24px;max-width:1100px;margin:0 auto}.schedule-page__toolbar{display:flex;justify-content:space-between;margin-bottom:16px}.schedule-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}.schedule-totals>div{background:#fff;border:1px solid #e2e2e2;border-radius:6px;padding:10px 14px;display:flex;flex-direction:column}.schedule-totals span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7280}.schedule-totals strong{font-size:22px}.schedule-totals em{font-style:normal;font-size:12px;color:#777}.print-only{display:none}.schedule-section h2{font-size:18px;margin:20px 0 8px}.offscreen{position:fixed;left:-10000px;top:0;pointer-events:none}.house-dmx__list{list-style:none;padding:0;margin:0 0 8px}.house-dmx__row{display:flex;align-items:center;gap:6px;padding:5px 0;border-top:1px dashed #eee}.house-dmx__name{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px}.house-dmx__badge{font-size:10px;font-weight:700;padding:1px 5px;border-radius:3px;background:#e5e7eb;color:#374151}.house-dmx__badge--dimmers{background:#fef3c7;color:#92400e}.house-dmx__badge--relay_power{background:#ede9fe;color:#5b21b6}.house-dmx__badge--house_lights{background:#dcfce7;color:#166534}.house-dmx__form{border:1px solid #e2e2e2;border-radius:4px;padding:8px;margin-bottom:6px}.house-dmx__form>label input,.house-dmx__form select{width:100%}.house-dmx__channels{display:grid;grid-template-columns:repeat(3,1fr);gap:0 6px}.house-dmx__channels input{width:100%;min-width:0}.legend-page__section{font-size:18px;margin:24px 0 8px}@media print{.no-print{display:none!important}.app-nav,.app-main{all:unset}body{background:#fff}.legend-page{padding:0;max-width:none}.legend-table{font-size:11px}.legend-table th,.legend-table td{padding:4px 6px}.schedule-page{page:schedule;padding:0;max-width:none}.schedule-section{break-before:page}.schedule-section h2{margin-top:0}.schedule-section__project{display:block!important;margin-bottom:4px;font-size:12px;color:#555}.load-card__table-wrap{overflow:visible}.load-table tr{break-inside:avoid}.load-table{font-size:10px}.load-table th,.load-table td{padding:2px 5px}.load-table .muted{display:inline;margin-left:6px}.load-card{padding:8px 10px;margin-bottom:0}.load-card__stats{font-size:11px}.load-card__big{font-size:15px}.load-card__list{columns:2;margin:2px 0}.load-card__table-wrap{margin-top:6px}.load-meter__fill{-webkit-print-color-adjust:exact;print-color-adjust:exact}}@page schedule{size:A4 landscape;margin:12mm}
