html,body,#root{height:100%;margin:0}*{box-sizing:border-box}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}:root{--header-height:48px;--sidebar-width:260px;--right-width:300px;--bg:#f6f8fa;--muted:#6b7280;--accent:#2563eb}html,body,#root{height:100%;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;background:var(--bg);color:#111827}.app-header{position:fixed;top:0;left:0;right:0;min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:6px 12px;box-sizing:border-box;background:#0f172a;color:#fff;z-index:40;box-shadow:0 2px 6px #02061726}.app-header .brand{font-weight:600;font-size:15px;letter-spacing:.2px;white-space:nowrap;margin-right:14px}.app-root{width:100%;height:100%;display:flex;flex-direction:column}.app-body{display:flex;flex-direction:row;align-items:stretch;padding:calc(var(--header-height) + 16px) 16px 24px 16px;min-height:calc(100vh - var(--header-height));box-sizing:border-box;gap:0;width:100vw;flex:1 1 auto;flex-wrap:nowrap}.app-body.expand-middle .right-panel,.app-body.expand-middle .drag-split-right{display:none}.sidebar{flex:0 0 var(--sidebar-width)}.right-panel{flex:0 0 var(--right-width)}.drag-split,.drag-split-right{width:10px;cursor:col-resize;position:relative;flex:0 0 10px}.drag-split:after,.drag-split-right:after{content:"";position:absolute;top:0;bottom:0;left:4px;width:2px;background:#00000014;border-radius:1px;transition:background .15s}.drag-split:hover:after,.drag-split-right:hover:after{background:#00000059}.toolbar{display:flex;gap:4px 2px;align-items:center;flex-wrap:wrap;flex:1 1 auto;min-width:0}.toolbar-group{display:flex;gap:4px;align-items:center}.toolbar-group+.toolbar-group{padding-left:6px;margin-left:3px;border-left:1px solid rgba(255,255,255,.14)}.toolbar-spacer{flex:1 1 0;min-width:8px}.toolbar>.toolbar-group:last-child{margin-left:auto}.tool-btn-icon{padding:5px 7px;font-size:14px;line-height:1;min-height:28px}.segmented{display:inline-flex;border:1px solid rgba(255,255,255,.28);border-radius:7px;overflow:hidden}.segmented button{background:transparent;color:#e5e7eb;border:none;padding:5px 11px;font-size:12px;cursor:pointer}.segmented button+button{border-left:1px solid rgba(255,255,255,.28)}.segmented button.active{background:var(--accent);color:#fff}.segmented button:not(.active):hover{background:#ffffff1a}.whats-new-count{min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:#dc2626;color:#fff;font-size:10px;font-weight:600;line-height:16px;text-align:center}.status-pill{background:#ffffff24;color:#fff;padding:2px 6px;border-radius:12px;font-size:10px;line-height:1}.uid-badge{background:#ffffff1f;padding:4px 10px;border-radius:20px;font-size:11px;display:flex;gap:6px;align-items:center;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-btn{display:inline-flex;gap:6px;align-items:center;padding:5px 9px;border-radius:6px;box-sizing:border-box;min-height:28px;background:#fff;color:#111;border:1px solid #e5e7eb;cursor:pointer;font-size:12px;white-space:nowrap}.tool-btn svg{opacity:.95;fill:currentColor}.tool-btn:hover{background:#f3f4f6}.tool-btn:disabled{opacity:.4;cursor:default;pointer-events:none}.tool-btn.btn-file{position:relative;overflow:hidden}.tool-btn input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.tool-btn-primary{background:#2563eb;color:#fff;border-color:#1d4ed8}.tool-btn-primary:hover{background:#1d4ed8}.tool-btn-active{background:#dbeafe;color:#1e3a8a;border-color:#93c5fd}.tool-btn-active:hover{background:#bfdbfe}.tool-select{padding:4px 6px;max-width:130px;text-overflow:ellipsis}.tool-btn-danger{background:#fff;color:#b91c1c;border-color:#fca5a5}.tool-btn-danger:hover{background:#fef2f2}.menu-item{display:block;width:100%;text-align:left;padding:7px 10px;border:0;border-radius:5px;background:transparent;color:#111;cursor:pointer;font-size:12px;white-space:nowrap}.menu-item:hover{background:#f3f4f6}.menu-item:disabled{opacity:.4;cursor:default}.menu-item-danger{color:#b91c1c}.menu-item-danger:hover{background:#fef2f2}.menu-item-iconed{display:flex;align-items:center;gap:9px;padding:6px 12px 6px 8px}.menu-item-icon{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;color:#64748b;flex:0 0 18px}.menu-item:hover .menu-item-icon{color:#0f172a}.menu-item-danger .menu-item-icon{color:#dc2626}.menu-item-label{flex:1}.project-name-badge{color:#ffffffbf;font-size:12px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}.sidebar{background:#fff;border-radius:8px;padding:12px;box-shadow:0 1px 3px #0f172a0f;height:calc(100vh - var(--header-height) - 32px);overflow:auto}.main-area{background:#fff;border-radius:8px;padding:0;display:flex;align-items:flex-start;justify-content:flex-start;box-shadow:0 1px 3px #0f172a0f;min-height:calc(100vh - var(--header-height) - 32px);flex:1 1 0;min-width:0;position:relative;overflow:auto;width:auto!important}.right-panel{background:#fff;border-radius:8px;padding:12px;box-shadow:0 1px 3px #0f172a0f;height:calc(100vh - var(--header-height) - 32px);overflow:auto;transition:width .2s ease}.catalog-panel h2{margin:0 0 8px;font-size:14px}.catalog-panel ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1px}.catalog-panel li{display:flex;gap:10px;align-items:center;padding:5px 6px;border-radius:6px;cursor:pointer;font-size:13px;line-height:1.25}.catalog-panel li img{flex:0 0 28px}.catalog-panel li small{font-size:11px}.catalog-panel li:hover{background:#f3f4f6}.catalog-panel li.selected{background:#dbeafe}.catalog-panel .catalog-name{overflow:hidden;text-overflow:ellipsis}.catalog-group{font-size:11px;font-weight:600;color:#6b7280;text-transform:none;margin:10px 6px 4px}.catalog-panel img{max-width:36px;max-height:36px;width:auto;height:auto;object-fit:contain}.selected-info{margin-top:12px;font-size:13px;color:var(--muted)}.pdf-viewer{width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:12px}.pdf-scroll-wrapper{flex:1 1 auto;width:100%;height:100%;overflow:auto}.pdf-viewer input[type=file]{display:inline-block;margin-bottom:8px}.pdf-viewer canvas{display:block;max-width:none}.bom-panel h2{margin:0 0 8px}.bom-panel table{width:100%;border-collapse:collapse;font-size:13px}.bom-panel th,.bom-panel td{text-align:left;padding:6px 8px;border-bottom:1px solid #eef2f7}.bom-panel tfoot td{border-top:2px solid #e6eef8}.modal-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:100}.modal{width:min(980px,92vw);background:#fff;border-radius:10px;box-shadow:0 10px 30px #00000040;display:flex;flex-direction:column;max-height:88vh}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb}.modal-body{padding:12px 16px;overflow:auto}.modal-footer{padding:12px 16px;border-top:1px solid #e5e7eb;display:flex;gap:8px;justify-content:flex-end}.close-btn{background:transparent;border:none;font-size:18px;cursor:pointer}.modal-body.catalog-editor-body{overflow:auto;display:flex;flex-direction:column;flex:1;gap:12px}.merge-modal{display:flex;flex-direction:column;gap:16px}.merge-dropzone{border:2px dashed #cbd5f5;border-radius:10px;padding:24px;text-align:center;background:#f8fafc;transition:border-color .2s ease,background .2s ease}.merge-dropzone.dragging{border-color:#2563eb;background:#eff6ff}.merge-dropzone .dropzone-inner{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;font-size:14px;color:#1f2937}.merge-dropzone .hint{font-size:12px;color:#6b7280}.merge-list{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow:auto;padding-right:4px}.merge-list .empty-state{text-align:center;padding:24px 12px;border:1px dashed #dbeafe;border-radius:8px;color:#6b7280;background:#f8fafc}.merge-item{display:flex;gap:12px;justify-content:space-between;align-items:center;border:1px solid #e5e7eb;border-radius:8px;padding:10px 12px;background:#fff}.merge-item.has-error{border-color:#fca5a5;background:#fef2f2}.merge-item-info{flex:1;min-width:0}.merge-item-title{font-weight:500;font-size:14px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.merge-item-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:#6b7280}.merge-item-actions{display:flex;gap:6px}.merge-item-actions .tool-btn{padding:6px 10px;min-width:0}.merge-footer-left{display:flex;flex-direction:column;gap:4px;min-width:0}.merge-summary{font-size:13px;color:#1f2937}.merge-error{font-size:12px;color:#b91c1c}.merge-footer-actions{display:flex;gap:8px;align-items:center}.tool-btn.disabled{pointer-events:none;opacity:.5}.catalog-editor-grid{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}.catalog-list{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;overflow:auto;min-height:0}.list-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #e5e7eb}.catalog-list-ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}.catalog-row{display:flex;gap:12px;align-items:center;padding:8px 12px;border-bottom:1px solid #e5e7eb;background:#fff}.catalog-row.is-editing{background:#eef2f7;border-bottom:none}.thumb{max-width:32px;max-height:32px;width:auto;height:auto;object-fit:contain;border-radius:4px;background:#fff;border:1px solid #e5e7eb;flex-shrink:0}.catalog-row .info{flex:1}.catalog-row .name{font-weight:500}.catalog-row .meta{color:#6b7280;font-size:12px}.catalog-row .row-actions{display:flex;gap:8px}.catalog-inline-form{border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;background:#fff;padding:0}.catalog-form{padding:12px;display:grid;gap:10px;align-content:start;min-height:0}.catalog-form h3{margin:0 0 4px}.catalog-form label{display:grid;gap:6px;font-size:13px}.catalog-form input,.catalog-form select{padding:8px 10px;border-radius:6px;border:1px solid #e5e7eb}.catalog-form .file-row{display:flex;align-items:center;gap:10px}.catalog-empty{padding:12px;text-align:center;color:#6b7280;font-size:13px;background:#fff}.sidebar ul{margin-top:8px}@media (max-width:1000px){.app-body{grid-template-columns:1fr;padding:calc(var(--header-height) + 12px) 12px 12px 12px}.sidebar,.right-panel{height:auto}}.pdf-fullscreen-overlay{position:fixed;inset:0;background:#0f172a;z-index:120;display:flex;flex-direction:column}.pdf-fullscreen-overlay .pdf-viewer{flex:1;width:100%;padding:16px}.pdf-fullscreen-toolbar{position:fixed;top:8px;right:12px;z-index:130;display:flex;gap:8px}.stamp-cell-input{display:block;box-sizing:border-box;margin:0;padding:0 1px;border:0;border-radius:2px;outline:none;resize:none;overflow:hidden;background:#2563eb12;white-space:nowrap;text-overflow:ellipsis}textarea.stamp-cell-input{white-space:pre-wrap}.stamp-cell-input::placeholder{color:#a5b4c8;font-weight:400;font-style:italic}.stamp-cell-input:hover{background:#2563eb21}.stamp-cell-input:focus{background:#fff;box-shadow:0 0 0 1.5px #2563eb;position:relative;z-index:1}.stamp-cell-logo{padding:0;margin:0;border:0;background:#2563eb12;cursor:pointer;border-radius:2px}.stamp-cell-logo:hover{background:#2563eb21}@font-face{font-family:Stamp Noto;src:url(/fonts/NotoSans-Regular.ttf) format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Stamp Noto;src:url(/fonts/NotoSans-Bold.ttf) format("truetype");font-weight:700;font-display:swap}.xp-modal{width:min(1400px,96vw);height:92vh;max-height:92vh}.xp-body{flex:1;min-height:0;display:flex}.xp-side{width:300px;flex-shrink:0;overflow:auto;border-right:1px solid #e5e7eb;padding:10px 12px;background:#f9fafb;font-size:13px}.xp-part{margin-bottom:12px}.xp-part-head{display:flex;align-items:center;gap:8px;font-weight:600;padding:4px 0;cursor:pointer}.xp-part-head span:nth-child(2){flex:1}.xp-count{font-size:11px;color:#6b7280;font-weight:400;white-space:nowrap}.xp-unit-row{display:flex;align-items:center;gap:6px;padding:2px 0 2px 20px}.xp-unit-row button{flex:1;min-width:0;text-align:left;background:none;border:none;padding:2px 0;cursor:pointer;font:inherit;color:#1f2937;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xp-unit-row button:hover{color:#1d4ed8;text-decoration:underline}.xp-unit-row.off button{color:#9ca3af;text-decoration:line-through}.xp-main{flex:1;min-width:0;overflow:auto;padding:12px 16px;background:#eef0f3}.xp-unit{margin-bottom:18px}.xp-unit-head{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin-bottom:8px;cursor:pointer}.xp-unit-head .xp-count{margin-left:4px}.xp-paper{display:flex;align-items:center;gap:8px;font-size:12px;color:#4b5563;margin:-4px 0 8px 24px}.xp-paper select{font-size:12px}.xp-paper-changed{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:4px;padding:0 6px;font-weight:600}.ps-table{width:100%;border-collapse:collapse;font-size:13px}.ps-table th{text-align:left;font-size:11px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.03em;padding:4px 6px;border-bottom:1px solid #e5e7eb}.ps-table td{padding:5px 6px;border-bottom:1px solid #f3f4f6;vertical-align:top}.ps-table select{font-size:13px;width:100%;min-width:150px}.ps-table td:nth-child(2),.ps-table td:nth-child(3),.ps-table td:nth-child(4){width:160px}.ps-fixed-value{display:inline-block;padding:2px 0}.ps-fixed td{color:#6b7280}.ps-note{font-size:11px;color:#9ca3af;margin-top:2px}.ps-dash{color:#9ca3af}.xp-thumbs{display:flex;flex-wrap:wrap;gap:12px}.xp-thumb{position:relative;width:168px;padding:0;border:1px solid #d1d5db;background:#fff;cursor:zoom-in;box-shadow:0 1px 3px #0000001f;border-radius:2px;transition:opacity .15s,box-shadow .15s}.xp-thumb:hover{box-shadow:0 0 0 2px #2563eb}.xp-thumb img{display:block;width:100%;height:auto}.xp-thumb-blank{width:100%;aspect-ratio:1.414;background:repeating-linear-gradient(45deg,#f3f4f6,#f3f4f6 8px,#fff 8px 16px)}.xp-page-no{position:absolute;right:4px;bottom:4px;font-size:10px;background:#111827b3;color:#fff;padding:1px 5px;border-radius:3px}.xp-unit.off .xp-thumb{opacity:.3;filter:grayscale(1)}.xp-unit.off .xp-unit-head span:nth-child(2){color:#9ca3af;text-decoration:line-through}.xp-large{display:flex;flex-direction:column;gap:10px}.xp-large-bar{position:sticky;top:-12px;z-index:1;display:flex;align-items:center;gap:8px;background:#eef0f3;padding:6px 0}.xp-large-page{position:relative;align-self:flex-start;min-height:200px;box-shadow:0 2px 8px #0000002e;background:#fff}.xp-large-page canvas{display:block}.xp-large-page.off{opacity:.35}.xp-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:14px;color:#374151;padding:40px}.xp-spinner{width:28px;height:28px;border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:xp-spin .8s linear infinite}@keyframes xp-spin{to{transform:rotate(360deg)}}@media (max-width: 720px){.xp-side{display:none}}.user-avatar-btn{background:transparent;border:0;padding:0;cursor:pointer;display:inline-flex}.user-avatar{width:28px;height:28px;border-radius:50%;background:#334155;color:#fff;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.user-avatar-btn:hover .user-avatar{background:#475569}.rail-wrap{position:relative;display:flex;align-items:stretch;flex:0 0 auto;margin-right:12px}.tool-rail{width:68px;flex:0 0 68px;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0f172a0f;padding:6px 4px;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:2px;height:calc(100vh - var(--header-height) - 32px)}.rail-btn{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px 6px;border:0;border-radius:6px;background:transparent;color:#475569;cursor:pointer;font-size:10px;line-height:1.1;width:100%}.rail-btn span{white-space:nowrap}.rail-btn:hover{background:#f1f5f9;color:#0f172a}.rail-btn.active{background:#dbeafe;color:#1d4ed8}.rail-btn-sub{padding:4px 2px;color:#64748b;font-size:10px;margin:-2px 0 2px}.rail-sep{height:1px;background:#e5e7eb;margin:4px 6px}.rail-icon-wrap{position:relative;display:inline-flex}.rail-dot{position:absolute;right:-3px;top:-2px;width:7px;height:7px;border-radius:50%;border:1.5px solid #fff}.rail-dot.ok{background:#16a34a}.rail-count{position:absolute;right:-8px;top:-5px;min-width:14px;height:14px;padding:0 3px;box-sizing:border-box;border-radius:7px;background:#64748b;color:#fff;font-size:9px;font-style:normal;line-height:14px;text-align:center}.catalog-flyout{position:absolute;left:100%;top:0;margin-left:8px;width:300px;z-index:35;box-shadow:0 12px 32px #0f172a2e,0 2px 6px #0f172a14;padding:10px;display:flex;flex-direction:column}.catalog-flyout.pinned{position:static;margin-left:8px;width:280px;flex:0 0 280px;box-shadow:0 1px 3px #0f172a0f}.catalog-flyout-head{display:flex;align-items:center;gap:4px;margin:0 0 8px;font-size:13px;font-weight:600;color:#0f172a}.catalog-flyout-head>span{flex:1}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:#64748b;cursor:pointer}.icon-btn:hover{background:#f1f5f9;color:#0f172a}.icon-btn.active{background:#dbeafe;color:#1d4ed8}.placing-chip{position:absolute;top:10px;left:10px;z-index:30;display:flex;align-items:center;gap:4px;padding:3px 4px 3px 10px;background:#1e3a8a;color:#fff;border-radius:16px;font-size:12px;box-shadow:0 2px 8px #0f172a33;max-width:60%}.placing-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.placing-chip .icon-btn{width:22px;height:22px;color:#bfdbfe}.placing-chip .icon-btn:hover{background:#ffffff26;color:#fff}.plan-focus-ring{fill:none;stroke:#f43f5e;stroke-width:4;transform-box:fill-box;transform-origin:center;animation:plan-focus-pulse 1.2s ease-out 2 both}.plan-focus-ring-late{animation-delay:.4s}@keyframes plan-focus-pulse{0%{transform:scale(.35);opacity:1}to{transform:scale(1.6);opacity:0}}.review-badge{display:inline-block;margin-left:5px;min-width:16px;padding:0 4px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;box-sizing:border-box}.review-bubble{cursor:pointer}.review-bubble:hover circle{stroke-width:2.5}.rail-count.rail-count-alert{background:#dc2626}.pdf-viewer.review-tool-on{cursor:crosshair!important}
