body[data-web-variant="open"] #dashboard #web-sidebar #web-history-toggle {width:100%;display:flex;align-items:center;gap:11px;min-height:44px;box-sizing:border-box;padding:11px 12px;border:0;border-radius:11px;background:transparent;color:var(--web-muted);font:500 13px/1.4 system-ui,sans-serif;text-align:left;cursor:pointer}
body[data-web-variant="open"] #dashboard #web-sidebar #web-history-toggle:hover,body[data-web-variant="open"] #dashboard #web-sidebar #web-history-toggle[aria-expanded="true"] {background:var(--web-surface);color:var(--web-text)}
#web-history-toggle::after {content:'⌄';margin-left:auto;transition:transform .15s}
#web-history-toggle[aria-expanded="true"]::after {transform:rotate(180deg)}
#web-history-toggle svg {order:-1;width:18px;height:18px;flex:none}
#web-sidebar-history-list {display:flex;flex-direction:column;gap:5px;padding:4px 0 12px 8px;max-height:none;overflow:visible;overscroll-behavior:auto}
#web-sidebar-history-list[hidden] {display:none!important}
.web-history-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:center;flex-shrink:0}
.web-history-open,.web-history-delete,.web-history-more {font:inherit;cursor:pointer;border:0;background:transparent;color:inherit;border-radius:7px}
.web-history-open {min-width:0;padding:10px 6px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.web-history-delete {padding:10px 8px;font-size:12px;color:var(--web-danger,#e16a70);opacity:1;visibility:visible}
.web-history-open:hover,.web-history-delete:hover,.web-history-more:hover {background:rgba(127,127,127,.13)}
.web-history-more {padding:10px;font-size:12px;text-align:left}
.web-history-note {padding:8px;margin:0;font-size:12px;opacity:.75}
.web-history-delete:disabled,.web-history-more:disabled {opacity:.5;cursor:wait}
.web-history-viewer {width:min(720px,calc(100vw - 32px));max-height:85dvh;box-sizing:border-box;padding:20px;border:1px solid rgba(127,127,127,.3);border-radius:16px;background:var(--web-surface,#171a21);color:var(--web-text,#f0f1f5);overflow:auto}
.web-history-viewer::backdrop {background:rgba(0,0,0,.6)}
.web-history-viewer-header {display:flex;align-items:flex-start;gap:16px;justify-content:space-between}
.web-history-viewer-header h2 {font-size:17px;line-height:1.5;margin:0 0 16px;overflow-wrap:anywhere}
.web-history-close {border:1px solid rgba(127,127,127,.4);border-radius:8px;padding:8px 12px;background:transparent;color:inherit;cursor:pointer;flex:none}
.web-history-message {padding:12px 14px;margin:0 0 12px;border-radius:10px;background:rgba(127,127,127,.1)}
.web-history-message.user {background:rgba(81,142,185,.12)}
.web-history-message strong {font-size:12px;opacity:.75}
.web-history-message p {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:6px 0 0}
body[data-web-variant="open"] #dashboard #web-sidebar .web-history-open {display:block!important;justify-content:flex-start!important;text-align:start!important}
.web-history-action-dialog{max-width:430px}
#web-history-viewer{max-width:720px}
.web-history-menu-actions,.web-history-fields{display:grid;gap:8px}
body[data-web-variant="open"] #web-history-actions .web-history-menu-actions button{display:block!important;width:100%;padding:12px 14px;border:1px solid var(--web-border,#555);border-radius:9px;background:var(--web-surface,#252830);color:var(--web-text,#eee);font:inherit;text-align:start!important;cursor:pointer}
body[data-web-variant="open"] #web-history-actions [data-history-action="delete"]{color:#e67c83}
.web-history-fields label{display:grid;gap:6px;margin:10px 0;color:inherit;font:inherit}
.web-history-action-dialog input{box-sizing:border-box;width:100%;min-width:0;padding:11px 12px;border:1px solid var(--web-border,#555);border-radius:8px;background:var(--web-elevated,#22252c);color:inherit;font:inherit}
.web-history-action-dialog button:not(.web-history-close){padding:10px 13px;border:1px solid var(--web-border,#555);border-radius:8px;background:var(--web-surface,#252830);color:inherit;font:inherit;cursor:pointer}
.web-history-action-dialog p{font-size:13px;line-height:1.6;color:inherit}
.web-history-error{color:#f28b91!important}
#web-history-share>button{margin:10px 5px 0 0}
#web-history-share input{font-size:12px}
body[data-web-variant="open"] #dashboard #web-sidebar .web-history-options{display:block;width:32px;height:34px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--web-text);font:600 22px/1 system-ui;cursor:pointer}
body[data-web-variant="open"] #dashboard #web-sidebar .web-history-options:hover{background:var(--web-surface)}
.web-history-tabs{display:flex;gap:5px;position:sticky;top:0;background:var(--web-sidebar,#171717);z-index:1;padding-bottom:5px}
body[data-web-variant="open"] #dashboard #web-sidebar .web-history-tabs button{display:block;padding:7px 9px;min-height:32px;border:1px solid var(--web-border,#444);border-radius:8px;background:transparent;color:var(--web-muted,#bbb);font:500 11px system-ui;cursor:pointer}
body[data-web-variant="open"] #dashboard #web-sidebar .web-history-tabs button[aria-pressed="true"]{background:var(--web-surface,#333);color:var(--web-text,#fff)}
.web-history-note:empty{display:none}
body[data-web-variant="open"] #assistant-chat #web-history-current{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;margin:0;padding:10px 8px;border-bottom:1px solid var(--web-border);color:var(--web-text)}
body[data-web-variant="open"] #assistant-chat #web-history-current[hidden]{display:none!important}
#web-history-current h2{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 14px/1.5 system-ui,sans-serif}
#web-history-current .web-history-close{font:400 12px/1.4 system-ui,sans-serif}
#web-history-current-note{flex:0 0 100%;margin:0;color:var(--web-muted);font:400 12px/1.5 system-ui,sans-serif}
#web-history-current-note:empty{display:none}
.web-history-row[data-selected="true"]{border-radius:8px;box-shadow:inset 2px 0 var(--web-accent);background:var(--web-surface)}

.web-history-row[data-opening="true"]{opacity:.65}
.web-history-open[aria-busy="true"]{cursor:progress}

body[data-web-variant="open"] #web-sidebar{overflow-x:hidden;overflow-y:auto;scroll-behavior:auto;scrollbar-gutter:stable;touch-action:pan-y}
