*{box-sizing:border-box}body{margin:0;background:#f4f6f9;color:#172b3d;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;border:1px solid #c6d0da;border-radius:8px;padding:9px 14px;background:white;color:#243d50;font-weight:600}button:hover{background:#edf4f9}button:disabled{cursor:not-allowed;opacity:.5}.primary{background:#146d68;color:white;border-color:#146d68}.primary:hover{background:#105752}.sidebar{position:fixed;width:226px;inset:0 auto 0 0;background:#192e40;color:#fff;padding:28px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:#74d5bd;font-size:31px;font-weight:700;text-decoration:none;padding:0 8px 36px}.brand span{color:#fff;font-size:19px}.brand small{display:block;color:#a4bdca;font-size:9px;letter-spacing:1.5px;margin-top:3px}nav{display:grid;gap:7px}nav button{text-align:left;border:0;background:transparent;color:#cbd8e2;font-size:14px;padding:13px 15px}nav button.active{background:#304c61;color:white}nav button:hover{background:#294557}.sidebar-foot{margin-top:auto;padding:20px 14px 0;font-size:12px;color:#c1d2de}.sidebar-foot span{color:#8da6b7}.shell{margin-left:226px;padding:32px 40px 60px;max-width:1600px}header{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:25px}h1{font-size:29px;letter-spacing:-.6px;margin:4px 0 0}h2{font-size:20px;margin:0 0 14px}h3{font-size:16px;margin:0 0 8px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#687f90;font-weight:700}.persona{font-size:11px;color:#60778a;display:grid;gap:4px}.persona select{min-width:255px}.test-banner{display:flex;gap:18px;align-items:flex-start;background:#eaf2f5;border:1px solid #d4e3e8;border-radius:10px;padding:14px 18px;font-size:12px;margin-bottom:24px;color:#486577}.test-banner strong{min-width:138px;color:#214b5d}.grid{display:grid;gap:20px;grid-template-columns:repeat(3,1fr)}.metric{background:white;border:1px solid #dde5eb;border-radius:12px;padding:22px}.metric strong{display:block;font-size:32px;font-weight:600;margin:5px 0}.muted,small{color:#708494}small{font-size:12px}.panel{background:white;border:1px solid #dde5eb;border-radius:12px;padding:24px;margin:22px 0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.panel-head h2{margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.empty{padding:35px 20px;text-align:center;color:#708494;background:#f7f9fb;border:1px dashed #ccd8e1;border-radius:10px}.empty strong{display:block;color:#27485c;font-size:18px;margin-bottom:8px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.step{border:1px solid #d9e3eb;border-radius:10px;padding:16px}.step b{color:#146d68;font-size:22px}.step strong{display:block;margin:7px 0}.step p{margin:0;color:#6b8090;font-size:12px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#6d8293;font-weight:600;background:#f7f9fb}th,td{padding:13px 12px;border-bottom:1px solid #e8edf1;vertical-align:top}td strong{display:block}.badge{display:inline-block;border-radius:20px;padding:4px 9px;font-size:11px;background:#eaf4ee;color:#28714c;white-space:nowrap}.badge.warn{color:#886326;background:#fff3d9}.badge.gray{background:#eef2f6;color:#576e80}.badge.red{background:#fff0ed;color:#a14e3f}.link{background:transparent;border:0;padding:0;color:#146d68;text-align:left}.line{border-top:1px solid #e1e8ee;padding:20px 0}.line:first-child{border:0}.line-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.numbers{display:flex;flex-wrap:wrap;gap:24px;margin:14px 0}.numbers div{font-size:11px;color:#6d8293}.numbers strong{display:block;font-size:19px;color:#254459}.notice{padding:12px 15px;background:#fff7e7;border-left:3px solid #ddb460;border-radius:5px;margin:12px 0;font-size:13px}.notice.info{background:#edf6f4;border-color:#70b5a5}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.toolbar input{flex:1;min-width:180px}.stack{display:grid;gap:12px}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:grid;gap:6px;font-size:13px;color:#405b6e}input,textarea,select{padding:10px 11px;border:1px solid #c9d5df;border-radius:7px;background:white;color:#203e53;width:100%;min-width:0}textarea{min-height:110px;resize:vertical}input:focus,textarea:focus,select:focus,button:focus-visible{outline:2px solid #6eb5a8;outline-offset:2px}dialog{border:0;border-radius:14px;box-shadow:0 25px 90px #132c4755;padding:26px;width:min(660px,94vw);max-height:90vh;color:#203e53}dialog::backdrop{background:#112b4366}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.dialog-head h2{margin:0}.icon{border:0;padding:0 8px;font-size:24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.error{background:#ffede9;color:#9a3025;padding:12px;border-radius:8px;margin:12px 0}.success{background:#e2f3ec;color:#28694d;padding:12px;border-radius:8px;margin-bottom:16px}.subhead{display:flex;align-items:center;gap:14px;margin-bottom:20px}.help{font-size:12px;color:#67808f;margin:0}.task-title{max-width:400px}.unread{border-left:3px solid #359681}.timeline{padding:12px 0;border-bottom:1px solid #e7edf2}.timeline strong{font-size:13px}.timeline p{margin:3px 0 0;font-size:12px;color:#6c8393}@media(max-width:950px){.shell{padding:24px;margin-left:185px}.sidebar{width:185px;padding:24px 12px}.brand{font-size:24px;gap:7px}.brand span{font-size:16px}.steps{grid-template-columns:1fr 1fr}.test-banner{display:block}.test-banner strong{display:block;margin-bottom:6px}header{align-items:flex-start;flex-direction:column}.persona{width:100%}}@media(max-width:620px){.sidebar{position:static;width:auto;padding:14px 18px}.brand{padding-bottom:12px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{white-space:nowrap}.sidebar-foot{display:none}.shell{margin-left:0;padding:22px 16px}.grid{grid-template-columns:1fr}.metric strong{font-size:25px}.steps,.row{grid-template-columns:1fr}.panel{padding:18px}.panel-head{align-items:flex-start;flex-direction:column}.numbers{gap:14px}}

[hidden]{display:none!important}section.stack{border:0}fieldset{border:1px solid #d5e1e8;border-radius:9px;padding:14px;display:grid;gap:12px}legend{font-size:12px;color:#53778a}label.check{display:flex;align-items:center;gap:9px}label.check input{width:auto}details{margin:16px 0}summary{cursor:pointer;color:#146d68;font-size:13px;font-weight:600;margin-bottom:10px}

.block{display:block}.login-panel{max-width:560px;margin:36px auto}.login-panel form{margin-top:22px}#auth-error{color:#9a3025}#account-bar{font-size:13px}fieldset .check{font-size:13px}

.company-logo{max-width:180px;max-height:100px;object-fit:contain} details>.stack{margin-top:16px} summary{cursor:pointer;font-weight:600}

/* Keep secondary table details legible instead of running into primary labels. */
.table-wrap td small{display:block;margin-top:3px}

/* System-owned technology matrix. Shared norm forms remain accessible above it. */
.technology-table{margin:20px 0;border:1px solid #d5e1e8;border-radius:9px;max-height:65vh;overflow:auto}
.technology-table table{min-width:1100px;border-collapse:separate;border-spacing:0}
.technology-table th{position:sticky;top:0;z-index:3}
.technology-table .tech-name{position:sticky;left:0;min-width:260px;max-width:320px;background:#fff;z-index:2;box-shadow:2px 0 4px #1832460a}
.technology-table th.tech-name{z-index:4;background:#f7f9fb}
.technology-table td{min-width:140px;background:#fff}
.technology-table td:nth-child(4){min-width:100px}
.technology-table td.tech-material{min-width:220px}
.technology-table .tech-process td{background:#e8f2f1;border-top:2px solid #a5c9c3}
.technology-table .tech-optional td{background:#faf9f4}
.technology-table label{font-size:11px;margin-bottom:8px}
.technology-table button{font-size:11px;padding:5px 8px;margin-top:4px}
.technology-table select,.technology-table input{padding:7px 8px;font-size:12px}
.technology-table .actions{gap:4px}
.technology-table small{display:block;white-space:normal}
.technology-table .tech-name strong{font-size:14px}
#technology-preview{margin-top:18px}
#technology-add-process{max-width:420px}
.tech-choice{border-bottom:1px solid #d5e1e8;padding:12px 0}
#rule-effects{display:grid;gap:12px}
@media(min-width:1250px){.shell:has(.technology-table){max-width:none;padding-left:24px;padding-right:24px}}

.line-head.line > div > small {display:block;margin-top:4px}
dialog:has(#quantity-rooms){width:min(1180px,96vw)}
.quantity-room-table{border:1px solid #d9e3eb;border-radius:8px;max-height:42vh;overflow:auto}
.quantity-room-table th,.quantity-room-table td{padding:7px 5px}
.quantity-room-table th{position:sticky;top:0;z-index:1;font-size:10px;min-width:105px}
.quantity-room-table td:first-child,.quantity-room-table th:first-child{min-width:170px;position:sticky;left:0;background:#f7f9fb;z-index:2}
.quantity-room-table input{font-size:13px;padding:8px 6px;min-width:90px}
.quantity-transfer{background:#edf6f4;border:1px solid #d4e7e2;border-radius:8px;padding:14px;margin:15px 0}
.quantity-transfer .panel-head{margin-bottom:4px;font-size:13px}
.quantity-transfer .numbers{margin:8px 0}

/* Company execution conditions and their offer snapshot. */
.ec-table table{min-width:820px}.ec-table td{vertical-align:top}.ec-table td:nth-child(2){min-width:180px}.ec-table .ec-text{min-width:240px;max-width:620px;display:block;max-height:9em;overflow:auto}.ec-text{white-space:pre-wrap;overflow-wrap:anywhere}.ec-table input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent,#176e69);cursor:pointer}.ec-table input:disabled{cursor:default}.ec-inactive{opacity:.65}.ec-flags{display:flex;gap:18px;flex-wrap:wrap}.ec-flags label{display:flex;align-items:center;gap:8px}.ec-flags input{width:auto}.ec-preview li{padding:6px 0}.ec-translation textarea{min-height:100px}
/* Shared technical settings: one definition, company-specific columns. */
.ct-matrix table{min-width:760px}.ct-matrix th[scope=row]{min-width:220px;text-align:left}.ct-matrix td{min-width:220px}.ct-matrix input,.ct-matrix select{width:100%;padding:8px 10px;min-height:38px}.ct-matrix td button{margin:3px 3px 3px 0}.ct-copy-choice,.ec-company-flag{display:flex;align-items:center;gap:8px;margin:6px 0;white-space:nowrap}.ct-copy-choice input,.ec-company-flag input{width:18px;height:18px;flex:none}.ec-shared td:first-child{min-width:300px;max-width:480px}.ec-shared .ec-text{max-width:460px;margin-top:6px}.ec-shared td:not(:first-child){min-width:190px}.ct-matrix input:disabled,.ct-matrix select:disabled{background:#f5f7f8;color:#536a76}
.ct-matrix.ws-table table{table-layout:fixed}.ct-matrix.ws-table th:first-child{width:220px;min-width:220px;max-width:220px;white-space:normal}.ct-matrix.ws-table th[scope=row]{top:auto;font-size:13px;letter-spacing:0;text-transform:none;color:#405b6e}.ct-matrix th[scope=row] small{display:block;font-weight:400;margin-top:3px}.ec-shared input[type=checkbox],[data-ec-company-row] input[type=checkbox]{min-width:18px;width:18px;height:18px}.ec-shared.ws-table th:first-child{white-space:normal}
