.mixed-history-section{margin:24px 0;border:1px solid var(--border);border-radius:14px;background:var(--paper);overflow:hidden;color:var(--ink)}
.mixed-history-heading,.mixed-history-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px}
.mixed-history-heading h2{margin:0;font-size:17px;line-height:1.4;font-weight:650}
.mixed-history-count{flex:none;min-width:24px;font-size:13px;line-height:1.4;text-align:center;color:var(--muted)}
.mixed-history-disclosure>summary{font-size:15px;font-weight:600;cursor:pointer;min-height:52px;list-style:none}
.mixed-history-disclosure>summary::-webkit-details-marker{display:none}
.mixed-history-disclosure>summary:before{content:'›';flex:none;font-size:23px;font-weight:400;transform:rotate(0);transition:transform .15s}
.mixed-history-disclosure[open]>summary:before{transform:rotate(90deg)}
.mixed-history-disclosure>summary>span:first-of-type{flex:1}
.mixed-history-row{padding:18px 20px;border-top:1px solid var(--border);min-width:0}
.mixed-history-row-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.mixed-history-row h3{margin:0;font-size:16px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;min-width:0}
.mixed-history-title{color:inherit;text-align:left;font:inherit;padding:0;border:0;background:none;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--border);overflow-wrap:anywhere}
.mixed-history-title:hover{text-decoration-color:currentColor}
.mixed-history-badge{flex:none;max-width:100%;font-size:12px;line-height:1.5;padding:3px 8px;border-radius:20px;background:var(--sage);color:var(--ink)}
.mixed-history-meta,.mixed-history-description,.mixed-history-note,.mixed-history-empty,.mixed-history-status{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.mixed-history-meta{color:var(--muted);margin:7px 0 0}
.mixed-history-description{white-space:pre-wrap;margin:12px 0 0}
.mixed-history-row-footer{display:flex;gap:10px 14px;flex-wrap:wrap;align-items:center;margin-top:13px}
.mixed-history-note{color:var(--muted);margin:0}
.mixed-history-section>.mixed-history-note{padding:0 20px 16px}
.mixed-history-button{min-height:44px;max-width:100%;padding:9px 13px;border:1px solid var(--border);border-radius:9px;background:var(--paper);color:var(--ink);font-size:13px;line-height:1.4;font-weight:600;cursor:pointer;overflow-wrap:anywhere}
.mixed-history-button:hover:not(:disabled){background:var(--sidebar)}
.mixed-history-button:disabled{opacity:.6;cursor:not-allowed}
.mixed-history-details{flex-basis:100%;min-width:0;font-size:13px;line-height:1.65;color:var(--muted)}
.mixed-history-details summary{width:fit-content;max-width:100%;padding:8px 0;min-height:36px;cursor:pointer}
.mixed-history-details p{margin:4px 0}
.mixed-history-empty{margin:0;padding:0 20px 20px;color:var(--muted)}
.mixed-history-status{margin:0;padding:12px 20px;color:var(--muted)}
.mixed-history-status:empty{display:none}
.mixed-history-status p{margin:0 0 8px}
.mixed-history-error{color:var(--ink)}
.mixed-history-error:not(:empty){border-left:3px solid var(--red);padding-left:12px}
.mixed-history-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}
.mixed-history-dialog::backdrop{background:rgba(0,0,0,.4)}
.mixed-history-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px);margin:0}
.mixed-history-dialog header,.mixed-history-dialog footer{flex-shrink:0;padding:16px 20px}
.mixed-history-dialog h2{margin:0;font-size:20px;line-height:1.4;overflow-wrap:anywhere}
.mixed-history-dialog-body{padding:0 20px;overflow:auto;min-height:0;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.mixed-history-dialog-body p{margin:0 0 14px}
.mixed-history-dialog-body .mixed-history-status{padding:0}
.mixed-history-dialog footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.mixed-history-primary{background:var(--yellow);color:#292e29}
.mixed-history-primary:hover:not(:disabled){background:var(--yellow-soft)}
.mixed-history-section :focus-visible,.mixed-history-dialog :focus-visible{outline:3px solid var(--focus,#708568);outline-offset:3px}
@media(max-width:480px){.mixed-history-heading,.mixed-history-disclosure>summary,.mixed-history-row{padding:15px 14px}.mixed-history-row-heading{flex-wrap:wrap;gap:6px}.mixed-history-row h3{flex-basis:100%}.mixed-history-empty,.mixed-history-status,.mixed-history-section>.mixed-history-note{padding-left:14px;padding-right:14px}.mixed-history-dialog header,.mixed-history-dialog footer{padding:14px}.mixed-history-dialog-body{padding:0 14px}.mixed-history-dialog footer .mixed-history-button{flex:1}}
@media(prefers-reduced-motion:reduce){.mixed-history-disclosure>summary:before{transition:none}}
