/* Claves v2: ingeniería editorial, ciruela y cobre. */
#contractsModule{min-width:0;border:1px solid var(--border);border-radius:16px;overflow:clip;background:var(--surface,#fff)}
.apu-breadcrumb{display:flex;flex-direction:row;align-items:center;gap:7px;padding:12px 16px;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted);overflow-x:auto;white-space:nowrap}.apu-breadcrumb button{border:0;background:transparent;padding:4px 2px;color:var(--plum);font-size:12px}.apu-breadcrumb strong{color:var(--ink)}.apu-choices{padding:24px;min-height:230px}.apu-choices h2{font-size:22px;margin:0 0 8px}.apu-choices>div{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-top:20px}.apu-choices [data-choice]{display:flex;flex-direction:column;align-items:flex-start;white-space:normal;text-align:left;min-height:70px;width:100%;border-color:var(--border);background:transparent}.apu-choices [data-choice] strong{font-size:14px;color:var(--ink)}.apu-choices [data-choice] small{font-size:11px;color:var(--muted);margin-top:6px}[data-theme=dark] .apu-breadcrumb strong,[data-theme=dark] .apu-choices [data-choice] strong{color:#eee6f6}
.contracts-bar{display:flex;align-items:center;gap:10px;padding:14px;flex-wrap:wrap;border-bottom:1px solid var(--border)}
.contracts-selector{display:flex;align-items:center;gap:7px;min-width:0;flex:1 1 230px}.contracts-selector label{margin:0;font-size:11px;color:var(--muted)}
.contracts-selector .styled-select{flex:1;min-width:0}.contracts-selector select{width:100%;min-width:0}.contracts-selector button{padding:9px 12px}.contracts-selector>.styled-select{max-width:310px}
#contractsSettingsButton{width:40px;height:40px;padding:8px;border-color:var(--border);background:var(--select-surface);color:var(--select-text)}#contractsSettingsButton .icon{width:19px;height:19px}#contractsSettingsButton:hover{background:var(--select-hover)}
.contract-manage-work{border:1px solid var(--border);border-radius:12px;margin:15px 0;overflow:hidden;background:var(--select-surface)}.contract-manage-title,.contract-manage-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px}.contract-manage-title{border-bottom:1px solid var(--border)}.contract-manage-title h3,.contract-name-log h3{font-size:16px;margin:0;color:var(--ink)}.contract-manage-list>div+div{border-top:1px solid var(--border)}.contract-manage-list span{min-width:0;overflow-wrap:anywhere;font-size:13px}.contract-manage-list .muted{padding:14px 16px;margin:0}.contract-manage-work button{flex-shrink:0;padding:8px 11px;color:var(--select-text);background:var(--select-menu);border-color:var(--select-border)}.contract-name-log{margin-top:24px;border-top:1px solid var(--border);padding-top:17px}.contract-name-log p{margin:12px 0;padding:12px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.contract-name-log strong{font-size:12px;font-weight:600}.contract-name-log small{display:block;margin-top:5px;color:var(--muted);font-size:11px}
.contracts-legacy{margin:22px 0;border:1px solid var(--border);border-radius:12px;padding:0 16px;background:var(--select-surface)}.contracts-legacy summary{font-size:13px;font-weight:600;padding:14px 0;color:var(--select-text)}.contracts-legacy>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--border)}.contracts-legacy>div span{min-width:0;overflow-wrap:anywhere}.contracts-legacy>div strong{font-size:12px}.contracts-legacy>div small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.contracts-legacy>div button{flex-shrink:0;padding:8px 10px}
#contractsSearch{width:220px;min-width:120px;padding:11px;font-size:12px;margin:0}#contractsModule button{font-size:12px}#contractsMessage{margin:0;padding:0 16px}#contractsMessage:not(:empty){padding:12px 16px;border-bottom:1px solid var(--border)}
.contracts-table{overflow:auto;max-height:calc(100dvh - 230px);min-height:180px}.contracts-table table{width:100%;table-layout:auto}.contracts-table th{position:sticky;top:0;z-index:1}.contracts-table td{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px}.contracts-table td:first-child{width:18%}.contracts-table td:nth-child(2){width:56%}.contracts-table td:nth-child(3){width:10%}.contracts-price{font-family:var(--mono);text-align:right;white-space:nowrap!important;font-variant-numeric:tabular-nums}
.contracts-footer{padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;border-top:1px solid var(--border)}.contracts-footer>div{display:flex;align-items:center;gap:12px}
.contracts-editor{padding:22px}.contracts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.contracts-heading h2{font-size:22px;margin:0}.contracts-editor p{font-size:13px;line-height:1.6}.contracts-upload{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.contracts-upload label{flex:1;min-width:160px;margin:0}.contracts-upload input{max-width:100%;font-size:12px}.contracts-upload .styled-select{margin-top:8px}.contracts-editor fieldset{border:1px solid var(--border);border-radius:12px;padding:16px;margin:18px 0}.contracts-editor fieldset label{display:inline-flex;align-items:center;gap:8px;margin:12px 20px 0 0}.contracts-editor input[type=radio],.contracts-editor input[type=checkbox]{width:auto;margin:0;accent-color:var(--plum)}#contractsRepeatLabel{display:flex;align-items:center;gap:8px}#contractsPreview .contracts-table{max-height:350px}.contracts-version{padding:17px 0;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:14px}.contracts-version p{margin:7px 0}.contracts-version small{color:var(--muted)}
.contracts-paste-label{display:block;margin:16px 0 8px}.contracts-paste-label textarea{display:block;width:100%;min-height:210px;margin-top:8px;font:12px/1.6 var(--mono);white-space:pre;overflow:auto;resize:vertical}#contractsFormatHelp{margin:0 0 15px}.contracts-upload button{align-self:end}
.contracts-source{display:flex;flex-wrap:wrap;gap:4px 16px;margin:18px 0!important}.contracts-source legend{font-weight:700}.contracts-source label{margin:4px 0!important;cursor:pointer}#contractsCsvGroup,#contractsExcelGroup{margin:18px 0}#contractsCsvGroup label,#contractsExcelGroup label{display:block;margin-bottom:8px;font-weight:700}#contractsCsvFile,#contractsExcelFile{width:min(100%,560px);padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--select-surface);color:var(--ink)}.contracts-conflict-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.contracts-conflict-tools span{margin-right:auto}.contracts-conflicts{max-height:320px;overflow:auto;border:1px solid var(--border);border-radius:12px}.contracts-conflicts label{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid var(--border)}.contracts-conflicts label:last-child{border-bottom:0}.contracts-conflicts label span{min-width:0}.contracts-conflicts small{display:block;margin-top:4px;color:var(--muted)}.contracts-conflicts .styled-select{width:180px;flex:none}
.contracts-source input[type=radio]{accent-color:var(--plum)}.contracts-source label{padding:7px 10px;border:1px solid var(--border);border-radius:9px;background:var(--select-surface)}.contracts-source label:has(input:checked){border-color:var(--select-border);background:var(--select-active);font-weight:700}#contractsCsvFile::file-selector-button,#contractsExcelFile::file-selector-button{font:inherit;font-size:12px;color:var(--select-text);background:var(--select-menu);border:1px solid var(--select-border);border-radius:8px;padding:8px 11px;margin-right:12px;cursor:pointer}#contractsCsvFile::file-selector-button:hover,#contractsExcelFile::file-selector-button:hover{background:var(--select-hover)}@media(max-width:600px){.contracts-conflicts label{align-items:stretch;flex-direction:column}.contracts-conflicts .styled-select{width:100%}}
[data-theme=dark] #contractsModule{background:#251e2e}
@media(max-width:600px){.apu-breadcrumb{flex-wrap:wrap;white-space:normal;overflow-x:visible;gap:4px;padding:10px 12px}.apu-breadcrumb button{font-size:11px}.contracts-bar{padding:10px;gap:8px}.contracts-selector{flex-basis:100%}.contracts-selector>.styled-select{max-width:none}#contractsSearch{flex:1;width:140px}.contracts-editor{padding:14px}.contracts-heading{align-items:flex-start}.contracts-heading h2{font-size:18px}.contracts-table{max-height:65dvh}.contracts-table table,.contracts-table tbody{display:block;min-width:0;width:100%}.contracts-table thead{display:none}.contracts-table tbody tr{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:14px;border-bottom:1px solid var(--border)}.contracts-table td{display:block;width:auto!important;padding:0;border:0}.contracts-table td:nth-child(1){grid-column:1;grid-row:1}.contracts-table td:nth-child(2){grid-column:1/-1;grid-row:2;line-height:1.5}.contracts-table td:nth-child(3){grid-column:1;grid-row:3}.contracts-table td:nth-child(4){grid-column:2;grid-row:3;text-align:right}.contracts-table td:nth-child(3)::before,.contracts-table td:nth-child(4)::before{content:attr(data-label);display:block;color:var(--muted);font:10px var(--display);text-transform:uppercase;margin-bottom:3px}.contracts-footer{flex-wrap:wrap}.contracts-version{align-items:flex-start}.contracts-upload>*{max-width:100%}}
@media(min-width:821px){#content .table-wrap{max-height:calc(100dvh - 535px)}}
@media(max-width:600px){nav{scrollbar-width:none}nav::-webkit-scrollbar{display:none}}
:root{font-family:"Aptos","Segoe UI",sans-serif;color:#34303e;background:#f5f4f7;font-synthesis:none;--ink:#34303e;--plum:#655080;--deep:#433455;--lavender:#eee9f4;--copper:#b78060;--border:#e9e6ed;--muted:#83758d;--display:"Bahnschrift","Aptos Display","Segoe UI",sans-serif;--mono:"Cascadia Code",Consolas,monospace}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;font-size:14px}button{cursor:pointer;border:1px solid #e0dbe6;background:#fff;color:#65566f;border-radius:10px;padding:11px 16px;transition:background .18s,transform .18s,box-shadow .18s;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}button:hover{background:#f5f1fa;border-color:#c9bad9}button:active{transform:translateY(1px)}button:disabled{opacity:.35;cursor:not-allowed;transform:none}button.primary{background:var(--plum);border-color:var(--plum);color:white;font-weight:600;box-shadow:0 5px 12px #5a3e7720;padding:13px 21px}button.primary:hover{background:#514064;box-shadow:0 7px 18px #5a3e7730}.danger{color:#aa5b60;border-color:#efdfe1}.muted{color:var(--muted)}[hidden]{display:none!important}.svg-definitions{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,p{margin-top:0}h1,h2{font-family:var(--display);font-weight:600}h1{font-size:40px;letter-spacing:-1.6px;margin-bottom:10px;line-height:1.18}h2{font-size:27px;letter-spacing:-.7px}.mono{font-family:var(--mono)}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:inline-flex;width:43px;height:43px;align-items:center;justify-content:center;background:var(--plum);border-radius:13px;color:#fff;font-family:var(--display);font-size:35px;line-height:1;padding-bottom:6px;letter-spacing:-3px;flex-shrink:0}.brand-mark>span{color:#dfb596;font-size:31px;position:relative;top:3px}.brand strong{display:block;font-family:var(--display);font-size:29px;letter-spacing:-1px;line-height:1}.brand small{font-size:10px;color:#958b9e;letter-spacing:.5px;display:block;margin-top:6px}.brand-domain{font-size:12px;color:#918598}
aside{position:fixed;inset:0 auto 0 0;width:234px;background:#fff;padding:34px 18px 20px;display:flex;flex-direction:column;border-right:1px solid var(--border);z-index:10}aside .brand{padding:0 13px 48px}.workspace-label{font-size:9px;letter-spacing:1.5px;font-weight:650;color:#94869f;padding:0 17px 15px}nav{display:flex;flex-direction:column;gap:7px}nav button{border:0;background:transparent;color:#877891;text-align:left;padding:14px 16px;font-size:14px;justify-content:flex-start;gap:12px}nav button.active{background:#eee8f5;color:#654b80;font-weight:650}nav button:hover{background:#f5f2f8;color:#654b80}nav button.active .icon{stroke-width:2}.nav-count{margin-left:auto;font:10px var(--mono);padding:4px 6px;border-radius:5px;background:#f5f2fa;color:#8b719e}.active .nav-count{background:#ded3eb;color:#684d84}.sidebar-note{margin:40px 14px 24px;padding:22px 0 0;border-top:1px solid var(--border);color:#91819f}.sidebar-note .icon{width:25px;height:25px;margin-bottom:12px}.sidebar-note strong{display:block;color:#756482;font-size:12px;font-weight:600}.sidebar-note p{font-size:11px;line-height:1.7;margin:8px 0 0}.account{margin-top:auto;border-top:1px solid var(--border);padding:20px 9px 0;min-width:0}.account-profile{display:flex;gap:11px;align-items:center}.avatar{width:35px;height:35px;background:#eee8f4;color:#806a95;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:13px;font-weight:600;flex-shrink:0}#accountName{display:block;max-width:142px;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600}.account small{font-size:10px;color:#8e7f99;display:block;margin-top:3px}.account-actions{display:flex;gap:12px;margin-top:13px}.account-actions button{border:0;padding:7px 0;background:transparent;font-size:10px;color:#897494;gap:5px}.account-actions .icon{width:13px;height:13px}.account-actions button:hover{color:var(--plum)}
main{margin-left:234px;padding:0 40px 24px;max-width:1840px}.topbar{height:75px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#95849f;gap:15px}.topbar div{display:flex;gap:16px}.topbar strong{font-weight:500;color:#71637e}.topbar div>span{color:#c2b9ca}header{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:27px 0 33px}header .muted{font-size:14px;margin:0;line-height:1.6}.catalog-panel{background:white;border:1px solid var(--border);border-radius:16px;box-shadow:0 3px 16px #49385503;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:23px 25px 8px}.panel-heading>div{display:flex;align-items:center;gap:9px;font-size:13px}.panel-heading strong{font-weight:600}.panel-heading>span{font-size:11px;color:#94839e}.panel-dot{width:7px;height:7px;border-radius:50%;background:#b38dca}.count-chip{font:10px var(--mono);color:#806092;background:#f2edf6;border-radius:5px;padding:4px 7px}.toolbar{display:flex;gap:10px;padding:17px 24px 24px}.search-wrap{position:relative;flex:1;min-width:150px}.search-wrap .icon{position:absolute;left:14px;top:13px;width:17px;height:17px;color:#aaa0b6}.toolbar input{padding-left:40px;background:#faf9fc;width:100%}.toolbar select{max-width:225px;font-size:12px;background:#faf9fc;color:#7c7288}.toolbar button{font-size:12px;color:#8e829b;padding:10px 13px}.toolbar button .icon{width:16px;height:16px}input,select,textarea{width:100%;border:1px solid #e5dfed;border-radius:9px;background:#fcfbfd;color:var(--ink);padding:13px 14px;transition:border-color .18s,box-shadow .18s}input::placeholder,textarea::placeholder{color:#9a8ba5;font-size:12px}textarea{min-height:130px;resize:vertical;line-height:1.65}input:focus,textarea:focus,select:focus{outline:none;border-color:#9b84b4;box-shadow:0 0 0 3px #9b84b414;background:white}button:focus-visible,summary:focus-visible{outline:3px solid #9b84b470;outline-offset:2px}label{display:block;font-size:12px;font-weight:600;color:#73657f;margin:22px 0 0}label input,label textarea,label select{display:block;margin-top:9px;font-weight:400}
.table-wrap{overflow:auto;max-height:calc(100dvh - 390px);min-height:190px;scrollbar-width:thin;scrollbar-color:#ddd4e6 transparent}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}th{position:sticky;top:0;z-index:1;text-align:left;background:#faf9fc;font-size:10px;letter-spacing:.6px;font-weight:550;text-transform:uppercase;color:#907d9e;padding:15px 20px;border-top:1px solid #efebf3;border-bottom:1px solid #efebf3;white-space:nowrap}td{padding:17px 20px;border-bottom:1px solid #f1eef5;vertical-align:middle}tbody tr{transition:background .18s}tbody tr:hover{background:#fbf9fd}tbody tr:last-child td{border-bottom:0}.code{font-family:var(--mono);font-size:12px;overflow-wrap:anywhere;min-width:164px;max-width:225px;color:#6c507f}.code-token{background:#f4eef9;border:1px solid #eee5f5;border-radius:5px;padding:6px 8px;display:inline-block;line-height:1.5}.description{min-width:260px;line-height:1.65;color:#6b6276;font-size:13px}.origin{font-size:10px;color:#9b86a6;min-width:118px}.origin-tag{color:#9f714f;font-size:10px;background:#fbf2e9;border:1px solid #f3e4d7;display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px}.origin-tag::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.origin-tag.electrical{color:#8070a0;background:#f0edf8;border-color:#e8e1f3}.origin small{display:block;margin:5px 0 0 1px;font-size:10px;color:#9e8baa}.row-actions,.move{display:flex;align-items:center;gap:4px}.icon-button{padding:7px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border-color:transparent;color:#9a84aa;min-width:30px;min-height:30px;border-radius:7px}.icon-button:hover{background:#ede5f6;color:#75578f;border-color:transparent}.icon-button.danger{color:#ad808b}.icon-button.danger:hover{background:#fceff1;color:#b26473}.icon-button svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}.move span{min-width:25px;font-size:10px;color:#a691b4;font-family:var(--mono)}.move .icon-button{min-width:22px;min-height:26px;padding:4px;color:#b39bc3}.move .icon-button:hover{color:#715385}.move .icon-button svg{width:12px;height:12px}footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 24px;color:#937d9f;font-size:11px;border-top:1px solid var(--border)}.pagination{display:flex;gap:14px;align-items:center}.pagination button{font-size:10px;padding:8px 12px;border-color:#eae4ef;color:#887795}.pagination span{font-family:var(--mono);font-size:10px;color:#8d759f}.danger-zone{margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:10px;color:#96849f}.danger-zone>span{display:flex;align-items:center;gap:6px}.danger-zone .icon{width:13px;height:13px}.danger-zone button{font-size:10px;padding:8px 12px;background:transparent;border-color:#e7dce2}.page-footnote{margin-top:25px;font-size:8px;letter-spacing:1px;color:#a89bb2;display:flex;justify-content:space-between}.footnote-separator{margin:0 8px}.page-footnote>span:last-child{letter-spacing:.1px;font-size:10px}
.boot{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:15px;color:var(--muted);font-size:14px}#notice:not(:empty){padding:14px 18px;background:#eee8f6;color:#75538b;border-radius:10px;margin-bottom:20px;font-size:13px}#notice.error{background:#fff0f1;color:#a22030}.error{color:#a65461;font-size:13px;margin-top:14px}.error:empty{margin:0}.empty{padding:70px 24px;text-align:center;color:#a091ae;font-size:13px;line-height:1.6}.empty::before{content:'—';display:block;font-size:32px;line-height:1;margin-bottom:18px;color:#d3c5df}.batch{padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;background:#faf7fd;border-bottom:1px solid #eae2f1}.batch button{font-size:11px}.history-entry{position:relative;border-left:1px solid #e8dfef;margin:0 28px 0 32px;padding:20px 0 20px 24px;font-size:12px}.history-entry::before{content:'';position:absolute;left:-5px;top:26px;background:#b19cc4;width:9px;height:9px;border-radius:50%;border:2px solid white}.history-entry h3{font-size:13px;margin:0 0 7px;color:#756083;font-weight:600}.history-entry .muted{font-size:10px}.history-entry summary,summary{cursor:pointer;color:#9270a9;font-size:11px;padding:12px 0}.snapshot{white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f5fb;border:1px solid #eee7f5;border-radius:8px;padding:16px;line-height:1.7;font-family:var(--mono);font-size:11px;max-height:280px;overflow:auto}#content>p,#content>details{margin:16px 25px;font-size:12px}dialog{border:1px solid #eee5f5;border-radius:20px;box-shadow:0 30px 100px #42315130;padding:30px;width:570px;max-width:calc(100% - 28px);max-height:90dvh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#372e465c;backdrop-filter:blur(5px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--border)}.modal-head h2{margin:0;font-size:26px}.modal-head button{border:0;color:#b0a0ba;padding:7px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}.modal-actions button{font-size:12px}#modalBody>p{font-size:13px;line-height:1.7;margin-top:20px}.ref{font-size:11px;line-height:1.6;overflow-wrap:anywhere;color:var(--muted);margin-top:17px}
.login-screen{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);min-height:100dvh;padding:16px;gap:16px;background:#faf9fc}.login-brand{position:relative;overflow:hidden;background:#eee8f4;border-radius:20px;padding:43px 52px 25px;display:flex;flex-direction:column;min-height:calc(100dvh - 32px)}.login-brand .brand-mark{width:37px;height:37px;font-size:31px;border-radius:11px}.login-brand .brand strong{font-size:26px}.login-brand .brand small{color:#9e8baa}.login-story{position:relative;z-index:2;margin-top:62px}.login-story h1{font-size:clamp(46px,4.8vw,74px);letter-spacing:-2.8px;line-height:1.06;color:#4f3e62;font-weight:500;margin-bottom:23px}.login-story h1 em{font-style:normal;color:#aa8266}.login-story p{font-size:14px;color:#8c749b;line-height:1.85}.engineering-art{margin:auto -35px 0;position:relative;min-height:190px}.pipe-art{width:100%;max-height:330px;display:block}.art-label{display:flex;align-items:center;gap:10px;font-size:9px;color:#927da3;position:absolute;bottom:22px;left:35px;right:35px;letter-spacing:.5px}.status-dot{height:5px;width:5px;background:#ad8ac2;border-radius:50%}.art-line{height:1px;flex:1;background:#dbd0e5;margin:0 10px}.login-bottom{margin-top:22px;padding-top:18px;border-top:1px solid #dfd5e7;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#937da3;font-size:8px;letter-spacing:.9px}.login-bottom>span:last-child{letter-spacing:0;font-size:9px}.login-form{display:flex;flex-direction:column;padding:30px 55px;color:#514360}.login-top{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:10px;color:#9681a4}.login-top .icon{width:13px;height:13px}.login-form form{width:340px;max-width:100%;margin:auto;align-self:center;padding:36px 0}.form-symbol{display:flex;align-items:center;justify-content:center;width:41px;height:41px;background:#f0ebf5;border:1px solid #e8dff0;border-radius:12px;margin-bottom:22px;color:#9b7db4}.form-symbol .icon{width:18px;height:18px}.login-form h2{font-size:42px;line-height:1.12;letter-spacing:-1.3px;margin-bottom:17px;font-weight:500}.login-form .muted{font-size:12px;line-height:1.65;color:#91809e;margin-bottom:28px}.login-form label{font-size:12px;margin-top:22px;color:#806a92}.login-form input{padding:14px 15px;background:white;border-color:#e8e0ee;font-size:14px}.login-form input::placeholder{font-size:12px;color:#a18eaf}.login-form .primary{width:100%;margin-top:25px;padding:15px 20px;font-size:13px;justify-content:space-between;border-radius:9px}.login-form .primary .icon{width:16px;height:16px}.login-help{display:flex;align-items:center;justify-content:center;gap:7px;color:#9a84a8;font-size:10px;margin:21px 0 0}.login-help .icon{width:13px;height:13px}.login-footer{display:flex;justify-content:space-between;color:#a38eb2;font-size:9px}.login-footer>span{font-size:8px}
@media(min-width:1600px){main{padding-left:60px;padding-right:60px}.login-brand{padding:52px 72px 30px}.login-story{margin-top:80px}.pipe-art{max-height:420px}.login-form form{width:380px}.login-form h2{font-size:50px}}
@media(max-width:1150px){aside{width:205px;padding-left:12px;padding-right:12px}aside .brand{padding-left:13px}.brand strong{font-size:25px}nav button{padding:13px 12px;gap:9px}main{margin-left:205px;padding:0 24px 24px}h1{font-size:35px}.panel-heading{padding-left:20px;padding-right:20px}.toolbar{padding-left:20px;padding-right:20px}.toolbar select{max-width:180px}.toolbar button span{display:none}td{padding:16px 13px}.description{min-width:230px}.login-brand{padding:36px}.login-form{padding:25px 30px}.login-story h1{font-size:55px}.login-story{margin-top:60px}.engineering-art{margin-left:-25px;margin-right:-25px}.login-bottom>span:last-child{display:none}}
@media(max-width:820px){aside{width:176px;padding:28px 10px 18px}aside .brand{padding:0 7px 35px;gap:8px}aside .brand-mark{width:34px;height:34px;font-size:29px;border-radius:10px}aside .brand strong{font-size:23px}aside .brand small{font-size:8px}.workspace-label{font-size:8px;padding:0 8px 12px;letter-spacing:.8px}nav button{padding:13px 10px;font-size:12px}.nav-count{font-size:8px;padding:3px 4px}nav .icon{width:17px;height:17px}.sidebar-note{margin:30px 8px 20px}.sidebar-note p{font-size:10px}.sidebar-note strong{font-size:11px}.account{padding:16px 5px 0}.account-profile{gap:8px}#accountName{max-width:95px;font-size:10px}.avatar{width:29px;height:29px}.account-actions{gap:9px}.account-actions button{font-size:9px}main{margin-left:176px;padding:0 20px 20px}h1{font-size:31px}header{gap:15px;margin-top:20px}header .primary{font-size:12px;padding:12px 14px}.panel-heading>span{display:none}.toolbar{flex-wrap:wrap;padding:15px}.search-wrap{flex-basis:100%}.toolbar select{flex:1;max-width:none}.toolbar button span{display:inline}.topbar{height:60px}.table-wrap{max-height:calc(100dvh - 410px)}.page-footnote>span:last-child{display:none}.login-story h1{font-size:43px}.login-brand{padding:30px}.login-story p{font-size:12px}.login-form h2{font-size:36px}.login-form{padding:25px}.login-screen{gap:0;padding:12px}.art-label{font-size:8px}}
@media(max-width:600px){aside{position:static;width:100%;padding:17px 18px 0;display:grid;grid-template-columns:1fr auto;border-right:0;border-bottom:1px solid var(--border)}aside .brand{padding:0 0 18px}.workspace-label,.sidebar-note{display:none}.account{grid-column:2;grid-row:1;margin:0;padding:0 0 18px;border:0;display:flex;gap:6px;align-items:center}.account-profile{gap:0}.account-profile>div{display:none}.avatar{width:30px;height:30px;font-size:10px}.account-actions{margin:0;gap:4px}.account-actions button{padding:7px}.account-actions button span{display:none}.account-actions .icon{width:16px;height:16px}nav{grid-column:1/-1;flex-direction:row;gap:5px;padding-bottom:12px;overflow-x:auto}nav button{padding:10px 11px;font-size:11px;border-radius:8px;gap:6px;flex-shrink:0}nav .icon{width:14px;height:14px}.nav-count{font-size:8px;padding:3px 4px;margin-left:0}.brand-domain{display:none}main{margin:0;padding:0 15px 20px}.topbar{height:42px;font-size:9px}.topbar div{gap:11px}header{margin:14px 0 23px;gap:12px;align-items:center}h1{font-size:27px;letter-spacing:-1px;margin-bottom:7px}header .muted{font-size:11px}header .primary{font-size:10px;padding:11px 13px;border-radius:9px}.catalog-panel{border-radius:13px}.panel-heading{padding:18px 16px 0}.panel-heading>div{font-size:11px;gap:8px}.count-chip{font-size:9px}.toolbar{padding:15px 16px 17px;gap:8px}.toolbar input,.toolbar select{font-size:12px;padding-top:12px;padding-bottom:12px}.toolbar button{font-size:11px}.table-wrap{max-height:65dvh;min-height:160px;border-top:1px solid var(--border)}table,tbody,tr,td{display:block;width:100%}thead{display:none}tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:18px 16px;border-bottom:1px solid #eee8f4}td{padding:0;border:0}.code{grid-column:1/-1;grid-row:1;max-width:100%;font-size:12px;min-width:0}.code-token{padding:5px 8px}.description{grid-column:1/-1;grid-row:2;min-width:0;font-size:13px;line-height:1.7}.origin{grid-column:1/-1;grid-row:3;min-width:0;display:flex;gap:8px;align-items:center}.origin small{display:inline;font-size:10px;margin:0}.order-cell{grid-row:4;align-self:center}.actions-cell{grid-row:4;justify-self:end}.row-actions{justify-content:flex-end}.icon-button{min-width:36px;min-height:36px;background:#faf7fc}.move .icon-button{min-width:30px;min-height:32px}.move span{font-size:10px}.row-actions .icon-button svg{width:16px;height:16px}footer{padding:14px 16px;gap:12px;font-size:10px;flex-wrap:wrap}.pagination{gap:8px;margin-left:auto}.pagination button{font-size:10px;padding:8px 10px}.pagination span{font-size:10px}.danger-zone{align-items:center;font-size:9px;margin-top:14px;gap:10px}.danger-zone>span{max-width:205px;line-height:1.6}.danger-zone button{font-size:9px;padding:8px 10px}.page-footnote{margin-top:20px;font-size:7px}.empty{padding:50px 20px}.history-entry{margin-left:24px;margin-right:18px;padding-left:19px}.batch{padding:12px 16px;align-items:flex-start;flex-direction:column;font-size:11px}dialog{padding:24px 20px;border-radius:17px}.modal-head h2{font-size:24px}.modal-actions{gap:8px}.modal-actions button{font-size:11px;padding:12px}.modal-actions .primary{padding:12px 16px}
.login-screen{display:flex;flex-direction:column;gap:0;padding:0;background:#faf9fc}.login-brand{border-radius:0 0 25px 25px;padding:24px;min-height:0;display:grid;grid-template-columns:1fr 115px;align-items:center;position:relative}.login-brand .brand{grid-column:1/-1;margin-bottom:32px}.login-brand .brand-mark{width:31px;height:31px;font-size:27px;border-radius:9px}.login-brand .brand strong{font-size:23px}.login-brand .brand small{font-size:8px}.login-story{margin:0;grid-column:1;z-index:2}.login-story h1{font-size:36px;letter-spacing:-1.6px;margin-bottom:0}.login-story p{display:none}.engineering-art{grid-row:2;grid-column:2;margin:0 -30px;min-height:0;opacity:.7;align-self:end}.pipe-art{width:170px;max-width:none;transform:rotate(-5deg)}.art-label,.login-bottom{display:none}.login-form{padding:26px 28px 24px;display:flex;gap:0;flex:1}.login-top{display:none}.login-form form{width:100%;max-width:380px;margin:0 auto;padding:0}.form-symbol{display:none}.login-form h2{font-size:31px;margin-bottom:9px;letter-spacing:-.8px}.login-form h2 br{display:none}.login-form .muted{margin-bottom:23px;font-size:12px}.login-form label{font-size:12px;margin-top:18px}.login-form input{padding:14px;font-size:16px}.login-form input::placeholder{font-size:12px}.login-form .primary{margin-top:23px;padding:15px 17px;font-size:13px}.login-help{font-size:10px;margin-top:20px}.login-footer{margin-top:35px;font-size:8px}.login-footer span{font-size:8px}}
@media(max-width:360px){aside{padding-left:12px;padding-right:12px}nav{gap:2px}nav button{padding:9px 8px;font-size:10px}.nav-count{display:none}header h1{font-size:23px}header .primary{font-size:9px;padding:10px}main{padding-left:12px;padding-right:12px}.login-brand{padding:22px}.login-story h1{font-size:31px}.login-form{padding:25px 23px}.pagination{gap:5px}.pagination button{font-size:9px;padding:7px 8px}}
@media(prefers-reduced-motion:no-preference){.login-story,.login-form form,header,.catalog-panel{animation:arrive .5s ease both}.login-form form{animation-delay:.1s}.catalog-panel{animation-delay:.06s}@keyframes arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* v1.2.0 — catalogue tabs, original Excel comparison, and persistent dark theme. */
.catalog-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:-8px 0 20px;padding:3px}
.catalog-tabs button{border-color:transparent;background:transparent;color:#796888;padding:12px 18px;font-size:13px}
.catalog-tabs button[aria-selected="true"]{background:#e9e0f2;color:#61417e;border-color:#dbcee7;font-weight:600}
.catalog-tabs button[aria-pressed="true"]{background:#e9e0f2;color:#61417e;border-color:#dbcee7;font-weight:600}
[data-theme="dark"] .catalog-tabs button[aria-pressed="true"]{background:#3b2c4a;color:#ebd4fe;border-color:#76548c}
.table-wrap .sheet-section td{background:#f4f0f7;font-weight:600;color:#705782}
[data-theme="dark"] .table-wrap .sheet-section td{background:#2e2338;color:#d3b6e6}
.table-wrap .sheet-section small{display:block;font-size:11px;font-weight:400;margin-top:5px;opacity:.75}
.specialty-dot{width:6px;height:6px;border-radius:50%;background:#b78060}.specialty-dot.electrical{background:#9278be}
.theme-toggle{font-size:11px;padding:9px 13px;background:transparent;flex-shrink:0}
.theme-toggle::before{content:'◐';font-size:16px;line-height:1}
.login-top{gap:12px}.login-top .theme-toggle{margin-right:auto}
.duplicate-controls{margin:0 0 20px}
.duplicate-modes{display:flex;gap:8px;flex-wrap:wrap}.duplicate-modes button{font-size:12px}
.duplicate-modes button[aria-pressed="true"]{color:#64467e;background:#eee6f5;border-color:#cbb9dc}
.duplicate-controls p{font-size:12px;line-height:1.65;color:#75667f;margin:12px 0 0;max-width:1000px}
.spreadsheet-wrap{overflow:auto;max-height:65dvh;scrollbar-width:thin}
table.spreadsheet-table{min-width:1040px;width:100%;font-size:12px;table-layout:fixed;border-collapse:separate}
.spreadsheet-table th{position:sticky;top:0;padding:12px;white-space:normal;border-right:1px solid var(--border);text-transform:none;font-size:11px}
.spreadsheet-table thead tr:first-child th{height:40px;z-index:3}
.spreadsheet-table thead tr:nth-child(2) th{top:40px;z-index:2}
.spreadsheet-table td{padding:12px;border-right:1px solid var(--border);vertical-align:top;overflow-wrap:anywhere;line-height:1.65}
.spreadsheet-table th:first-child[rowspan]{width:50px}
.spreadsheet-table th.mechanical-head{width:550px}.spreadsheet-table th.electrical-head{width:350px}
.mechanical-head{background:#f4e7db!important;color:#7f5237!important}
.electrical-head{background:#eae3f5!important;color:#604481!important}
.sheet-code{font-family:var(--mono);font-size:11px;color:#675175}.sheet-description{color:#595263}
.spreadsheet-table .sheet-section td{background:#f4f0f7;font-weight:600;color:#705782}
.source-row{color:#8e7d9a;font:10px var(--mono)}
.duplicate-groups{padding:0 22px 20px;max-height:66dvh;overflow:auto}
.duplicate-group{border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:18px}
.duplicate-group-title{display:flex;justify-content:space-between;gap:15px;padding:14px 16px;background:#f8f5fb;font-family:var(--mono);font-size:12px}
.duplicate-group-title span{font-family:inherit;font-size:11px;color:#887594}
.duplicate-sides{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.duplicate-sides>section+section{border-left:1px solid var(--border)}
.duplicate-sides h3{font:600 12px var(--display);padding:10px 16px;margin:0}
.duplicate-record{padding:16px;border-top:1px solid var(--border)}
.duplicate-record>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.duplicate-record .code-token{font:11px var(--mono);overflow-wrap:anywhere}
.duplicate-record p{font-size:12px;line-height:1.7;margin:12px 0 8px;overflow-wrap:anywhere}
.duplicate-record small{font-size:10px;color:#887594}
.duplicate-record dl{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;font-size:10px;margin:12px 0 0}
.duplicate-record dt{color:#887594}.duplicate-record dd{margin:0;overflow-wrap:anywhere}
.no-counterpart{padding:20px 16px;font-size:12px;color:#89768f;line-height:1.7}
#shell.duplicates-view main{max-width:none}
@media(min-width:821px){#content .table-wrap{max-height:calc(100dvh - 585px)}}
@media(max-width:600px){
 .catalog-tabs{gap:1px;margin:0 0 15px}.catalog-tabs button{font-size:11px;padding:10px 12px}
 .theme-toggle{font-size:10px;padding:6px 9px}.topbar{height:48px}.topbar div{gap:7px}
 .login-top{display:flex;margin-bottom:20px}.login-top>.icon,.login-top{font-size:0}.login-top .theme-toggle{font-size:11px;margin-left:auto;margin-right:0}
 .duplicate-modes{gap:6px}.duplicate-modes button{font-size:10px;padding:10px}
 .duplicate-controls p{font-size:11px}.duplicate-groups{padding:0 12px 12px}
 .duplicate-sides{grid-template-columns:1fr}.duplicate-sides>section+section{border-left:0;border-top:1px solid var(--border)}
 table.spreadsheet-table{display:table;min-width:1040px}
 .spreadsheet-table thead{display:table-header-group}.spreadsheet-table tbody{display:table-row-group}
 .spreadsheet-table tr{display:table-row;width:auto}.spreadsheet-table td,.spreadsheet-table th{display:table-cell;width:auto}
 .spreadsheet-table tr{border:0}.spreadsheet-table td{padding:12px}
 .duplicates-view footer #total{line-height:1.7}
}
:root[data-theme="dark"]{color-scheme:dark;--ink:#eee7f4;--plum:#ad89cf;--deep:#d8bfee;--lavender:#30243f;--copper:#dca47d;--border:#3a3046;--muted:#b4a3c2;color:var(--ink);background:#19151f}
[data-theme="dark"] body{background:#19151f;color:var(--ink)}
[data-theme="dark"] aside,[data-theme="dark"] .catalog-panel,[data-theme="dark"] dialog{background:#231d2b;color:var(--ink);border-color:var(--border)}
[data-theme="dark"] button{background:#2d2537;color:#ddd0e7;border-color:#4b3c5a}
[data-theme="dark"] button:hover{background:#3a2d48;color:#f5edff;border-color:#9875b5}
[data-theme="dark"] button.primary{background:#ac88cc;color:#1e1528;border-color:#ac88cc}
[data-theme="dark"] button.primary:hover{background:#c5a0e6}
[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select,[data-theme="dark"] .toolbar input,[data-theme="dark"] .toolbar select,[data-theme="dark"] .login-form input{background:#19151f;color:#eee7f4;border-color:#534260}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#aa96b9}
[data-theme="dark"] input:focus,[data-theme="dark"] textarea:focus,[data-theme="dark"] select:focus{background:#261e30;border-color:#c7a0e3}
[data-theme="dark"] nav button{background:transparent;color:#c4b0d3}
[data-theme="dark"] nav button.active,[data-theme="dark"] .catalog-tabs button[aria-selected="true"],[data-theme="dark"] .duplicate-modes button[aria-pressed="true"]{background:#3b2c4a;color:#ebd4fe;border-color:#76548c}
[data-theme="dark"] .catalog-tabs button{background:transparent;color:#cdb8dd}
[data-theme="dark"] .nav-count,[data-theme="dark"] .count-chip,[data-theme="dark"] .avatar{background:#433151;color:#e3c5f7}
[data-theme="dark"] .code-token{background:#35263f;color:#e0baf5;border-color:#513761}
[data-theme="dark"] th{background:#2b2235;color:#cdb7dc;border-color:var(--border)}
[data-theme="dark"] td{border-color:#352b40}
[data-theme="dark"] tbody tr{border-color:#352b40}
[data-theme="dark"] tbody tr:hover{background:#2e2438}
[data-theme="dark"] .description,[data-theme="dark"] .sheet-description{color:#ddd3e5}
[data-theme="dark"] .sheet-code{color:#dabeea}
[data-theme="dark"] .icon-button,[data-theme="dark"] .move .icon-button{background:transparent;color:#b99bce;border-color:transparent}
[data-theme="dark"] .icon-button:hover{background:#453050}
[data-theme="dark"] .danger,[data-theme="dark"] .icon-button.danger{color:#f0a2ac}
[data-theme="dark"] .origin-tag,[data-theme="dark"] .mechanical-head{background:#432f24!important;color:#f1bb95!important;border-color:#67462f}
[data-theme="dark"] .origin-tag.electrical,[data-theme="dark"] .electrical-head{background:#362948!important;color:#d6b9f4!important;border-color:#58406f}
[data-theme="dark"] .duplicate-group-title,[data-theme="dark"] .spreadsheet-table .sheet-section td,[data-theme="dark"] .snapshot,[data-theme="dark"] .batch{background:#2e2338;color:#d3b6e6;border-color:var(--border)}
[data-theme="dark"] .muted,[data-theme="dark"] label,[data-theme="dark"] .origin,[data-theme="dark"] .origin small,[data-theme="dark"] .panel-heading>span,[data-theme="dark"] footer,[data-theme="dark"] .pagination span,[data-theme="dark"] .duplicate-controls p,[data-theme="dark"] .no-counterpart,[data-theme="dark"] .duplicate-record small,[data-theme="dark"] .duplicate-record dt,[data-theme="dark"] .source-row,[data-theme="dark"] .move span{color:#b8a5c7}
[data-theme="dark"] .topbar,[data-theme="dark"] .topbar strong,[data-theme="dark"] .sidebar-note strong,[data-theme="dark"] .sidebar-note p,[data-theme="dark"] .account-actions button,[data-theme="dark"] .account small,[data-theme="dark"] .brand small,[data-theme="dark"] .history-entry h3,[data-theme="dark"] .history-entry summary{color:#bfabcd}
[data-theme="dark"] .sidebar-note,[data-theme="dark"] .account,[data-theme="dark"] .modal-head,[data-theme="dark"] .modal-actions{border-color:var(--border)}
[data-theme="dark"] .history-entry{border-color:#665076}
[data-theme="dark"] .history-entry::before{border-color:#231d2b;background:#c09eda}
[data-theme="dark"] #notice:not(:empty){background:#3b294a;color:#ebccff}
[data-theme="dark"] #notice.error,[data-theme="dark"] .error{background:#402530;color:#ffb9c2}
[data-theme="dark"] .login-screen,[data-theme="dark"] .login-form{background:#19151f;color:#eee7f4}
[data-theme="dark"] .login-brand{background:#30243f}
[data-theme="dark"] .login-story h1{color:#ebdaf7}
[data-theme="dark"] .login-story h1 em{color:#e5b38d}
[data-theme="dark"] .login-story p,[data-theme="dark"] .login-form .muted,[data-theme="dark"] .login-form label,[data-theme="dark"] .login-help,[data-theme="dark"] .login-footer,[data-theme="dark"] .login-top,[data-theme="dark"] .login-bottom,[data-theme="dark"] .art-label{color:#c2abcF}
[data-theme="dark"] .form-symbol{background:#35273f;color:#d9b6f3;border-color:#523b62}
[data-theme="dark"] .login-bottom{border-color:#5a446b}
[data-theme="dark"] .art-line{background:#634d72}
/* v1.2.1: more working space, without removing source data. */
#shell main{max-width:none;padding-left:24px;padding-right:24px}
#content .table-wrap,#content .spreadsheet-wrap,#content .duplicate-groups{max-height:78dvh;min-height:420px}
.spreadsheet-table .duplicate-actions{width:138px;position:sticky;right:0;background:var(--paper,#fff);border-left:1px solid var(--border);z-index:1}
.spreadsheet-table th.duplicate-actions{z-index:4}.spreadsheet-table .duplicate-actions .row-actions{justify-content:center}
[data-theme="dark"] .spreadsheet-table .duplicate-actions{background:#231d2b}
dialog.duplicate-dialog{width:840px}.duplicate-form{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.duplicate-form label{min-width:0}.duplicate-form textarea{resize:vertical;min-height:66px}
.duplicate-history-pages{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;font-size:12px}
@media(max-width:600px){.duplicate-form{grid-template-columns:1fr}.spreadsheet-table .duplicate-actions{position:static;width:138px}}
@media(max-width:600px){#shell main{padding-left:12px;padding-right:12px}#content .table-wrap,#content .spreadsheet-wrap,#content .duplicate-groups{max-height:78dvh;min-height:320px}}
/* Original Excel order: one header row and unmerged source cells. */
.excel-original th:first-child{width:50px}
.excel-original th:nth-child(n+2):nth-child(-n+5){width:14%}
.excel-original th:nth-child(n+6){width:20%}
.excel-original thead tr:first-child th{top:0;height:auto}
/* v13: small line symbols, edited only from the record form. */
.symbol-cell{min-width:150px;width:160px;text-align:center;vertical-align:middle}
.symbol-thumbnail{height:56px;width:84px;margin:0 auto 4px;color:var(--ink)}
.symbol-svg{display:block;width:100%;height:100%;overflow:hidden;font-family:"Segoe UI Symbol","Segoe UI",sans-serif}
.symbol-caption{display:block;font-size:11px;line-height:1.4;white-space:normal;max-width:165px;margin:auto;overflow-wrap:anywhere}
.symbol-state{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.symbol-empty{display:flex;height:100%;align-items:center;justify-content:center;color:var(--muted)}
.record-symbol{margin-top:24px;padding-top:22px;border-top:1px solid var(--border)}
.symbol-field-label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:10px}
.record-symbol-body{display:grid;grid-template-columns:140px 1fr;gap:24px;align-items:center}
#recordSymbolPreview{text-align:center;padding:12px;border:1px solid var(--border);border-radius:10px}
.symbol-help{font-size:11px;color:var(--muted);line-height:1.6;margin:10px 0 0}
.symbol-eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin:0 0 6px}
.symbol-editor-intro{font-size:12px;line-height:1.6;margin:18px 0}
.symbol-editor-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,1.1fr);gap:28px;align-items:start}
.symbol-tools{min-width:0}.symbol-tools>label:first-child{margin-top:0}
.symbol-tools label{margin-top:14px}.symbol-tools input,.symbol-tools select{padding:10px 12px;margin-top:6px}
.symbol-tool-group{margin-top:20px}.symbol-buttons{display:flex;gap:7px;flex-wrap:wrap}
.symbol-buttons button{padding:9px 11px;font-size:12px;min-height:36px}
.symbol-characters{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.symbol-characters button{padding:0;width:31px;height:32px;border-radius:6px;font-size:18px;font-family:"Segoe UI Symbol","Segoe UI",sans-serif}
.symbol-properties,.symbol-settings{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin-bottom:12px}
.symbol-properties:empty{display:none}
.symbol-preview-section{position:sticky;top:0;min-width:0;padding-top:4px}
.symbol-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;margin-bottom:14px}
.symbol-preview-heading span{color:var(--muted);font:10px var(--mono)}
.symbol-canvas{border:1px solid var(--border);border-radius:12px;aspect-ratio:3/2;background-color:#fff;background-image:linear-gradient(#8f849817 1px,transparent 1px),linear-gradient(90deg,#8f849817 1px,transparent 1px);background-size:24px 24px;color:#302637;overflow:hidden}
.symbol-canvas svg{cursor:crosshair}.symbol-canvas [data-element]{pointer-events:all;cursor:pointer}
.symbol-canvas .symbol-selected{color:#8953c7;stroke:currentColor;filter:drop-shadow(0 0 1px #aa72e5)}
.symbol-mini-preview{margin-top:24px;padding:16px;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;gap:20px;justify-content:space-between;font-size:11px;color:var(--muted)}
.symbol-mini-preview>div{width:90px;height:60px;flex-shrink:0;color:var(--ink)}
.symbol-editor-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}
.symbol-history-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.symbol-history-pair>div,.symbol-history-preview{text-align:center;border:1px solid var(--border);border-radius:9px;padding:14px}
.symbol-history-pair strong{display:block;font-size:11px;margin-bottom:10px}
[data-theme="dark"] .symbol-canvas{background-color:#18131e;background-image:linear-gradient(#c7abd317 1px,transparent 1px),linear-gradient(90deg,#c7abd317 1px,transparent 1px);color:#ede4f4}
[data-theme="dark"] .symbol-canvas .symbol-selected{color:#d0a3f5}
@media(max-width:700px){.symbol-editor-grid{grid-template-columns:1fr;gap:24px}.symbol-preview-section{position:static}.symbol-editor-footer>.symbol-buttons:last-child{margin-left:auto}.record-symbol-body{grid-template-columns:105px 1fr;gap:14px}}
/* New catalogs retain both keys and a readable scrolling table on phones. */
@media(max-width:600px){.current-table table{display:table;min-width:900px}.current-table thead{display:table-header-group}.current-table tbody{display:table-row-group}.current-table tr{display:table-row;padding:0}.current-table th,.current-table td{display:table-cell;width:auto;padding:12px;vertical-align:middle}.current-table .description{min-width:250px}.current-table .code{min-width:145px}.current-table .symbol-cell{min-width:145px}.current-table .symbol-caption{max-width:135px}}
/* v15: catalog-first workspace; compact controls stay inside the selected module. */
.theme-toggle{width:36px;height:36px;padding:8px;flex-shrink:0}
.theme-toggle::before{content:none}.theme-toggle .icon{width:18px;height:18px}
.module-navigation{display:flex;align-items:center;gap:4px;padding:10px 14px;border-bottom:1px solid var(--border)}
.module-navigation button{height:38px;padding:8px 16px;background:transparent;border-color:transparent;font-size:13px;color:var(--muted);font-weight:600}
.module-navigation button[aria-pressed="true"]{background:var(--lavender);border-color:var(--border);color:var(--plum)}
.module-navigation .count-chip{margin-left:auto;background:transparent;font-size:10px;color:var(--muted);white-space:nowrap}
.module-header{display:flex;align-items:center;border-bottom:1px solid var(--border);min-width:0}
.module-header .module-navigation{flex:1;min-width:0;border-bottom:0}
.module-header .module-navigation button{flex-shrink:0}
.current-view .module-header #toolbar{flex-shrink:0;padding-left:8px}
.current-view .module-header .search-wrap{width:280px;max-width:24vw}
@media(max-width:1050px){.module-header{flex-wrap:wrap}.module-header .module-navigation{flex-basis:100%}.current-view .module-header #toolbar{width:100%;padding-left:14px;padding-top:0}.current-view .module-header .search-wrap{flex:1;width:auto;max-width:none}}
@media(max-width:600px){.current-view .module-header #toolbar{padding-left:10px}}
.electrical-dropdown{position:relative;flex-shrink:0;min-width:0;max-width:calc(100% - 106px)}
.electrical-dropdown>[data-current-nav]{max-width:100%}
.electrical-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.electrical-menu{position:absolute;left:0;top:calc(100% + 5px);z-index:30;min-width:180px;padding:5px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 32px #30203f25}
.module-navigation .electrical-menu button{display:flex;width:100%;justify-content:flex-start;padding:8px 12px;font-size:12px;min-height:38px}
[data-theme="dark"] .electrical-menu{background:#231d2b}
.catalog-options{position:relative;flex-shrink:0}
.catalog-options summary{list-style:none;width:34px;height:34px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--border);border-radius:8px;font-size:22px;line-height:1;color:var(--muted)}
.catalog-options summary::-webkit-details-marker{display:none}
.catalog-options-menu{position:absolute;right:0;top:40px;z-index:20;min-width:210px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 32px #30203f25}
.catalog-options-menu button{display:flex;width:100%;justify-content:flex-start;border:0;background:transparent;padding:11px!important;font-size:12px!important}
#shell.current-view main{max-width:none;padding:0 24px 16px}
.current-view .topbar{height:54px}.current-view .catalog-panel{border-radius:12px}
.current-view #toolbar{align-items:center;gap:8px;padding:10px 14px;flex-wrap:nowrap}
.current-view .search-wrap{flex:none;width:300px;max-width:32vw;min-width:140px;margin-left:auto}
.current-view #search{height:34px;padding:7px 10px 7px 32px;font-size:12px}
.current-view .search-wrap .icon{top:9px;left:10px;width:15px;height:15px}
.current-view #refresh{height:34px;width:34px;padding:8px;flex-shrink:0}.current-view #refresh span{display:none}
.current-view #newButton{width:34px;height:34px;padding:0;font-size:23px;font-weight:400;box-shadow:none;flex-shrink:0}
[data-theme="light"] .current-view #newButton{color:#fff}
#shell.current-view #content .table-wrap{height:calc(100dvh - 172px);max-height:none;min-height:280px}
.current-view .current-table th{padding:11px 12px;font-size:10px}
.current-view .current-table td{padding:9px 12px;font-size:12px;line-height:1.45}
.current-view .current-table .code{min-width:155px;font-size:12px}.current-view .code-token{padding:4px 6px;line-height:1.35}
.current-view .current-table .description{min-width:270px;width:100%;font-size:12px;line-height:1.45}
.current-view .current-table .symbol-cell{min-width:82px;width:82px}
.current-view .symbol-cell .symbol-thumbnail{height:36px;width:54px;margin:0 auto}
.current-view .symbol-cell .symbol-caption,.current-view .symbol-cell .symbol-state{display:none}
.current-view .row-actions{gap:2px}.current-view .row-actions .icon-button{width:28px;height:30px;min-width:28px;min-height:30px;padding:6px;background:transparent}
.current-view footer{padding:12px 14px}.current-view .page-footnote{display:none}
[data-theme="dark"] .module-navigation button{background:transparent;border-color:transparent}
[data-theme="dark"] .module-navigation button[aria-pressed="true"]{background:#3b2c4a;color:#ebd4fe;border-color:#604773}
[data-theme="dark"] .catalog-options-menu{background:#231d2b}
@media(max-width:820px){.current-view #toolbar{flex-wrap:wrap}.current-view .search-wrap{max-width:none;width:230px}}
@media(max-width:1050px){#shell.current-view #content .table-wrap{height:calc(100dvh - 212px)}.module-header .module-navigation>.count-chip{display:none}.module-header .module-navigation>[data-current-nav],.electrical-dropdown>[data-current-nav]{padding-left:10px;padding-right:10px}}
@media(max-width:600px){#shell.current-view main{padding:0 12px 12px}.current-view .topbar{height:44px}.module-navigation{padding:8px 10px}.module-navigation button{height:34px;padding:7px 11px;font-size:12px}.module-navigation .count-chip{font-size:9px}.current-view #toolbar{padding:8px 10px;gap:6px}.current-view .search-wrap{width:auto;flex:1;min-width:90px;margin-left:0}.current-view #search{font-size:12px}.current-view .current-table table{min-width:790px}.current-view .current-table .code{min-width:145px}.current-view .current-table .symbol-cell{min-width:78px}.current-view .current-table .description{min-width:260px}.current-view .current-table td{padding:8px 10px}#shell.current-view #content .table-wrap{height:calc(100dvh - 267px);min-height:260px}}

/* v1.5.4 / option 1: shared soft-plum selectors, not OS-rendered menus. */
:root{--select-surface:#f1ebf6;--select-menu:#fff;--select-hover:#e8ddef;--select-active:#e3d5ef;--select-border:#baa5ca;--select-text:#483355;--select-secondary:#705280;--select-shadow:0 12px 30px #30203f24}
[data-theme="dark"]{--select-surface:#30263b;--select-menu:#251f2e;--select-hover:#3b2e48;--select-active:#473653;--select-border:#7c6093;--select-text:#f2eaf8;--select-secondary:#c2a6d7;--select-shadow:0 12px 30px #0b061c60}
/* Feather v4.29.2 icons, MIT, Copyright (c) 2013-2023 Cole Bemis.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. Source: https://github.com/feathericons/feather/tree/v4.29.2/icons */
.select-chevron{--select-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%2F%3E%3C%2Fsvg%3E")}
.select-check{--select-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%2220%206%209%2017%204%2012%22%2F%3E%3C%2Fsvg%3E")}
.select-package{--select-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cline%20x1%3D%2216.5%22%20y1%3D%229.4%22%20x2%3D%227.5%22%20y2%3D%224.21%22%2F%3E%3Cpath%20d%3D%22M21%2016V8a2%202%200%200%200-1-1.73l-7-4a2%202%200%200%200-2%200l-7%204A2%202%200%200%200%203%208v8a2%202%200%200%200%201%201.73l7%204a2%202%200%200%200%202%200l7-4A2%202%200%200%200%2021%2016z%22%2F%3E%3Cpolyline%20points%3D%223.27%206.96%2012%2012.01%2020.73%206.96%22%2F%3E%3Cline%20x1%3D%2212%22%20y1%3D%2222.08%22%20x2%3D%2212%22%20y2%3D%2212%22%2F%3E%3C%2Fsvg%3E")}
.select-grid{--select-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%2F%3E%3C%2Fsvg%3E")}
.select-chevron,.select-check,.select-package,.select-grid{display:inline-block;width:17px;height:17px;flex-shrink:0;background:currentColor;mask:var(--select-icon) center/contain no-repeat;-webkit-mask:var(--select-icon) center/contain no-repeat}
.select-chevron{width:16px;height:16px;transition:transform .15s}
.module-navigation .electrical-dropdown>[data-current-nav]{width:250px;height:38px;gap:10px;padding:0 0 0 14px;border:1px solid var(--select-border);border-radius:9px;background:var(--select-surface);color:var(--select-text);font-weight:600;box-shadow:inset 0 1px 0 #ffffff08;overflow:hidden}
.electrical-dropdown{max-width:calc(100% - 100px)}
.electrical-label{flex-shrink:0}
.electrical-kind{flex:1;text-align:left;border-left:1px solid var(--select-border);padding-left:10px;color:var(--select-secondary);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-arrow-zone{align-self:stretch;display:flex;align-items:center;justify-content:center;width:34px;border-left:1px solid var(--select-border);margin-left:1px;flex-shrink:0}
.module-navigation .electrical-dropdown>[data-current-nav]:hover,.module-navigation .electrical-dropdown>[data-current-nav][aria-expanded="true"]{background:var(--select-hover);border-color:var(--select-secondary)}
.module-navigation .electrical-dropdown>[data-current-nav][aria-expanded="true"]{box-shadow:0 0 0 2px #ab88c322}
[aria-expanded="true"] .select-chevron{transform:rotate(180deg)}
.module-navigation .electrical-menu{width:100%;min-width:180px;padding:0;top:calc(100% + 4px);border-color:var(--select-border);background:var(--select-menu);border-radius:9px;box-shadow:var(--select-shadow);overflow:hidden}
.module-navigation .electrical-menu button{gap:10px;height:34px;min-height:34px;padding:7px 14px;border:0;border-radius:0;color:var(--select-text);font-weight:500;background:transparent}
.module-navigation .electrical-menu button+button{border-top:1px solid var(--border)}
.module-navigation .electrical-menu button[aria-pressed="true"]{background:var(--select-active);color:var(--select-text)}
.module-navigation .electrical-menu button:focus-visible{outline:2px solid var(--select-secondary);outline-offset:-3px}
.module-navigation .electrical-menu button:hover,.module-navigation .electrical-menu button:focus-visible{background:var(--select-hover)}
.electrical-menu .select-check{margin-left:auto;visibility:hidden;width:16px;height:16px}
.electrical-menu [aria-pressed="true"] .select-check{visibility:visible}
.module-navigation>[data-current-nav]:hover{background:var(--select-hover);color:var(--select-text)}
.catalog-options summary:hover,.catalog-options[open] summary{background:var(--select-hover);border-color:var(--select-border);color:var(--select-text)}
.catalog-options-menu{border-color:var(--select-border);background:var(--select-menu)!important;box-shadow:var(--select-shadow)}
.catalog-options-menu button{color:var(--select-text)}
.catalog-options-menu button:hover,.catalog-options-menu button:focus-visible{background:var(--select-hover)}
.styled-select{position:relative;display:block;min-width:0;width:100%;margin-top:9px}
.styled-select .styled-select-native{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;max-width:1px!important;margin:0!important;padding:0!important;border:0!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap;pointer-events:none}
.styled-select .styled-select-trigger{display:flex;width:100%;min-width:0;min-height:44px;justify-content:space-between;gap:14px;padding:0 0 0 13px;border:1px solid var(--select-border);border-radius:9px;background:var(--select-surface);color:var(--select-text);font-size:14px;font-weight:400;text-align:left;box-shadow:inset 0 1px 0 #ffffff08;transform:none}
.styled-select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;padding:11px 0;line-height:20px}
.styled-select-trigger>.select-chevron{box-sizing:content-box;flex-shrink:0;margin:0 12px}
.styled-select-trigger:hover,.styled-select.is-open>.styled-select-trigger{background:var(--select-hover);border-color:var(--select-secondary)}
.styled-select-trigger:focus-visible{outline:2px solid var(--select-secondary);outline-offset:2px}
.styled-select.is-open>.styled-select-trigger{box-shadow:0 0 0 2px #ab88c322}
.styled-select.is-disabled{opacity:.6}.styled-select.is-disabled>.styled-select-trigger{opacity:1;cursor:not-allowed}
.styled-select.is-invalid>.styled-select-trigger{border-color:#c26c7c}
.styled-select-menu{position:fixed;inset:auto;margin:0;padding:4px;border:1px solid var(--select-border);border-radius:10px;background:var(--select-menu);color:var(--select-text);box-shadow:var(--select-shadow);z-index:1000;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--select-border) transparent;font:400 13px/1.4 "Aptos","Segoe UI",sans-serif;max-width:calc(100vw - 16px)}
.styled-select-menu::backdrop{background:transparent}
.styled-select-option{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:9px 11px;border:1px solid transparent;border-radius:6px;color:var(--select-text);background:transparent;cursor:pointer;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:13px;font-weight:400;transform:none;justify-content:flex-start}
.styled-select-option+.styled-select-option{margin-top:2px}
.styled-select-option[aria-selected="true"]{background:var(--select-active);border-color:var(--select-border)}
.styled-select-option:hover,.styled-select-option.is-active{background:var(--select-hover);outline:1px solid var(--select-border);outline-offset:-2px}
.styled-select-option[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.styled-select-option .select-check{margin-left:auto;visibility:hidden}
.styled-select-option[aria-selected="true"] .select-check{visibility:visible}
.toolbar>.styled-select{margin-top:0;max-width:225px;flex:0 1 225px}
.toolbar .styled-select-trigger{height:100%;font-size:12px}
.symbol-tools .styled-select{margin-top:6px}.symbol-tools .styled-select-trigger{font-size:13px}
/* v1.5.5: drawing workspace is a page inside main, not a dialog. */
.record-dialog{width:660px;padding:25px;border-radius:15px}
.record-dialog .modal-head h2{font-size:23px}
.record-dialog #modalBody>p{font-size:12px;margin:16px 0;line-height:1.6}
.record-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.record-form-grid label{margin:0;min-width:0;color:var(--select-secondary);font-size:11px}
.record-form-grid .record-full{grid-column:1/-1}
.record-form-grid input,.record-form-grid textarea,.symbol-workspace input{background:var(--select-surface);color:var(--select-text);border-color:var(--select-border);border-radius:9px;box-shadow:inset 0 1px 0 #ffffff08}
.record-form-grid input{padding:11px 13px;font-size:13px}
.record-form-grid textarea{min-height:100px;font-size:13px;padding:11px 13px}
.record-form-grid input:focus,.record-form-grid textarea:focus,.symbol-workspace input:focus{border-color:var(--select-secondary);background:var(--select-menu);box-shadow:0 0 0 3px #ab88c325}
.optional{font-size:10px;color:var(--muted);font-weight:400;margin-left:5px}
.record-dialog .record-symbol{margin-top:18px;padding-top:16px}
.record-dialog .record-symbol-body{grid-template-columns:105px 1fr;gap:18px}
.record-dialog #recordSymbolPreview{padding:8px;background:var(--select-surface)}
.record-dialog #recordSymbolPreview .symbol-caption{font-size:10px;overflow-wrap:anywhere}
.record-dialog #recordSymbolPreview .symbol-state{display:none}
.record-dialog #editSymbolButton{font-size:12px;background:var(--select-surface);border-color:var(--select-border);color:var(--select-text);padding:10px 13px}
.record-dialog #editSymbolButton span{margin-left:8px;font-size:17px}
.record-dialog .modal-actions{margin-top:20px;padding-top:16px}
.symbol-workspace{min-width:0;width:100%;margin:0 auto 20px;color:var(--ink)}
.symbol-workspace .symbol-workspace-header{margin:10px 0 16px;align-items:center;gap:16px}
.symbol-workspace h2{font-size:28px;letter-spacing:-.6px;margin:0}
.symbol-workspace .symbol-back-button{background:var(--select-surface);color:var(--select-text);border-color:var(--select-border);padding:10px 14px;font-size:12px;flex-shrink:0}
.symbol-record-context{display:flex;align-items:center;gap:14px;padding:13px 16px;background:var(--select-surface);border:1px solid var(--select-border);border-radius:10px;min-width:0}
.symbol-record-code{font:12px var(--mono);color:var(--select-text);flex-shrink:0;max-width:40%;overflow-wrap:anywhere}
.symbol-record-description{font-size:12px;line-height:1.5;margin:0;color:var(--select-secondary);overflow-wrap:anywhere;min-width:0}
.symbol-workspace .symbol-editor-intro{margin:12px 0 22px;font-size:12px;max-width:820px}
.symbol-workspace .symbol-editor-grid{grid-template-columns:minmax(270px,360px) minmax(0,1fr);gap:24px}
.symbol-workspace .symbol-tools{display:grid;gap:14px}
.symbol-tool-section{padding:18px;background:var(--select-menu);border:1px solid var(--border);border-radius:12px;min-width:0}
.symbol-tool-section h3{font-size:12px;font-weight:600;margin:0 0 15px;color:var(--select-text)}
.symbol-tool-section label{font-size:11px;color:var(--select-secondary)}
.symbol-tool-section h3+label{margin-top:0}
.symbol-workspace .symbol-tool-group{margin-top:0}
.symbol-workspace .symbol-field-label{font-size:11px;font-weight:400}
.symbol-workspace .symbol-buttons button{background:var(--select-surface);border-color:var(--select-border);color:var(--select-text);padding:8px 10px;font-size:11px}
.symbol-workspace .symbol-buttons button:hover,.symbol-workspace .symbol-characters button:hover{background:var(--select-hover)}
.symbol-workspace .symbol-buttons .danger{color:#bd6d7b}
.symbol-workspace .symbol-characters button{background:var(--select-surface);border-color:var(--border);color:var(--select-text);width:29px;height:30px;font-size:17px}
.symbol-workspace .symbol-preview-section{position:sticky;top:18px;background:var(--select-menu);border:1px solid var(--border);border-radius:12px;padding:20px}
.symbol-workspace .symbol-canvas{width:100%;max-height:62dvh;min-height:210px;aspect-ratio:3/2;display:flex;align-items:center;justify-content:center}
.symbol-workspace .symbol-canvas svg{width:100%;height:100%;max-height:62dvh}
.symbol-workspace .symbol-mini-preview{margin-top:18px;padding:10px 14px;background:var(--select-surface)}
.symbol-workspace .symbol-editor-footer{position:sticky;bottom:0;z-index:5;margin-top:20px;padding:14px 0;background:var(--select-menu);border:1px solid var(--border);border-radius:12px;padding-left:16px;padding-right:16px;box-shadow:0 -5px 22px #30203f08}
.symbol-workspace .symbol-editor-footer .primary{background:var(--plum);border-color:var(--plum);color:white}
[data-theme="dark"] .symbol-workspace .symbol-editor-footer .primary{color:#241c2d}
.symbol-module-view .topbar div{min-width:0}.symbol-module-view #breadcrumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55vw}
@media(max-width:1000px){.symbol-workspace .symbol-editor-grid{grid-template-columns:minmax(240px,.9fr) minmax(0,1fr);gap:16px}.symbol-workspace .symbol-preview-section{padding:14px}.symbol-tool-section{padding:14px}}
@media(max-width:760px){.symbol-workspace .symbol-editor-grid{grid-template-columns:1fr}.symbol-workspace .symbol-preview-section{position:static;grid-row:1}.symbol-workspace .symbol-canvas{min-height:160px;max-height:340px}.symbol-workspace .symbol-canvas svg{max-height:340px}.symbol-workspace .symbol-workspace-header{flex-wrap:wrap}.symbol-workspace h2{font-size:24px}.symbol-workspace .symbol-back-button{font-size:11px}.symbol-record-context{align-items:flex-start;flex-direction:column;gap:8px}.symbol-record-code{max-width:100%}.symbol-workspace .symbol-editor-intro{font-size:11px}.symbol-workspace .symbol-editor-footer{gap:10px;padding:10px}.symbol-workspace .symbol-editor-footer>.symbol-buttons{gap:6px}.symbol-workspace .symbol-editor-footer>.symbol-buttons:last-child{margin-left:0}.symbol-workspace .symbol-buttons button{padding:8px}.record-form-grid{grid-template-columns:1fr;gap:14px}.record-dialog{padding:20px}.record-dialog .modal-head h2{font-size:21px}.record-dialog .record-symbol-body{grid-template-columns:85px 1fr;gap:12px}.record-dialog #editSymbolButton{padding:9px;font-size:11px;gap:4px}.record-dialog #editSymbolButton span{margin-left:0}.record-dialog .symbol-help{font-size:10px}}
@media(max-width:600px){.module-navigation .electrical-dropdown>[data-current-nav]{height:34px;padding-left:8px;gap:6px;font-size:11px}.electrical-kind{padding-left:6px}.select-arrow-zone{width:25px;margin-left:0}.electrical-dropdown{max-width:calc(100% - 91px)}.module-navigation .electrical-menu button{font-size:12px}.toolbar>.styled-select{max-width:100%;flex:1 1 180px}.styled-select-trigger{touch-action:manipulation}}
[data-theme="dark"] #contractsModule .contracts-bar button:not(.primary),[data-theme="dark"] #contractsModule .contracts-bar .styled-select-trigger,[data-theme="dark"] #contractsSettings button{background:#30263b;color:#f2eaf8;border-color:#604773}
[data-theme="dark"] #contractsModule .contracts-bar button:not(.primary):hover,[data-theme="dark"] #contractsSettings button:hover{background:#3b2e48;border-color:#9677ae}
/* Compact import workflow and collapsible navigation. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.sidebar-brand-row{display:flex;align-items:flex-start;justify-content:space-between;gap:4px}.sidebar-brand-row .brand{min-width:0;padding-right:0}#sidebarToggle{flex:none;width:30px;height:30px;padding:0;border:1px solid var(--border);border-radius:9px;background:var(--select-surface);color:var(--select-text);font-size:22px;line-height:1}#sidebarToggle:hover{background:var(--select-hover)}#sidebarToggle:focus-visible{outline:2px solid var(--plum);outline-offset:2px}
@media(min-width:601px){#shell.sidebar-collapsed aside{width:68px;padding:20px 9px}#shell.sidebar-collapsed main{margin-left:68px}#shell.sidebar-collapsed .sidebar-brand-row{flex-direction:column;align-items:center;gap:10px}#shell.sidebar-collapsed aside .brand{padding:0}#shell.sidebar-collapsed aside .brand>div,#shell.sidebar-collapsed .workspace-label,#shell.sidebar-collapsed .sidebar-note,#shell.sidebar-collapsed aside nav button span,#shell.sidebar-collapsed .account-profile>div,#shell.sidebar-collapsed .account-actions button span{display:none!important}#shell.sidebar-collapsed aside nav{align-items:center;margin-top:24px}#shell.sidebar-collapsed aside nav button{width:44px;min-height:44px;padding:10px;justify-content:center}#shell.sidebar-collapsed aside nav button .icon{width:19px;height:19px}#shell.sidebar-collapsed .account{padding:12px 0 0}#shell.sidebar-collapsed .account-profile,#shell.sidebar-collapsed .account-actions{justify-content:center}#shell.sidebar-collapsed .account-actions{flex-direction:column;align-items:center;gap:2px}#shell.sidebar-collapsed .account-actions button{width:36px;height:36px;justify-content:center}}
@media(max-width:600px){#sidebarToggle{display:none}}
#contractsImportPanel{padding:18px 22px 22px}#contractsImportPanel .contracts-heading{margin-bottom:14px}#contractsImportPanel .contracts-heading h2{font-size:19px}#contractsImportPanel .contracts-import-toolbar{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--select-surface)}#contractsImportPanel .contracts-source{display:flex;flex-wrap:nowrap;gap:5px;border:0;padding:0;margin:0!important;min-width:0}#contractsImportPanel .contracts-source label{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;margin:0!important;padding:9px 10px;font-size:12px;line-height:1.2}#contractsImportPanel .contracts-source .icon{width:15px;height:15px;flex:none}#contractsImportPanel .contracts-source input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}#contractsImportPanel .contracts-source label:focus-within{outline:2px solid var(--plum);outline-offset:2px}#contractsImportPanel .contracts-import-toolbar>div[hidden],#contractsImportPanel .contracts-import-toolbar>fieldset[hidden]{display:none!important}#contractsCsvGroup,#contractsExcelGroup{min-width:0;flex:1;margin:0!important}#contractsCsvFile,#contractsExcelFile{width:100%;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:6px}#contractsImportPanel #contractsPreviewButton{flex:none;white-space:nowrap}#contractsImportPanel #contractsConfirm{flex:none;margin-left:auto;white-space:nowrap}#contractsImportPanel #contractsCsvOptions{margin:12px 0}#contractsImportPanel #contractsCsvOptions summary{display:inline-block;cursor:pointer;font-size:12px;color:var(--select-text);padding:6px 2px}#contractsImportPanel #contractsCsvOptions .contracts-upload{padding:12px 0;align-items:end}#contractsImportPanel #contractsMode{margin:12px 0 4px;padding:10px 12px}#contractsImportPanel #contractsMode legend{font-size:12px;font-weight:650}#contractsImportPanel #contractsMode label{margin:2px 15px 2px 0}#contractsImportPanel #contractsSummary{margin:5px 0}#contractsImportPanel #contractsPreview>p{margin:10px 0 8px}#contractsImportPanel .contracts-paste-label{margin-top:12px}#contractsImportPanel .contracts-paste-label textarea{min-height:130px}#contractsImportPanel #contractsExcelReview>p{margin:10px 0 6px}
@media(max-width:1350px){#contractsImportPanel .contracts-import-toolbar{flex-wrap:wrap}#contractsImportPanel .contracts-source{flex:1 1 100%;justify-content:flex-start}#contractsImportPanel #contractsConfirm{margin-left:auto}}
@media(max-width:760px){#contractsImportPanel{padding:14px}#contractsImportPanel .contracts-import-toolbar{align-items:stretch}#contractsImportPanel .contracts-source{overflow-x:auto}#contractsImportPanel .contracts-source label{flex:none}#contractsImportPanel #contractsCsvGroup,#contractsImportPanel #contractsExcelGroup{flex:1 1 100%}#contractsImportPanel #contractsPreviewButton,#contractsImportPanel #contractsConfirm{flex:1 1 120px;margin-left:0}#contractsImportPanel .contracts-heading h2{font-size:17px}}
.contracts-sheet-review{margin:12px 0;padding:9px 12px;border:1px solid var(--border);border-radius:9px;background:var(--select-surface);color:var(--select-text)}.contracts-sheet-review summary{cursor:pointer;font-weight:650}.contracts-sheet-review summary:focus-visible{outline:2px solid var(--plum);outline-offset:3px}.contracts-sheet-review ul{margin:10px 0 2px;padding-left:20px;max-height:180px;overflow:auto}.contracts-sheet-review li{margin:4px 0;color:var(--muted)}.contracts-sheet-review li strong{color:var(--ink)}
.contracts-sheet-warning{margin:12px 0;padding:11px 13px;border:1px solid var(--border);border-left:3px solid var(--plum);border-radius:9px;background:var(--select-surface)}.contracts-sheet-warning p{margin:6px 0;color:var(--muted)}.contracts-sheet-warning label{display:flex;align-items:flex-start;gap:8px;margin:8px 0 0;cursor:pointer}.contracts-sheet-warning input{flex:none;margin-top:3px;accent-color:var(--plum)}.contracts-sheet-warning label:focus-within{outline:2px solid var(--plum);outline-offset:3px}

/* Catalog controls share one size and the existing styled-select component. */
#shell.current-view .module-navigation { gap:8px; }
#shell.current-view .module-navigation .catalog-selector { margin:0; min-width:0; }
#shell.current-view .module-navigation .catalog-selector:first-child { width:156px; }
#shell.current-view .module-navigation .catalog-selector:nth-child(2) { width:182px; }
#shell.current-view .module-navigation .styled-select { width:100%; }
#shell.current-view .module-navigation .styled-select-button { height:40px; min-height:40px; font-size:13px; border-radius:10px; padding:0 12px; }
#shell.current-view #toolbar .filter-heading[hidden] { display:none!important; }
#shell.current-view #toolbar :is(#refresh,#newButton),
#shell.current-view .catalog-options>summary { box-sizing:border-box; width:40px; height:40px; min-width:40px; min-height:40px; padding:0; display:inline-flex; align-items:center; justify-content:center; flex:0 0 40px; border-radius:10px; line-height:1; }
#shell.current-view #toolbar :is(#refresh,#newButton) .icon,
#shell.current-view .catalog-options>summary .icon { width:18px; height:18px; flex:0 0 18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#shell.current-view .catalog-options>summary .icon { fill:currentColor; stroke:none; }
#shell.current-view #search { height:40px; }
#shell.current-view .search-wrap>.icon { top:12px; }
@media(max-width:600px) { #shell.current-view .module-navigation { flex-wrap:wrap; } #shell.current-view .module-navigation .catalog-selector { flex:1; width:auto; } #shell.current-view .module-navigation .count-chip { flex-basis:100%; text-align:right; } }
@media(pointer:coarse) { #shell.current-view .module-navigation .styled-select-button,#shell.current-view #search { min-height:44px; height:44px; } #shell.current-view #toolbar :is(#refresh,#newButton),#shell.current-view .catalog-options>summary { width:44px; height:44px; min-width:44px; min-height:44px; flex-basis:44px; } }

/* Each imported APU package captures its own explicit price policy. */
#contractsImportPanel .contracts-apu-rates{margin:16px 0;padding:16px;min-width:0}
.contracts-apu-rates legend{font-size:14px;font-weight:700;padding:0 5px}
#contractsImportPanel .contracts-apu-rates p{margin:0 0 12px}
.contracts-apu-rate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#contractsImportPanel .contracts-apu-rate-grid label{display:block;min-width:0;margin:0;font-size:13px;line-height:1.5}
.contracts-apu-rate-grid input,.contracts-apu-rate-grid select{display:block;width:100%;min-height:44px;margin-top:8px;font:inherit}
.contracts-apu-rate-grid .contracts-apu-basis{grid-column:1/-1}
.contracts-apu-rate-grid .styled-select{margin-top:8px}
#contractsImportPanel #contractsBasisHelp{margin:12px 0 0}
.contracts-apu-packages{margin:10px 0 14px;font-size:12px;color:var(--ink);white-space:normal}
.contracts-apu-packages summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--select-text);font-weight:650;gap:8px}
.contracts-apu-packages summary::before{content:'▸';display:inline-block}
.contracts-apu-packages[open]>summary::before{content:'▾'}
.contracts-apu-packages ul{list-style:none;margin:0;padding:0 14px;border-left:2px solid var(--border)}
.contracts-apu-packages li+li{margin-top:12px}
.contracts-apu-packages strong,.contracts-apu-packages span,.contracts-apu-packages small{display:block;overflow-wrap:anywhere;line-height:1.6}
.contracts-apu-packages small{color:var(--muted)}
.contracts-version>div{min-width:0;flex:1}
@media(max-width:600px){.contracts-apu-rate-grid{grid-template-columns:minmax(0,1fr);gap:12px}#contractsImportPanel .contracts-apu-rates{padding:12px}.contracts-apu-packages ul{padding-left:10px}.contracts-version{flex-wrap:wrap}}

/* Acciones del espacio de trabajo. */
#shell main :is(button.primary,button.btn-primary):not(:disabled){box-shadow:inset 0 1px 0 #ffffff38,0 3px 8px #0002}
#shell main :is(button.primary,button.btn-primary):hover:not(:disabled){transform:translateY(-1px)}
#shell main :is(button.primary,button.btn-primary):active:not(:disabled){transform:translateY(0);box-shadow:inset 0 2px 4px #0003}
#shell main :is(button.primary,button.btn-primary):focus-visible{outline:3px solid var(--accent,#d66d42);outline-offset:3px}
@media(prefers-reduced-motion:reduce){#shell main :is(button.primary,button.btn-primary){transition:none!important;transform:none!important}}
