:root{color-scheme:light;--ink:#0b1f2a;--ink2:#17333f;--paper:#f2f5f7;--white:#fff;--line:#dce4e9;--muted:#526770;--orange:#ad4424;--teal:#106c69;--tint:#e5f0ed;--side:200px;--header:60px;--workspace-max:1680px;--workspace-gutter:clamp(20px,3vw,44px);--workspace-inset:max(var(--workspace-gutter),calc((100vw - var(--side) - var(--workspace-max))/2));font:15px/1.55 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
html{scroll-padding-top:calc(var(--header) + 16px)}
body{margin:0;min-width:0}
a{color:var(--teal);text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer;color:inherit}
button:disabled{cursor:default;opacity:.5}
:focus-visible{outline:2px solid #0e7c7b;outline-offset:3px}
h1,h2,h3,p,dl,dd{margin:0}
h1{font-size:clamp(26px,3vw,38px);line-height:1.16;letter-spacing:-.035em}
h2{font-size:18px;line-height:1.3}
h3{font-size:16px;margin-top:8px}
img,svg{display:block;max-width:100%}
input,select,textarea{min-width:0}
.icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:5;width:var(--side);background:var(--ink);color:#fff;padding:24px 16px 18px;display:flex;flex-direction:column}
.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:inherit;min-width:0}
.brand strong,.brand small,.account strong,.account small{display:block}
.brand strong{font-size:15px;color:inherit;white-space:nowrap}
.brand small,.account small{font-size:12px;color:#a7bbc0}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e28b5e;color:#16262d;font-size:16px;font-weight:850;flex:0 0 auto;letter-spacing:-.06em}
.sidebar nav{display:grid;gap:6px;margin-top:39px}
.nav-link{display:flex;gap:12px;align-items:center;padding:11px 12px;min-height:46px;border-radius:9px;color:#c8d8da;font-weight:650;white-space:nowrap}
.nav-link.active{background:#243e49;color:white}
.nav-link.active .icon{color:#f0a37e}
.nav-link:hover{background:#1c343e}
.sidebar-foot{margin-top:auto;border-top:1px solid #36505a;padding:16px 3px 0;display:grid;gap:8px}
.account{display:flex;align-items:center;gap:10px;overflow-wrap:anywhere}
.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#36535c;flex:0 0 auto}
.signout{background:transparent;border:0;color:#c5d4d7;text-align:left;display:flex;gap:10px;align-items:center;min-height:44px;padding:0}
.signout .icon{width:14px;height:14px}
.topbar{position:sticky;top:0;z-index:4;margin-left:var(--side);height:var(--header);background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 var(--workspace-inset);gap:12px}
.crumb{font-size:13px;font-weight:700;color:#283e46}
.crumb span{display:inline-block;margin:0 10px;color:#667b81}
.top-right{display:flex;align-items:center;gap:8px}
.demo{display:inline-flex;gap:6px;align-items:center;color:#79501e;background:#f2e8d6;padding:4px 9px;border-radius:90px;white-space:nowrap;font-size:12px;font-weight:700}
.demo i{width:6px;height:6px;border-radius:50%;background:#925b20}
.mobile-brand,.mobile-logout,.bottom-nav{display:none}
.content{margin:0 0 0 var(--side);padding:24px var(--workspace-inset) 48px;min-width:0;outline:none}
.offline{margin-left:var(--side);background:#f5e4c5;padding:8px 20px;color:#65461e}
.search-form{display:flex;align-items:center;gap:10px;max-width:min(56%,570px);min-width:min(100%,342px);padding:5px 5px 5px 13px;border:1px solid #ffffff4a;background:#fff;border-radius:11px;color:var(--ink)}
.search-form>input{flex:1;background:transparent;border:0;min-height:38px;width:100%;padding:0;font-size:14px}
.search-form>input:focus{outline:none}
.search-form:focus-within{outline:2px solid #e5a382;outline-offset:2px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 14px;border:1px solid transparent;border-radius:9px;text-align:center;font-weight:690;white-space:nowrap;background:none}
.button.compact{min-height:38px;padding:6px 11px;font-size:13px}
.primary{background:#116461;color:#fff}
.primary:hover,.primary:focus-visible{background:#0d514e}
.secondary{border-color:#d9d5c8;background:#fff;color:#253d45}
.secondary:hover{background:#f0eee5}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0;border:0;background:none;color:var(--teal);font-weight:690;font-size:13px;min-height:38px;white-space:nowrap}
.text-button:hover{text-decoration:underline}
.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:14px}
.section-title .icon{color:var(--teal)}
.section-title .primary .icon{color:inherit}
.category{display:flex;position:relative;align-items:center;text-align:left;min-width:0;min-height:100px;isolation:isolate;overflow:hidden;padding:12px 10px;border:1px solid var(--line);background:#fff;border-radius:12px}
.category:hover,.category.selected{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal) inset}
.category.harness{background:#e7efeb;border-color:#d2dfd8}
.category.harness.selected{border-color:var(--teal)}
.category-copy{position:relative;z-index:1;display:grid;gap:2px}
.category strong{font-size:16px}
.category span{font-size:12px;color:#385259;font-weight:700}
.category small{font-size:12px;color:#465b63}
.category-art{width:53%;height:auto;position:absolute;right:-7%;top:50%;transform:translateY(-50%);z-index:-1}
.category.harness .category-art{width:52%;right:0}
.category>.icon{position:absolute;right:5px;bottom:7px;width:13px;height:13px;color:#415760}
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px;min-width:0}
.panel .section-title:last-child{margin-bottom:0}
.insights,.stack{display:grid;gap:14px;align-content:start;min-width:0}
.filters{display:flex;flex-wrap:wrap;gap:7px;align-items:end;margin-bottom:14px}
.filters label{font-size:12px;display:grid;gap:3px;color:var(--muted)}
.filters select{max-width:158px;width:100%;font-size:12px;min-height:38px}
select,input:not([type=checkbox]),textarea{border:1px solid #cbc9bf;background:#fff;color:var(--ink);border-radius:8px;min-height:43px;padding:8px 10px;max-width:100%}
textarea{min-height:76px;resize:vertical}
.search-form>input:not([type=checkbox]){border:0;min-height:38px;padding:0}
.results-toolbar{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 0;font-size:13px}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left}
.material-table{table-layout:fixed}
.material-table th,.material-table td,.audit-table th,.audit-table td{padding:9px 6px;border-bottom:1px solid #ece9df;overflow-wrap:anywhere}
.material-table thead,.audit-table thead{background:#f7f5ee;color:#485c60;font-size:11px}
.material-table th:first-child{width:34%}
.material-table th:nth-child(2){width:19%}
.material-table th:nth-child(3){width:19%}
.material-table th:nth-child(4){width:10%}
.material-table th:nth-child(5){width:13%}
.material-table th:last-child{width:5%}
.material-table tbody td{font-size:12px}
.material-table tr:hover td{background:#fafaf6}
.material-table td:nth-child(2) small,.material-cell small,.hot-list small,.updates small,.feedback-card small{display:block;color:var(--muted);font-size:12px}
.material-cell{display:flex;align-items:center;gap:8px;color:var(--ink)}
.material-cell strong{display:block;font-size:13px}
.material-cell .code,.code{color:var(--teal);font-family:ui-monospace,"SF Mono",Consolas,monospace;font-weight:750;font-size:12px;overflow-wrap:anywhere}
.material-cell .line-type{display:none}
.thumb{width:44px;height:44px;border-radius:8px;background:#e9eee8;display:grid;place-items:center;overflow:hidden;flex:0 0 44px}
.thumb.terminal,.thumb.seal{background:#f1ebde}
.thumb svg,.thumb img{width:100%;height:100%;object-fit:contain}
.tags{display:flex;flex-wrap:wrap;gap:4px}
.tags>span,.badge{display:inline-flex;align-items:center;font-size:11px;line-height:1.4;color:#41565b;background:#f1f2ed;border-radius:5px;padding:3px 6px;white-space:nowrap;font-weight:650}
.badge.success,.tags>.badge.success{color:#0f635c;background:#e1efe9}
.badge.pending,.tags>.badge.pending{color:#804315;background:#f6e9d8}
.badge.neutral,.tags>.badge.neutral{color:#46545a;background:#e9efee}
.reuse{font-weight:750;color:var(--teal);font-size:14px}
.arrow-link{display:grid;place-items:center;min-height:36px}
.arrow-link .icon{width:14px}
.updates a,.inline-card{display:block}
.updates,.relation-list,.feedback-list{list-style:none;margin:0;padding:0}
.updates li+li,.relation-list li+li,.feedback-list li+li{border-top:1px solid var(--line)}
.updates a,.inline-card{display:block;text-align:left;width:100%;border:0;background:transparent;padding:9px 0;color:var(--ink);font-size:13px}
.page-heading h1,.detail-overview h2,.duplicate-list summary,.feedback-card strong,.feedback-text{overflow-wrap:anywhere}
.empty,.muted{color:var(--muted)}
.empty{padding:12px 0}
.pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:14px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:0 0 17px}
.page-heading p{color:var(--muted);margin-top:7px}
.back-link{display:inline-flex;align-items:center;gap:4px;min-height:36px;margin-bottom:6px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:15px;align-items:start}
.detail-overview{display:grid;grid-template-columns:minmax(100px,37%) minmax(0,1fr);gap:15px}
.detail-art{display:grid;place-items:center;min-height:170px;background:#e8eee7;border-radius:10px;overflow:hidden}
.detail-art svg,.detail-art img{width:100%;height:100%;max-height:260px;object-fit:contain}
.detail-overview .code{margin:8px 0 3px}
.specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;margin-top:9px}
.specs div{min-width:0;padding:5px 0;border-bottom:1px solid #eeece3}
.specs dt{font-size:12px;color:var(--muted)}
.specs dd{font-weight:650;font-size:14px;overflow-wrap:anywhere;white-space:pre-wrap}
.bom-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:9px}
.bom-counts div{display:grid;justify-items:center;background:#f2f2eb;padding:8px;border-radius:8px}
.bom-counts strong{color:var(--teal);font-size:20px}
.bom-counts span{font-size:12px}
.relation-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;font-size:13px;overflow-wrap:anywhere}
.relation-list li>a{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.relation-list li span{color:var(--muted)}
.feedback-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.4fr);gap:15px;align-items:start}
.heat{table-layout:fixed}
.heat th,.heat td{padding:3px;text-align:center;font-size:12px;overflow-wrap:anywhere}
.heat th:first-child{width:17%}
.heat-cell{width:100%;min-height:44px;border:0;border-radius:6px;background:#edf0e9;color:#526565;font-weight:750}
.heat-1{background:#d9ece2;color:#155d53}.heat-2{background:#eac29e;color:#672c16}.heat-3{background:#a83c25;color:white}
.heat-cell:hover{box-shadow:inset 0 0 0 2px var(--teal)}
.feedback-card{display:grid;gap:4px;padding:9px 0;background:none;border:0;text-align:left;width:100%;min-height:65px}
.feedback-card:hover strong,.inline-card:hover strong,.updates a:hover strong,.hot-list a:hover strong{color:var(--teal)}
.steps{list-style:none;margin:0 0 15px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;max-width:900px}
.steps li{display:flex;align-items:center;gap:7px;padding:9px 8px;color:#4f6368;background:#ebeae0;border-radius:8px;font-size:13px}
.steps span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#dddcd3;font-weight:750;flex:0 0 auto}
.steps .active{background:#f5e2d8;color:#8b321b}.steps .active span{background:var(--orange);color:white}.steps .done{background:#e1eee6;color:#1b6256}
.editor{max-width:900px}
.editor-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}
label:not(.button){display:grid;gap:4px;font-weight:620;font-size:13px;min-width:0}
.required{color:var(--orange);font-style:normal}
.editor-actions{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap}
.photo-block{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:13px;align-items:center}
.photo-preview{display:grid;place-items:center;min-height:150px;border:1px dashed #8da6a2;border-radius:8px;background:#e6efea;color:var(--teal);overflow:hidden}
.photo-preview .icon{width:38px;height:38px}
.photo-preview img{max-height:220px}
.camera{width:fit-content;cursor:pointer}
.camera input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.camera:focus-within{outline:2px solid var(--teal);outline-offset:3px}
.form-details,.duplicate-list details{padding:9px 10px;border:1px solid var(--line);border-radius:8px}
.form-details summary,.duplicate-list summary{cursor:pointer;min-height:36px;line-height:36px;font-weight:700}
.form-details .form-grid,.duplicate-body{padding-top:6px}
.attachment-row{min-width:0}
.attachment-row small{color:var(--muted)}
.file-name{display:flex;align-items:center;justify-content:space-between;gap:8px;overflow-wrap:anywhere;font-size:12px}
.bom-editor,.process-inputs,.duplicate-list{display:grid;gap:8px}
.bom-row{grid-template-columns:minmax(0,1.6fr) minmax(0,.6fr) minmax(0,1fr) auto;align-items:end}
.process-inputs>div{display:grid;grid-template-columns:minmax(95px,.35fr) minmax(0,1fr);align-items:center;gap:7px}
label.checkbox{display:flex;align-items:center;font-weight:650;min-height:44px}
.checkbox input{width:18px;height:18px;accent-color:var(--teal)}
.duplicate-body img{max-height:90px}
.success-note{padding:9px 11px;background:#e3efe8;color:#20594f;border-radius:8px;margin-bottom:5px}
.form-error{color:#9b3721;font-size:13px;font-weight:650;overflow-wrap:anywhere}
.form-error:empty{display:none}
#dialog{width:min(650px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:14px;padding:0;color:var(--ink)}
#dialog::backdrop{background:#06182099}
.dialog-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 16px;border-bottom:1px solid var(--line);background:#fff}
.dialog-body{padding:14px 16px 18px}
.icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;background:none;color:var(--ink)}
.login-wrap{display:grid;place-items:center;min-height:100dvh;padding:20px;background:radial-gradient(ellipse at 70% 30%,#284b54,#0a1f2a 67%)}
.login-wrap>p{color:white}
.login{width:min(100%,420px);background:#fff;border-radius:16px;padding:25px;display:grid;gap:14px}
.login .brand small{color:var(--muted)}
.login h1{margin-top:6px}
.login p{color:var(--muted)}
.login .form-error{color:#9b3721}
#notice{position:fixed;z-index:9;inset:auto 14px 15px auto;max-width:min(380px,calc(100% - 28px));background:var(--ink);color:#fff;border-radius:9px;padding:10px 14px;opacity:0;pointer-events:none;transition:opacity .15s}
#notice.visible{opacity:1}
#print-cards{display:none}
@media(max-width:1000px){
  :root{--side:181px}
  .category small{max-width:80px}
  .category-art{opacity:.66}
  .detail-grid,.feedback-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  :root{--side:0px;--header:59px}
  .sidebar,.crumb{display:none}
  .topbar{height:auto;min-height:var(--header);padding:7px 12px;padding-top:max(7px,env(safe-area-inset-top));background:#0b1f2a;color:#fff}
  .mobile-brand{display:block}
  .mobile-brand .brand{gap:7px}
  .mobile-brand .brand strong{font-size:13px}
  .mobile-brand .brand small{font-size:11px}
  .mobile-brand .brand-mark{width:34px;height:34px}
  .mobile-logout{display:block;min-width:44px;min-height:44px;padding:0 2px;border:0;background:none;color:#e2eeed;font-size:12px}
  .demo{font-size:11px;padding:3px 6px}
  .bottom-nav{position:fixed;z-index:5;inset:auto 0 0;display:flex;justify-content:space-around;gap:3px;background:#fffefa;border-top:1px solid #dad8cf;padding:3px 6px max(3px,env(safe-area-inset-bottom))}
  .bottom-nav .nav-link{display:grid;justify-items:center;gap:0;flex:1;min-height:51px;color:#465d65;padding:4px 3px;border-radius:7px;font-size:12px}
  .bottom-nav .nav-link.active{background:#e9f0eb;color:var(--teal)}
  .bottom-nav .active .icon{color:var(--teal)}
  .content{padding:16px 12px calc(76px + env(safe-area-inset-bottom))}
  .search-form{max-width:100%;min-width:0}
  .search-form .button.compact{font-size:12px;padding:4px 8px}
  .categories{margin:16px 0 13px}
  .section-title{margin-bottom:8px}
  .category{min-height:72px;padding:8px 9px}
  .category small{max-width:none;font-size:11px}
  .category-art{width:45%;right:-4%;opacity:1}
  .category.harness .category-art{width:115px;right:15px}
  .panel{padding:12px;border-radius:11px}
  .button.compact,.text-button{min-height:44px}
  .results .actions{gap:4px}
  .results .button.compact{padding:4px 6px;font-size:11px}
  .results .button .icon{width:13px;height:13px;flex-basis:13px}
  .filters{gap:5px}
  .filters label{flex:1 1 29%}
  .filters select{max-width:100%;font-size:12px;min-height:44px}
  .material-table thead,.material-table td:nth-child(2),.material-table td:nth-child(3),.material-table td:nth-child(4){display:none}
  .material-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto 29px;align-items:center;border-bottom:1px solid var(--line)}
  .material-table td{border:0;min-width:0}
  .material-cell .line-type{display:block}
  .arrow-link{min-height:44px}
  .page-heading{align-items:flex-start;flex-direction:column;margin-bottom:13px;gap:9px}
  .page-heading p{font-size:13px}
  .page-heading .button{padding:6px 9px;font-size:12px}
  .detail-overview{gap:8px}
  .detail-art{min-height:110px}
  .specs{gap:5px 7px}
  .editor-types{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps{gap:3px}
  .steps li{display:grid;justify-items:center;gap:3px;padding:5px 2px;font-size:11px}
  .bom-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .photo-preview{min-height:96px}
  .photo-block{grid-template-columns:minmax(0,1fr)}
  #notice{bottom:calc(64px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
  .demo{display:none}
  .category-art{opacity:.65}
  .form-grid{grid-template-columns:1fr}
}
@media print{
  @page{size:A4;margin:12mm}
  :root,body{background:#fff}
  body>*{display:none!important}
  #print-cards{display:block!important}
  #print-cards article{display:grid;grid-template-columns:100px minmax(0,1fr) 90px;gap:14px;border:1px solid #718382;border-radius:8px;padding:10px;margin:0 0 9px;break-inside:avoid}
  #print-cards h2{font-size:16px;margin:4px 0}
  #print-cards p{font-size:11px;margin:2px 0;overflow-wrap:anywhere}
  .print-art{width:100%;background:#e9eee8}
  .print-art img{max-height:110px}
  #print-cards .print-url{font-size:9px;color:#31595b}
}
@media print{.index-qr{width:90px;height:90px;align-self:center}}

/* Material cards keep artwork and copy in separate columns at every width. */
.category{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,34%);gap:8px;padding:10px;overflow:visible}
.category-copy{min-width:0;overflow-wrap:anywhere}
.category small{max-width:none}
.category-art,.category.harness .category-art{position:static;transform:none;width:100%;max-width:104px;height:auto;justify-self:end;opacity:1;z-index:auto;border-radius:6px}
.category>.icon{display:none}
.registration-content .steps,.registration-content .editor{max-width:none}
.registration-content .page-heading .actions{justify-content:flex-end}
.registration-content .editor-types{grid-template-columns:repeat(5,minmax(0,1fr))}
.registration-content .editor-types .category{min-height:116px}
.registration-content .page-heading .actions .muted{font-size:12px}
fieldset{min-width:0;border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:0}
fieldset legend{font-size:13px;font-weight:700;padding:0 5px}
.bom-group{display:grid;gap:8px}
.bom-group>button{justify-self:start}
.equipment-options{display:flex;flex-wrap:wrap;gap:0 13px}
.sample-video{display:block;width:100%;max-height:58vh;background:var(--ink);border-radius:8px}
.sample-photos{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(95px,1fr))}
.sample-photos figure{margin:0;text-align:center;font-size:12px}
.sample-photos img{width:100%;height:clamp(104px,10vw,164px);object-fit:contain;background:#f4f1ea;border-radius:7px}
.analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px;align-items:start}
.analysis-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:13px}
.analysis-filter{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 13px;margin-bottom:14px}
.analysis-filter summary{font-weight:700;cursor:pointer}
.analysis-filter .filters{margin:8px 0 0}
.analytics-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.metric{display:grid;gap:4px;justify-items:start;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;text-align:left}
.metric strong{font-size:23px;color:var(--teal)}
.analysis-bars{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.analysis-bar{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr) minmax(27px,auto);gap:8px;align-items:center;width:100%;padding:5px;border:0;border-radius:7px;min-height:40px;text-align:left;background:transparent;font-size:13px;overflow-wrap:anywhere}
.analysis-bar:hover,.analysis-bar[aria-pressed=true]{background:#e8f1ed}
.bar-track{height:12px;background:#edf0e9;border-radius:5px;overflow:hidden}
.bar-track i{display:block;height:100%;background:#12706c;border-radius:5px}
.analysis-records small{display:block;color:var(--muted)}
.analysis-records details{min-width:0}
.analysis-matrix{overflow:auto;margin-top:7px}
.analysis-matrix th,.analysis-matrix td{padding:5px;text-align:center;font-size:13px;min-width:79px}
.analysis-matrix th:first-child{min-width:100px;text-align:left}
.analysis-matrix .heat-cell[aria-pressed=true]{outline:2px solid #ad4424;outline-offset:1px}
.matrix-zero{color:var(--muted)}
@media(max-width:760px){
  .registration-content .page-heading .actions{justify-content:flex-start}
  .registration-content .editor-types{grid-template-columns:repeat(2,minmax(0,1fr))}
  .registration-content .editor-types .category{min-height:77px}
  .category.harness{grid-column:1/-1}
  .category{gap:6px;padding:8px;overflow:hidden}
  .analysis-tabs .button{flex:1;font-size:12px;padding:6px}
  .analysis-bar{font-size:12px}
  .bottom-nav .nav-link{min-width:0;font-size:11px}
  .detail-overview{grid-template-columns:minmax(85px,31%) minmax(0,1fr)}
}


/* Shared application workspace */
.dictionary-panel{padding:0;overflow:hidden}
.catalog-tabs{display:flex;gap:6px;overflow:auto;padding:8px 18px 11px;scrollbar-width:thin}
.catalog-tabs button{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:6px 12px;border:1px solid #dce5ea;border-radius:8px;background:#fff;font-size:13px;font-weight:650;white-space:nowrap}
.catalog-tabs button:hover{background:#f1f7f7}
.catalog-tabs button[aria-pressed=true]{background:#e5f2f0;border-color:#87b6b3;color:#115b57}
.catalog-tabs button span{font-size:11px;font-weight:750;color:#47656c;background:#eef2f4;padding:1px 6px;border-radius:12px}
.catalog-tabs button[aria-pressed=true] span{background:#cde4e1;color:#0e5350}
.catalog-table thead{background:#f4f7f9}
.catalog-table td,.catalog-table th{padding:10px 12px;border-bottom:1px solid #e6edf0}
.catalog-table th:first-child,.catalog-table td:first-child{padding-left:18px}
.catalog-table th:first-child{width:34%}
.catalog-table th:nth-child(2){width:13%}
.catalog-table th:nth-child(3){width:23%}
.catalog-table th:nth-child(4){width:13%}
.catalog-table th:nth-child(5){width:12%}
.catalog-table td{font-size:14px}
.catalog-table .material-cell .code{display:block;font-size:14px}
.catalog-table .thumb{width:54px;height:54px;flex-basis:54px}
.catalog-table .thumb img{object-fit:cover}
.catalog-table .material-cell small{font-size:12px}
.catalog-type{font-size:13px;color:#344f5a}
.dictionary-panel .catalog-tabs{border-bottom:1px solid var(--line);padding-top:12px;background:#f8fafb}
.dictionary-toolbar{display:grid;grid-template-columns:minmax(90px,1fr) minmax(120px,330px) auto;align-items:center;gap:10px;padding:14px 18px 8px}
label.dictionary-search{display:flex;align-items:center;gap:7px;position:relative}
.dictionary-search>.icon{position:absolute;left:10px;color:var(--muted)}
.dictionary-search input{width:100%;padding-left:34px}
.dictionary-count{padding:2px 18px 9px;font-size:12px}
.dictionary-list{list-style:none;margin:0;padding:0;font-size:14px}
.dictionary-list li{border-top:1px solid var(--line);min-height:41px;padding:9px 18px;overflow-wrap:anywhere}
.dictionary-list li:nth-child(odd){background:#f8fafb}
.dictionary-panel .empty{padding:10px 18px 18px}
.registration-content .editor-types{grid-template-columns:repeat(5,minmax(0,1fr))}
.registration-content .editor-types .category{min-height:94px;background:#fbfcfd;border-color:var(--line)}
.registration-content .editor-types .category.selected{background:#e7f3f1;border-color:#12706c}
.registration-order{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;padding:10px 12px;border-radius:8px;background:#eef5f8;color:#34515e;font-size:13px}
.registration-order span{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.registration-order .icon{width:13px;height:13px;flex-basis:13px}
.registration-actions{border-top:1px solid var(--line);padding-top:12px}
.registration-actions #draft-status{font-size:12px}
.form-span{grid-column:1/-1}
.crimp-fields{display:grid;gap:9px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.gauge-options{display:flex;flex-wrap:wrap;gap:7px}
.gauge-options label{display:flex;align-items:center;gap:5px;min-height:38px;padding:4px 8px;border:1px solid var(--line);border-radius:8px}
.gauge-options label:has(input:checked){background:#e5f2f0;border-color:#87b6b3;color:#115b57}
.gauge-options input{accent-color:var(--teal);margin:0}
.gauge-custom{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:9px 0 3px}
.gauge-custom input{max-width:135px}
@media(max-width:1060px){.registration-content .editor-types{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .analysis-grid{grid-template-columns:minmax(0,1fr)}
  .catalog-tabs{padding-inline:11px}
  .catalog-tabs button{min-height:42px}
  .catalog-table td,.catalog-table th{padding-inline:6px}
  .catalog-table td:first-child{padding-left:11px}
  .catalog-table .thumb{width:46px;height:46px;flex-basis:46px}
  .dictionary-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-inline:11px}
  .dictionary-toolbar h2{grid-column:1/-1}
  .dictionary-toolbar .button{font-size:12px;padding-inline:8px}
  .dictionary-count,.dictionary-list li{padding-inline:11px}
  .registration-content .editor-types{grid-template-columns:repeat(2,minmax(0,1fr))}
  .registration-content .editor-types .category{min-height:77px}
  .registration-actions .actions{flex:1;justify-content:flex-end}
  .registration-actions #draft-status{flex-basis:100%;text-align:right}
}

/* Approved home layout: banner, material cards, catalogue and right rail. */
body:has(.library-workspace){background:#f4f1ea}
.library-topbar,.library-workspace{--line:#e1ddd2;padding-inline:clamp(20px,3vw,46px)}
.library-topbar{background:#fcfaf5}
.library-workspace{max-width:1750px;padding-top:26px}
.library-hero{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);align-items:center;position:relative;min-height:232px;overflow:hidden;isolation:isolate;border-radius:18px;color:#fff;background:radial-gradient(ellipse at 85% 65%,#254b55 0%,transparent 57%),linear-gradient(115deg,#0a1e29,#193844)}
.library-hero::after{content:"";position:absolute;z-index:-1;inset:0 0 0 45%;background-image:linear-gradient(#bad3d419 1px,transparent 1px),linear-gradient(90deg,#bad3d419 1px,transparent 1px);background-size:26px 26px;mask-image:linear-gradient(90deg,transparent,black 55%)}
.library-hero-inner{padding:27px clamp(22px,4vw,52px) 32px}
.library-hero h1{font-size:clamp(34px,5vw,52px);margin:4px 0 8px;color:#fff;overflow-wrap:anywhere}
.library-hero p{color:#c4d3d7;margin-bottom:17px}
.library-hero-art{width:min(86%,254px);justify-self:center;border-radius:10px}
.library-search{max-width:570px;min-width:0}
.library-workspace .primary{background:#ad4424}
.library-workspace .primary:hover,.library-workspace .primary:focus-visible{background:#90351c}
.library-categories{margin:24px 0 22px}
.library-category-grid{display:grid;grid-template-columns:1.25fr repeat(4,minmax(0,1fr));gap:10px}
.library-category-grid .category{min-height:112px;grid-template-columns:minmax(0,1fr) minmax(0,34%)}
.library-category-grid .category.harness{background:#e7efeb}
.library-category-grid .category small{max-width:none}
.library-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(194px,20%);gap:16px;align-items:start}
.library-insights{display:grid;gap:14px;min-width:0}
.library-insights .empty{padding:8px 0 0}
.library-updates a{font-weight:650}
.library-updates small{display:block;color:var(--muted);font-weight:400}
.library-filters{display:flex;flex-wrap:nowrap;align-items:end;gap:7px;padding-bottom:12px;overflow-x:auto;scrollbar-width:thin}
.library-filters label{flex:0 0 auto;font-size:12px;color:var(--muted)}
.library-filters select{font-size:12px;min-height:38px;max-width:160px}
.library-filters button{flex:0 0 auto;min-height:38px;white-space:nowrap}
.library-results .catalog-table th,.library-results .catalog-table td{padding-inline:7px}
.library-results .catalog-table th{background:#f5f2eb}
.library-results .catalog-table .thumb{width:44px;height:44px;flex-basis:44px}
.library-results .catalog-table .material-cell .code{font-size:13px}
.dictionary-panel .dictionary-fields{background:#fff;padding-top:8px}
.dictionary-field{min-width:0}
.dictionary-field-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}
.dictionary-field-row label{grid-column:1}
.dictionary-field-row input,.dictionary-field-row select{width:100%}
.dictionary-field-row .button{min-height:43px;padding-inline:8px}
.dictionary-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 7px;align-items:end;padding:8px;margin-top:5px;border:1px solid var(--line);border-radius:8px;background:#f8fafb}
.dictionary-inline[hidden]{display:none}
.dictionary-inline .form-error{grid-column:1/-1}
@media(max-width:1290px){
  .library-columns{grid-template-columns:minmax(0,1fr)}
  .library-insights{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1000px){
  .library-category-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:760px){
  .library-topbar,.library-workspace{padding-inline:12px}
  .library-topbar{background:#0b1f2a}
  .library-workspace{padding-top:12px}
  .library-hero{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:12px}
  .library-hero-inner{padding:17px 13px}
  .library-hero h1{font-size:34px}
  .library-hero-art{display:none}
  .library-categories{margin:16px 0 13px}
  .library-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .library-category-grid .category{min-height:72px}
  .library-category-grid .category.harness{grid-column:1/-1}
  .library-insights{grid-template-columns:minmax(0,1fr)}
  .library-filters{flex-wrap:wrap;overflow:visible}
  .library-filters label{flex:1 1 29%}
  .library-filters select{width:100%;max-width:100%;min-height:43px}
}

/* Additional sample categories and batch operations. */
.additional-categories{margin-top:10px;grid-template-columns:repeat(5,minmax(0,1fr))}
.additional-categories .category{min-height:88px}
.dictionary-list .dictionary-option{display:flex;align-items:center;justify-content:space-between;gap:12px;overflow-wrap:anywhere}
.dictionary-option .text-button{flex:none}
.import-issues,.archive-preview{max-height:320px;overflow:auto}
.import-issues table{border-collapse:collapse;min-width:560px;width:100%;font-size:.83rem}
.import-issues th,.import-issues td{text-align:left;padding:8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.import-issues th{position:sticky;top:0;background:var(--paper,#fff)}
.catalog-table input[data-archive-id]{min-height:0;width:auto}
@media(max-width:1000px){.additional-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.additional-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.additional-categories .category{min-height:72px}}

.dictionary-field-row>label{position:relative}
.choice-menu{position:absolute;z-index:12;top:100%;left:0;right:0;display:grid;max-height:min(19rem,45vh);overflow:auto;overscroll-behavior:contain;background:white;border:1px solid var(--line);border-radius:9px;box-shadow:0 7px 20px #102d3a26}
.choice-menu[hidden],[data-validation-area][hidden]{display:none}
.choice-menu .muted{margin:8px 10px}
.choice-option{display:block;width:100%;min-height:38px;padding:8px 10px;background:transparent;border:0;border-bottom:1px solid var(--line);text-align:left;white-space:normal;overflow-wrap:anywhere;color:inherit;font:inherit;cursor:pointer}
.choice-option:hover,.choice-option.choice-active,.choice-option[aria-selected=true]{background:#e7f3f1}
.application-summary details{border-top:1px solid var(--line);padding:10px 0}
.application-summary summary{cursor:pointer;overflow-wrap:anywhere}
.application-summary summary small{display:block;margin:.4em 0 0 1em;color:#50636a}
.dictionary-option{flex-wrap:wrap}
