.design-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,220px);gap:22px;align-items:start}
.design-preview{display:grid;place-items:center;min-height:120px;border:1px dashed var(--line);border-radius:8px;background:var(--bg);padding:10px}.design-preview img{display:block;width:100%;max-height:260px;object-fit:contain}.design-preview .empty{margin:0;padding:12px;border:0;text-align:center}
#designStatus{overflow-wrap:anywhere}.size-table-wrap{overflow-x:auto}.size-table{width:100%;table-layout:fixed}.size-table th{text-align:left;background:var(--bg);padding:9px 8px;font-size:13px}.size-table td{padding:6px 4px}.size-table th:nth-child(1){width:100px}.size-table th:nth-child(3){width:74px}.size-table th:nth-child(4){width:42px}.size-table input{width:100%;min-width:0;padding:8px}.size-table button{width:34px;min-height:36px;padding:0}.add-rows{margin:13px 0 15px}.size-summary{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.size-chip{background:var(--accent-soft);color:var(--ink);border-radius:20px;padding:5px 10px;font-size:13px;overflow-wrap:anywhere}.size-chip strong{margin-left:6px}.size-table .duplicate-number{border-color:var(--accent);background:var(--accent-soft)}.budget-toolbar .button-row{flex-wrap:wrap}.budget-editor #appMessage{margin:0 0 14px}.budget-editor #conflictActions{margin-bottom:14px}.budget-editor #conflictActions .button-row{margin-top:8px}.export-panel{margin-bottom:16px}#previewOpen{display:inline-block;margin-top:10px}.design-panel input[type=file]{min-width:0;max-width:100%;width:100%}[hidden]{display:none!important}
@media(max-width:600px){.design-panel{grid-template-columns:minmax(0,1fr)}.design-preview img{max-height:220px}.size-table th:nth-child(1){width:72px}.size-table th:nth-child(3){width:57px}.size-table th:nth-child(4){width:36px}.size-table td{padding:5px 2px}.size-table th{padding:7px 4px}.size-table input{padding:7px 4px}.size-table button{width:30px}.section-kicker small{white-space:nowrap}}
.size-table{min-width:0}.size-table th:last-child{position:relative}
.size-table input{font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:5px;min-height:37px}.size-table input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.size-table th:nth-child(4){width:90px}.size-table th:nth-child(5){width:42px}.size-table input[type=number]{appearance:textfield}.size-table input[type=number]::-webkit-inner-spin-button,.size-table input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}
@media(max-width:600px){.size-table th:nth-child(1){width:54px}.size-table th:nth-child(3){width:44px}.size-table th:nth-child(4){width:58px}.size-table th:nth-child(5){width:34px}.size-table th{font-size:12px}.size-table input{font-size:14px}.section-kicker{flex-wrap:wrap}}
