@import url('./theme.css');
:root{--page-width:1320px}button:disabled{opacity:.45;cursor:wait}.site-main{width:min(var(--page-width),calc(100% - 64px));margin:auto}.site-section{padding:68px 0;border-bottom:1px solid var(--line)}.hero{display:grid;grid-template-columns:1fr 1.1fr;gap:60px;align-items:center;padding:72px 0 60px}.hero h1{font-size:clamp(32px,3.8vw,56px);line-height:1.2;font-weight:600;letter-spacing:-.04em;margin:16px 0 24px;color:var(--specifi-navy)}.hero p{font-size:17px;max-width:490px;line-height:1.9;color:var(--muted)}.hero-media{background:#e5e9e9;padding:16px;border:1px solid var(--line)}.hero-media img{display:block;width:100%;height:370px;object-fit:cover;object-position:center}.hero-media figcaption{padding:14px 3px 3px;font-size:12px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 22px;min-height:44px;background:#fff;border:1px solid var(--line);font-size:14px;text-decoration:none;cursor:pointer}.btn.primary{background:var(--specifi-navy);border-color:var(--specifi-navy);color:white}.btn.accent{background:var(--specifi-orange);color:white;border-color:var(--specifi-orange)}.btn.small{min-height:34px;padding:7px 12px;font-size:12px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.intro-line{display:flex;justify-content:space-between;gap:32px;align-items:end;margin-bottom:32px}.intro-line h2{font-size:32px;font-weight:500;color:var(--ink);margin:8px 0}.intro-line p{max-width:480px;line-height:1.8;color:var(--muted)}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:36px}.service-grid article{border-top:2px solid var(--specifi-navy);padding-top:24px}.service-grid h3{font-size:21px;font-weight:500;margin:12px 0}.service-grid p{line-height:1.9;color:var(--muted)}.number{font-size:13px;letter-spacing:.12em;color:var(--specifi-orange)}.role-row{display:grid;grid-template-columns:1fr 1fr;gap:50px}.role-row article{padding:32px;background:#fff;border:1px solid var(--line)}.role-row h3{font-size:28px;margin:12px 0}.role-row li{margin:15px 0;line-height:1.7}.foot{padding:40px 0;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.login-shell{max-width:960px;margin:70px auto;display:grid;grid-template-columns:1fr 1fr;min-height:480px;border:1px solid var(--line);background:#fff}.login-copy{background:var(--specifi-navy);padding:52px 40px;color:white}.login-copy h1{font-size:34px;line-height:1.4;margin:20px 0}.login-copy p{line-height:1.9;color:#d4e0f2}.login-form{padding:42px}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:28px}.tabs button{padding:12px 0;border-bottom:2px solid transparent}.tabs button.active{border-color:var(--specifi-orange);color:var(--specifi-navy)}label.field{display:flex;flex-direction:column;gap:9px;margin:16px 0;font-size:13px;color:var(--muted)}input,select,textarea{border:1px solid var(--line);background:#fff;padding:11px 12px;width:100%;border-radius:0}input[type=checkbox]{width:auto}.error{color:#a33321;font-size:13px;line-height:1.7;min-height:24px}.muted{color:var(--muted);font-size:13px;line-height:1.8}.workspace{width:min(1500px,calc(100% - 48px));margin:32px auto 70px}.workspace-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:24px 0}.workspace-head h1{font-size:29px;margin:8px 0;font-weight:500}.project-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:26px}.project-list{background:white;border:1px solid var(--line);align-self:start}.project-list h2{font-size:14px;padding:18px;margin:0;border-bottom:1px solid var(--line)}.project-list button{display:block;width:100%;text-align:left;padding:18px;border-bottom:1px solid var(--line-soft);line-height:1.7}.project-list button.selected{border-left:3px solid var(--specifi-orange);background:#f3f6f9}.project-list small{display:block;color:var(--muted);margin-top:4px}.panel-flat{background:white;border:1px solid var(--line);padding:26px}.panel-flat h2{font-size:21px;font-weight:500;margin:0 0 18px}.project-tabs{display:flex;flex-wrap:wrap;gap:22px;background:white;border-bottom:1px solid var(--line);padding:0 22px}.project-tabs button{padding:17px 0;border-bottom:2px solid transparent;font-size:13px}.project-tabs button.active{border-color:var(--specifi-orange);color:var(--specifi-navy)}.tab-content{background:white;border:1px solid var(--line);border-top:0;padding:26px;min-height:480px}.state{display:inline-block;padding:5px 9px;font-size:12px;background:#edf2f5;color:var(--specifi-navy)}.demo-label{font-size:11px;letter-spacing:.05em;color:var(--muted)}.form-row{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.form-row .field{min-width:130px;flex:1}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.product-check{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--line-soft);font-size:13px;align-items:center}.product-check small{display:block;color:var(--muted);margin-top:5px}.product-check strong{margin-left:auto;white-space:nowrap;font-weight:500}.viewer{width:100%;height:480px;margin:20px 0;background:#e7ebed}.viewer canvas{display:block;max-width:100%}.layout-image{display:block;width:100%;max-height:440px;object-fit:contain;background:#f6f7f7}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th,.data-table td{padding:15px 10px;border-bottom:1px solid var(--line);text-align:left}.data-table th{font-weight:500;color:var(--muted);background:#f7f8f8}.money{font-size:32px;color:var(--specifi-navy);font-weight:500;margin:20px 0}.notice{background:#f6f4ef;padding:14px 18px;line-height:1.8;font-size:13px;border-left:2px solid var(--specifi-orange);margin:18px 0}.timeline{padding-left:24px;border-left:1px solid var(--line)}.timeline p{position:relative;margin:24px 0;line-height:1.8}.timeline p:before{content:'';position:absolute;width:7px;height:7px;background:var(--specifi-orange);left:-28px;top:7px}.toolbar-status{font-size:12px;line-height:1.8;margin-top:12px;color:var(--muted)}.empty{padding:70px 28px;text-align:center;color:var(--muted)}.empty h2{color:var(--ink);font-weight:500}.section-stack{display:grid;gap:24px}.footer-note{margin:24px 0;font-size:12px;color:var(--muted)}[hidden]{display:none!important}@media(max-width:950px){.hero{grid-template-columns:1fr;gap:22px;padding-top:38px}.hero-media{margin:0}.hero-media img{height:300px}.project-layout{grid-template-columns:1fr}.project-list{max-height:220px;overflow:auto}.role-row,.service-grid{gap:18px}.specifi-topbar nav{display:none}.login-shell{margin:25px}.workspace{width:calc(100% - 28px)}}@media(max-width:620px){.site-main{width:calc(100% - 32px)}.hero-media img{height:210px}.role-row,.service-grid,.login-shell{grid-template-columns:1fr}.login-copy{padding:26px}.login-copy h1{font-size:24px}.login-form{padding:26px}.intro-line{display:block}.site-section{padding:38px 0}.check-grid{grid-template-columns:1fr}.tab-content{padding:16px}.project-tabs{gap:15px;padding:0 12px}.viewer{height:350px}.foot{display:block}.brand-label{display:none}.workspace-head{align-items:start;flex-direction:column}}
/* Product library follows the shared workspace shell. */
.library-title{margin:18px 0}.library-title h2{font-size:25px;font-weight:500;margin:8px 0}.library-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px}.library-secondary{display:block;margin-top:5px;color:var(--muted);font-size:11px}.library-detail-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:28px;margin:24px 0}.library-viewer{height:360px;background:#edf0f1;min-width:0}.library-viewer canvas{display:block;max-width:100%;touch-action:none}.library-summary{padding:12px 0}.library-summary h3{font-weight:500;font-size:22px;margin:14px 0}.library-sections{padding:0;margin-top:24px}#library-panel{padding-top:10px;min-width:0}#library-panel .field small{font-size:11px;color:var(--muted)}.library-filters .field{min-width:0}.library-filters input,.library-filters select{min-width:0}.library-detail-grid>div{min-width:0}@media(max-width:1100px){.library-filters{grid-template-columns:1fr 1fr}.library-detail-grid{grid-template-columns:1fr}.library-viewer{height:340px}}@media(max-width:620px){.library-filters{gap:0 10px}.library-viewer{height:280px}.library-summary{padding:0}.library-detail-grid{gap:5px}.library-sections{gap:16px}.form-row .field{min-width:110px}}
.library-title .state{flex-shrink:0;white-space:nowrap}

/* Product configuration workspace */
.library-workspace{margin-top:14px}
.library-workspace>.workspace-head{margin:10px 0 14px;align-items:center}
.library-workspace>.workspace-head .eyebrow,.library-workspace #page-subtitle{display:none}
.library-workspace>.workspace-head h1{font-size:22px;margin:0}
.library-workspace #error:empty,.library-workspace #activity:empty{display:none}
.library-workspace>.project-layout{grid-template-columns:minmax(0,1fr)}
.library-workspace>.project-layout>.project-list{display:none}
.shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.shelf-heading h2{margin:0;font-size:23px;font-weight:500}
.shelf-heading p{margin:3px 0 0}
.shelf-config-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,1fr);gap:28px;align-items:start}
.shelf-config-grid>section{min-width:0}
.shelf-card-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.shelf-card-heading h3,.shelf-parameter-card h3{font-size:17px;font-weight:500;margin:0}
.shelf-model-card .library-viewer{height:360px}
.shelf-model-spec{font-size:15px;font-weight:500;line-height:1.7;margin:12px 0 0}
.shelf-model-card #library-model-label{margin:3px 0 12px}
.shelf-parameter-card{border:1px solid var(--line);padding:18px 20px}
.shelf-parameter-card #library-panel{padding-top:4px}
.shelf-parameter-card label.field{margin:8px 0;gap:5px;min-width:0}
.shelf-parameter-card label.shelf-version{margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.shelf-parameter-card input,.shelf-parameter-card select{min-width:0;padding:9px 10px}
.shelf-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.shelf-fields .field small{font-size:11px}
.shelf-spacing{font-size:12px;background:#f1f5f6;padding:10px 12px;line-height:1.7;margin:8px 0 12px}
.shelf-submit .btn{flex:1;padding:10px;white-space:nowrap}
.shelf-submit .btn.primary{flex:1.7}
.shelf-parameter-card #library-dirty{font-size:12px;margin:8px 0}
.shelf-details{border-top:1px solid var(--line);padding:10px 0 0;margin-top:10px;font-size:13px;line-height:1.7}
.shelf-details summary{cursor:pointer;color:var(--specifi-navy)}
.field-error{font-size:12px;color:#a33321;line-height:1.6}
.shelf-parameter-card [aria-invalid=true]{border-color:#a33321;background:#fff9f7}
.shelf-changes{padding:12px 14px;border-left:2px solid var(--specifi-orange);background:#fff8ef;font-size:13px;line-height:1.7;margin:12px 0}
.shelf-changes ul{padding-left:18px;margin:6px 0}
.shelf-changes small{color:var(--muted)}
.shelf-task{border-top:1px solid var(--line);padding-top:12px;margin-top:14px;font-size:14px}
.shelf-task [data-task-elapsed]{display:inline-block;margin-left:12px;font-size:12px;color:var(--muted)}
.shelf-task p{margin:6px 0 12px}
.shelf-detail .library-sections{margin-top:18px}
.shelf-detail #library-draft-notice p{margin:0 0 8px}
.shelf-detail #library-quick-results .btn{padding:10px 16px}
@media(min-width:1101px){.shelf-model-card{position:sticky;top:18px}}
@media(max-width:800px){.shelf-config-grid{grid-template-columns:minmax(0,1fr);gap:18px}.shelf-model-card .library-viewer{height:260px}.shelf-heading{align-items:start}.shelf-heading .actions{align-items:start}.shelf-heading h2{font-size:21px}.shelf-parameter-card{padding:14px}.shelf-submit .btn{white-space:normal}.shelf-card-heading .muted{font-size:11px}}
.library-workspace>.workspace-head{flex-direction:row}
.shelf-heading .state{flex-shrink:0;white-space:nowrap}
.shelf-changes li,#shelf-saved-summary{overflow-wrap:anywhere}
.assembly-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.assembly-facts>div{background:#f1f5f6;padding:14px;font-size:14px;line-height:1.7}
.assembly-facts span{display:block;color:var(--muted);font-size:12px;margin-top:6px}
.assembly-hash{overflow-wrap:anywhere}
@media(max-width:700px){.assembly-facts{grid-template-columns:minmax(0,1fr)}}

.review-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(260px,1.5fr) minmax(250px,1fr);gap:20px}.review-grid section{min-width:0}.review-grid input:not([type=checkbox]),.review-grid select,.review-grid textarea{max-width:100%}.review-grid pre{white-space:pre-wrap;word-break:break-word}@media(max-width:1100px){.review-grid{grid-template-columns:1fr}.review-grid section:first-child{max-height:300px;overflow:auto}}

/* Shared Web design follows legacy module compatibility styles. */
.rule-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:18px 0}
.scenario-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.scenario-grid .panel-flat{padding:14px}
.tag-list{display:flex;flex-wrap:wrap;gap:8px}.tag{display:inline-block;padding:6px 9px;background:#f1f5f6;border:1px solid var(--line);font-size:12px;color:var(--muted)}
.rule-slots{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.rule-slots summary{cursor:pointer;color:var(--muted);font-size:12px}
@media(max-width:820px){.rule-editor-grid{grid-template-columns:1fr}}
