/* Wolf BGS Control — durable Daily Order history */
.wolf-history-panel{border-color:rgba(146,196,255,.22)}
.wolf-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.8rem}
.wolf-history-head p{margin:0;max-width:860px;color:var(--muted);font-size:.78rem;line-height:1.5}
.wolf-history-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin:.75rem 0}
.wolf-history-stats>div{padding:.68rem .75rem;border:1px solid rgba(146,196,255,.12);background:rgba(146,196,255,.025)}
.wolf-history-stats span,.wolf-history-stats strong{display:block}
.wolf-history-stats span{color:var(--muted);font-size:.58rem;font-weight:850;letter-spacing:.065em;text-transform:uppercase}
.wolf-history-stats strong{margin-top:.16rem;color:#eaf5ff;font-size:.94rem}
.wolf-history-list{display:grid;gap:.5rem;margin-top:.8rem}
.wolf-history-record{border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.012)}
.wolf-history-record.is-applied{border-left:3px solid rgba(93,206,151,.5)}
.wolf-history-record.is-prepared{border-left:3px solid rgba(255,181,74,.55)}
.wolf-history-record.is-failed{border-left:3px solid rgba(255,95,95,.62)}
.wolf-history-record>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem .75rem;cursor:pointer;list-style:none}
.wolf-history-record>summary::-webkit-details-marker{display:none}
.wolf-history-record>summary>div:first-child{min-width:0}
.wolf-history-record>summary span,.wolf-history-record>summary strong,.wolf-history-record>summary small{display:block}
.wolf-history-record>summary span{color:#8ab9d9;font-size:.54rem;font-weight:950;letter-spacing:.075em}
.wolf-history-record>summary strong{margin-top:.1rem;font-size:.76rem;color:#edf8ff}
.wolf-history-record>summary small{margin-top:.14rem;color:var(--muted);font-size:.6rem;line-height:1.35}
.wolf-history-record-state{text-align:right;flex:0 0 auto}
.wolf-history-record-state b{display:inline-block!important;padding:.18rem .36rem;border:1px solid rgba(255,255,255,.12);border-radius:3px;color:#b8cbd1;font-size:.54rem;letter-spacing:.06em}
.is-applied .wolf-history-record-state b{border-color:rgba(93,206,151,.3);color:#b8e8cb;background:rgba(58,125,92,.07)}
.is-prepared .wolf-history-record-state b{border-color:rgba(255,181,74,.35);color:#ffdda9;background:rgba(128,80,14,.08)}
.is-failed .wolf-history-record-state b{border-color:rgba(255,95,95,.4);color:#ffd1d1;background:rgba(145,14,14,.11)}
.wolf-history-record-body{padding:.75rem;border-top:1px solid rgba(255,255,255,.06)}
.wolf-history-meta{display:flex;flex-wrap:wrap;gap:.4rem .7rem;margin-bottom:.7rem}
.wolf-history-meta span{padding:.25rem .35rem;border:1px solid rgba(255,255,255,.055);background:rgba(255,255,255,.012);color:var(--muted);font-size:.56rem;letter-spacing:.04em}
.wolf-history-meta b{color:#c9dce2}
.wolf-history-record-body section+section{margin-top:.8rem}
.wolf-history-record-body h4{margin:0 0 .35rem;color:#cce1e7;font-size:.65rem;letter-spacing:.06em;text-transform:uppercase}
.wolf-history-changes,.wolf-history-active{display:grid;gap:.3rem}
.wolf-history-change{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:.6rem;align-items:center;padding:.48rem .55rem;border:1px solid rgba(255,255,255,.055);background:rgba(255,255,255,.012)}
.wolf-history-change>span{display:inline-flex;align-items:center;justify-content:center;padding:.14rem .3rem;border:1px solid rgba(255,255,255,.1);font-size:.5rem;font-weight:950;letter-spacing:.055em}
.wolf-history-change strong,.wolf-history-change small{display:block}
.wolf-history-change strong{font-size:.69rem}
.wolf-history-change small{margin-top:.1rem;color:var(--muted);font-size:.57rem}
.wolf-history-change em{font-style:normal;color:#ffd59e;font-size:.61rem;font-weight:800;white-space:nowrap}
.wolf-history-change.is-added{border-color:rgba(93,206,151,.18)}
.wolf-history-change.is-added>span{border-color:rgba(93,206,151,.32);color:#b8e8cb}
.wolf-history-change.is-revised{border-color:rgba(255,181,74,.18)}
.wolf-history-change.is-revised>span{border-color:rgba(255,181,74,.35);color:#ffdda9}
.wolf-history-change.is-removed{border-color:rgba(255,95,95,.2)}
.wolf-history-change.is-removed>span{border-color:rgba(255,95,95,.38);color:#ffcaca}
.wolf-history-active-order{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.7rem;align-items:center;padding:.45rem .52rem;border:1px solid rgba(255,255,255,.05)}
.wolf-history-active-order strong,.wolf-history-active-order small{display:block}
.wolf-history-active-order strong{font-size:.66rem}
.wolf-history-active-order small{margin-top:.08rem;color:var(--muted);font-size:.55rem}
.wolf-history-active-order>b{color:#ccecff;font-size:.62rem;white-space:nowrap}
.wolf-history-warning{margin:.55rem 0;padding:.55rem .65rem;border:1px solid rgba(255,181,74,.3);background:rgba(128,80,14,.07);color:#ffdda9;font-size:.64rem;line-height:1.4}
.wolf-history-warning.is-failed{border-color:rgba(255,95,95,.34);background:rgba(120,15,15,.08);color:#ffd0d0}
.wolf-history-empty{display:flex;gap:.4rem;align-items:baseline;padding:.65rem;border:1px dashed rgba(146,196,255,.14);color:var(--muted);font-size:.66rem}
.wolf-history-empty strong{color:#c6d8de}
@media(max-width:800px){.wolf-history-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.wolf-history-record>summary{align-items:flex-start}.wolf-history-change{grid-template-columns:68px minmax(0,1fr)}.wolf-history-change em{grid-column:2;white-space:normal}}
@media(max-width:600px){.wolf-history-head{flex-direction:column}.wolf-history-stats{grid-template-columns:1fr}.wolf-history-record>summary{flex-direction:column}.wolf-history-record-state{text-align:left}.wolf-history-change{grid-template-columns:1fr}.wolf-history-change em{grid-column:auto}.wolf-history-active-order{grid-template-columns:1fr}}
