.horn-workbench{background:#faf9fc;color:#24212c;font:14px/1.5 Arial,sans-serif;padding:16px;min-height:100%;box-sizing:border-box}.horn-workbench *{box-sizing:border-box}.horn-workbench button,.horn-workbench input,.horn-workbench select,.horn-workbench textarea{font:inherit;color:inherit}.horn-workbench button{border:1px solid #d6d0df;background:#fff;padding:8px 12px;border-radius:8px;cursor:pointer;min-height:40px}.horn-workbench button:disabled{opacity:.5;cursor:wait}.horn-workbench button[aria-selected=true],.horn-workbench button[aria-pressed=true]{background:#65329b;color:#fff;border-color:#65329b}.horn-workbench button:focus-visible,.horn-workbench input:focus-visible,.horn-workbench textarea:focus-visible{outline:3px solid #9e75c8;outline-offset:2px}.hw-intro{letter-spacing:.1em;font-size:12px;font-weight:700;margin:0 0 8px}.hw-note{font-size:12px;color:#635d6d;margin:10px 0}.hw-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.hw-actions>input{min-width:100px;max-width:220px;flex:1}.hw-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:18px 0;border-bottom:1px solid #ddd5e5;padding-bottom:12px}.hw-content label{display:grid;gap:5px;margin:10px 0;min-width:0}.horn-workbench input:not([type=range]),.horn-workbench textarea,.horn-workbench select{border:1px solid #ccc4d7;background:#fff;padding:9px;border-radius:6px;min-width:0;width:100%;min-height:40px}.horn-workbench input[type=color]{padding:4px!important;width:100%}.horn-workbench textarea{resize:vertical}.hw-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hw-fields input[type=range]{width:100%;min-height:40px;accent-color:#65329b}.hw-canvas{display:flex;justify-content:center;background:#e9e6ed;padding:12px;border-radius:9px;overflow:hidden;min-height:100px;margin:12px 0}.hw-canvas canvas{display:block;max-width:100%;height:auto;max-height:48vh;object-fit:contain}.hw-canvas #hw-design-canvas{touch-action:none;cursor:crosshair}.hw-status{display:block;border-top:1px solid #ddd5e5;padding:10px 0;font-size:12px;min-height:38px;overflow-wrap:anywhere}.hw-status[data-error=true]{color:#a7251e}.hw-formula{display:flex;align-items:center;gap:10px;margin:10px 0}.hw-formula strong{min-width:35px}.hw-table{overflow:auto;max-height:44vh;overscroll-behavior:contain;border:1px solid #dad4e3}.hw-table table{border-collapse:collapse;min-width:100%;background:#fff}.hw-table th{background:#eeeaf4;padding:7px;position:sticky;top:0;font-weight:500}.hw-table th:first-child{left:0;z-index:1}.hw-table td{border:1px solid #e2dce9;padding:0}.hw-table td button{display:block;border:0;border-radius:0;min-width:95px;max-width:180px;width:100%;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hw-slides{display:flex;gap:7px;overflow:auto;max-width:100%;padding-bottom:6px}.hw-slides button{white-space:nowrap}.horn-workbench[aria-busy=true]{cursor:progress}
@media(max-width:800px),(pointer:coarse){.horn-workbench{padding:12px;font-size:14px}.horn-workbench button,.horn-workbench input,.horn-workbench textarea,.horn-workbench select{font-size:16px;min-height:44px}.hw-tabs{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}.hw-note{font-size:12px}.hw-actions{gap:6px}.hw-actions button{flex:1;padding:7px 10px}.hw-canvas{padding:5px}.hw-canvas canvas{max-height:36vh}.hw-fields{gap:7px}.hw-fields label{font-size:12px}.hw-fields input{padding:6px!important}.hw-slides button{flex:none}.hw-table{max-height:35vh}.hw-table td button{min-width:88px}.hw-intro{font-size:11px}.hw-actions #hw-project-name{max-width:none;flex-basis:100%}}

.hw-scope summary,.hw-settings summary{font-size:12px;color:#635d6d;min-height:30px;cursor:pointer;padding:5px 0}.hw-settings{border-top:1px solid #ddd5e5;border-bottom:1px solid #ddd5e5;margin:10px 0}
@media(max-width:800px),(pointer:coarse){.hw-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.hw-tabs button{padding:6px!important;font-size:14px}.hw-draw-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.hw-draw-tools button{font-size:14px;white-space:nowrap}.hw-scope summary,.hw-settings summary{min-height:44px;font-size:13px}}
