/* engineering history — centralized engineering edit history. */
.engineering-history-dialog{border:0;padding:0;background:transparent;color:#20283d;width:min(620px,calc(100vw - 28px));max-width:620px;}
.engineering-history-dialog::backdrop{background:rgba(12,18,38,.46);backdrop-filter:blur(2px);}
.engineering-history-card{display:flex;flex-direction:column;min-height:360px;max-height:min(74vh,720px);background:#fff;border:1px solid #e4e8f1;border-radius:18px;box-shadow:0 24px 70px rgba(13,24,55,.28);overflow:hidden;}
.engineering-history-head{display:flex;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid #edf0f5;background:linear-gradient(180deg,#fff,#fbfcff);cursor:move;touch-action:none;user-select:none;}
.engineering-history-head-icon{width:38px;height:38px;border-radius:11px;background:#eef2ff;color:#3149a5;display:grid;place-items:center;flex:0 0 auto;}
.engineering-history-head-copy{min-width:0;flex:1;}
.engineering-history-head-copy h2{margin:0;color:#1e2a78;font-size:1.03rem;line-height:1.2;font-weight:800;}
.engineering-history-head-copy p{margin:2px 0 0;color:#747f92;font-size:.76rem;line-height:1.35;}
.engineering-history-close{width:36px;height:36px;border:0;border-radius:10px;background:#f2f4f8;color:#657086;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;box-sizing:border-box;padding:0;line-height:1;}
.engineering-history-close > i,.engineering-history-close > svg{display:block;width:16px;height:16px;line-height:1;flex:0 0 16px;margin:0;padding:0;}
.engineering-history-head .engineering-help-context-btn,
.engineering-history-head .engineering-help-adjacent-close{box-sizing:border-box;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;padding:0!important;margin:0!important;display:inline-flex;align-items:center;justify-content:center;line-height:1;text-align:center;flex:0 0 38px!important;}
.engineering-history-head .engineering-help-context-btn > i,
.engineering-history-head .engineering-help-context-btn > svg,
.engineering-history-head .engineering-help-adjacent-close > i,
.engineering-history-head .engineering-help-adjacent-close > svg{display:block;width:16px;height:16px;margin:0;padding:0;line-height:1;flex:0 0 16px;}
.engineering-history-close:hover{background:#e8ebf2;color:#26366f;}
.engineering-history-summary{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #edf0f5;background:#f8faff;}
.engineering-history-summary span{font-size:.74rem;color:#657086;background:#fff;border:1px solid #e3e8f3;border-radius:999px;padding:6px 9px;}
.engineering-history-summary > span{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:34px;padding:0 11px;line-height:1;text-align:center;}
.engineering-history-summary strong{color:#1e2a78;}
.engineering-history-body{flex:1;min-height:0;overflow:auto;padding:10px 14px 14px;}
.engineering-history-list{display:flex;flex-direction:column;gap:6px;}
.engineering-history-row{display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e8ebf2;border-radius:12px;background:#fff;}
.engineering-history-row.redo{background:#f8fafc;border-style:dashed;opacity:.78;}
.engineering-history-dot{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#eef2ff;color:#3149a5;flex:0 0 auto;font-size:.72rem;}
.engineering-history-row.redo .engineering-history-dot{background:#f1f5f9;color:#64748b;}
.engineering-history-row>div{min-width:0;display:flex;flex-direction:column;gap:2px;}
.engineering-history-row strong{font-size:.82rem;color:#24315f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.engineering-history-row small{font-size:.69rem;color:#7b879b;}
.engineering-history-empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;color:#7b879b;padding:24px;}
.engineering-history-empty i{font-size:1.5rem;color:#4bcffa;}
.engineering-history-empty strong{color:#1e2a78;font-size:.92rem;}
.engineering-history-empty span{font-size:.78rem;max-width:360px;line-height:1.45;}
.engineering-history-footer{display:flex;align-items:center;gap:8px;padding:11px 14px;border-top:1px solid #edf0f5;background:#fbfcff;}
.engineering-history-footer .engineering-history-spacer{flex:1 1 auto;}
.engineering-history-dot{box-sizing:border-box;width:30px;height:30px;min-width:30px;padding:0;display:inline-flex;align-items:center;justify-content:center;line-height:1;flex:0 0 30px;}
.engineering-history-dot > i,.engineering-history-dot > svg{display:block;width:15px;height:15px;margin:0;padding:0;line-height:1;flex:0 0 15px;}
.engineering-history-btn{box-sizing:border-box;position:relative;display:grid;place-items:center;min-width:96px;height:40px;min-height:40px;border:1px solid #dce2ee;background:#fff;color:#26366f;border-radius:10px;padding:0;margin:0;font:inherit;font-size:.78rem;font-weight:750;cursor:pointer;line-height:1;text-align:center;vertical-align:middle;white-space:nowrap;flex:0 0 auto;appearance:none;}
.tt-tool-dialog .engineering-history-btn,
.tt-tool-dialog .engineering-history-close,
.tt-tool-dialog .engineering-history-dot{overflow:visible!important;scrollbar-gutter:auto!important;}
#engineeringHistoryDialog [class*="engineering-history-"]{overflow:visible;scrollbar-gutter:auto;}
.engineering-history-btn-content{width:max-content;max-width:100%;margin:0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1;text-align:center;white-space:nowrap;}
.engineering-history-btn-icon{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center;margin:0;padding:0;}
.engineering-history-btn-icon > i,.engineering-history-btn-icon > svg,.engineering-history-btn-icon > .svg-inline--fa{display:block;width:16px;height:16px;margin:0;padding:0;position:static;inset:auto;transform:none;vertical-align:initial;line-height:1;flex:0 0 16px;}
.engineering-history-btn-label{display:block;margin:0;padding:0;line-height:1;white-space:nowrap;}
.engineering-history-btn:hover:not(:disabled){border-color:#aebbe1;background:#f7f9ff;}
.engineering-history-btn:disabled{opacity:.42;cursor:not-allowed;}
.engineering-history-spacer{flex:1;}
.toolbar .history-group{display:inline-flex;gap:4px;align-items:center;flex:0 0 auto;}
.toolbar .tbtn.history-available{box-shadow:inset 0 0 0 1px rgba(75,207,250,.22);}
@media(max-width:760px){.engineering-history-dialog{width:calc(100vw - 12px);max-width:none;}.engineering-history-card{min-height:300px;max-height:calc(100vh - 12px);border-radius:14px;}.engineering-history-head{cursor:default;}.engineering-history-head-copy p{display:none;}.engineering-history-summary{padding:9px 11px;}.engineering-history-footer{position:sticky;bottom:0;}}
