.tech-header,.tech-actions,.tech-card-top,.tech-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.tech-header{margin-bottom:1.5rem}.tech-header h2{font-size:1.8rem;font-weight:900}.tech-muted{color:#bbb;font-size:.875rem}.tech-header p{margin-top:.4rem}
.tech-button{padding:.65rem 1rem;border:1px solid #494136;border-radius:.75rem;background:#1a1916;color:#f5e5be;min-height:44px;font-size:.875rem;font-weight:700;cursor:pointer}.tech-button:hover{background:#30291d}.tech-button.primary{background:#f1e6cf;color:#17130c}.tech-button.danger{color:#ffb8b8;border-color:#6b3535}.tech-button:disabled{opacity:.5;cursor:not-allowed}.tech-button:focus-visible,.tech-gate:focus-visible{outline:2px solid #d4b56d;outline-offset:3px}
.tech-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0 0 1.5rem}.tech-stat{border:1px solid #353027;background:#141310;border-radius:1rem;padding:1.1rem}.tech-stat strong{display:block;font-size:1.8rem;color:#edd49b}.tech-stat span{font-size:.875rem;color:#ccc}
.tech-toolbar{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1.25rem}.tech-toolbar input{flex:1;min-width:12rem}.tech-toolbar input,.tech-toolbar select,.tech-form input,.tech-form select,.tech-form textarea{background:#1a1a1a;color:#fff;border:1px solid #48443a;border-radius:.65rem;padding:.65rem .8rem;min-height:44px;font-size:1rem;width:100%}.tech-toolbar select{width:auto;max-width:100%}
.tech-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:1rem}.tech-card{background:#121212;border:1px solid #353027;border-radius:1rem;padding:1.25rem;min-width:0}.tech-card h3{font-size:1.1rem;font-weight:800;margin:.85rem 0 .3rem;overflow-wrap:anywhere}.tech-card p{overflow-wrap:anywhere}.tech-card .tech-purpose{margin:.8rem 0;color:#ccc;font-size:.95rem;min-height:2.8rem}.tech-code{font-family:monospace;font-size:.875rem;color:#d9bd81;background:#262017;padding:.3rem .55rem;border-radius:.4rem}.tech-badge{display:inline-flex;padding:.3rem .65rem;border-radius:2rem;background:#26221a;color:#e8cd93;font-size:.875rem}.tech-meta{display:flex;gap:.8rem;flex-wrap:wrap;color:#bbb;font-size:.875rem;margin:1rem 0}.tech-gates{display:grid;grid-template-columns:repeat(6,1fr);gap:.4rem;direction:ltr;margin:.8rem 0}.tech-gate{background:#222;border:1px solid #444;color:#ddd;min-height:40px;border-radius:.5rem;font-size:.875rem;cursor:pointer}.tech-gate.passed{background:#153826;border-color:#367b55;color:#b1f3cb}.tech-gate.blocked{background:#422020;border-color:#884545;color:#ffc2c2}.tech-gate.current{outline:2px solid #d0ad65;outline-offset:2px}.tech-card-footer{border-top:1px solid #2c2a25;padding-top:1rem;margin-top:1rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.tech-empty{padding:3rem 1rem;text-align:center;color:#ccc;border:1px dashed #554a35;border-radius:1rem}.tech-activity{margin-top:2rem}.tech-activity h3{font-size:1.15rem;font-weight:800;margin-bottom:1rem}.tech-activity-item{padding:.85rem 0;border-bottom:1px solid #2b2924;overflow-wrap:anywhere}.tech-activity-item p{margin:.3rem 0;font-size:.95rem}.tech-activity-item small{font-size:.8125rem;color:#aaa}
.tech-dialog{width:min(760px,calc(100% - 24px));max-height:90dvh;margin:auto;padding:1.5rem;color:#fff;background:#111;border:1px solid #655333;border-radius:1rem;overflow:auto;direction:rtl}.tech-dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}.tech-dialog h2{font-size:1.35rem;font-weight:800}.tech-dialog .tech-close{background:none;border:0;color:#ddd;font-size:1.5rem;min-width:44px;min-height:44px;cursor:pointer}.tech-form{margin-top:1rem}.tech-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.tech-form label{display:block;font-size:.9rem;color:#ddd}.tech-form label>span{display:block;margin-bottom:.4rem}.tech-form .full{grid-column:1/-1}.tech-form .tech-actions{margin-top:1.3rem;justify-content:flex-end}.tech-error{padding:.8rem;background:#401d1d;color:#ffd1d1;border:1px solid #8d4040;border-radius:.6rem;margin:1rem 0;white-space:pre-wrap}.tech-error[hidden]{display:none}.tech-detail-body{margin-top:1.2rem}.tech-detail-body dl{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}.tech-detail-body dt{font-size:.875rem;color:#bfb8a8}.tech-detail-body dd{margin-top:.3rem;overflow-wrap:anywhere}.tech-note{white-space:pre-wrap;color:#ded8cd;line-height:1.8;margin:1rem 0;overflow-wrap:anywhere}.tech-gate-row{display:grid;grid-template-columns:44px 1fr auto;gap:.8rem;align-items:center;border-bottom:1px solid #302a20;padding:.8rem 0}.tech-gate-row .tech-gate{cursor:default}.tech-dashboard-link{display:block;text-align:right;margin-top:1rem;padding:1rem;border:1px solid #584728;border-radius:.75rem;color:#e8cd93;background:#19160f;font-size:.95rem;width:100%}
#appNotice{position:fixed;bottom:1rem;left:1rem;right:1rem;z-index:300;margin:auto;max-width:650px;padding:1rem;background:#491e1e;color:#fff;border:1px solid #a65a5a;border-radius:.8rem;cursor:pointer}#appNotice[hidden]{display:none}
@media(max-width:640px){.tech-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.tech-form-grid,.tech-detail-body dl{grid-template-columns:1fr}.tech-dialog{padding:1rem}.tech-header h2{font-size:1.55rem}.tech-gate-row{grid-template-columns:36px 1fr}.tech-gate-row>.tech-button{grid-column:2}.tech-toolbar>*{width:100%!important}.tech-card-footer{flex-wrap:wrap}}

body[data-role="worker"] [data-manage],body[data-role="worker"] [data-ceo],body[data-role="pm"] [data-ceo],[data-page][hidden]{display:none!important}
