.plus-history-dialog{width:min(760px,calc(100vw - 28px));max-height:88dvh;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--text);box-shadow:0 28px 90px rgba(0,0,0,.3);overflow:auto;font-family:inherit}
.plus-history-dialog::backdrop{background:rgba(13,18,34,.62);backdrop-filter:blur(8px)}
.plus-history-dialog[open]{animation:plus-history-reveal .23s ease-out}
.plus-history-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.plus-history-dialog header small{color:var(--primary);letter-spacing:.12em;font-size:11px;font-weight:750}
.plus-history-dialog h2{font-size:24px;margin:5px 0 0;line-height:1.4}
.plus-history-dialog svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.plus-history-overview{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--line)}
#plusHistoryStorage{background:var(--primary);color:white;border-radius:12px;padding:12px 16px;font-size:14px;font-weight:750}
#plusHistoryCloud{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}
.plus-history-filters{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.plus-history-filters label{display:grid;gap:7px;font-size:12px;color:var(--muted)}
.plus-history-filters input,.plus-history-filters select{width:100%;min-height:46px;border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--bg);color:var(--text);font:inherit;font-size:14px;box-sizing:border-box}
.plus-history-filters input:focus,.plus-history-filters select:focus{outline:2px solid var(--primary);outline-offset:2px}
#plusHistoryCount{font-size:13px;color:var(--muted)}
.plus-history-list{max-height:45dvh;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:16px;scrollbar-width:thin}
.plus-history-row{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--line);animation:plus-history-reveal .2s ease-out;transition:background .2s}
.plus-history-row:last-child{border-bottom:0}.plus-history-row:hover{background:rgba(99,102,241,.055)}
.plus-history-label{min-width:0;display:grid;gap:6px}.plus-history-label strong{font-size:15px;overflow-wrap:anywhere;line-height:1.6}.plus-history-label small{color:var(--muted);font-size:12px}.plus-history-label .plus-history-deleted{color:#b97728}
.plus-history-actions{display:flex;gap:7px;flex:none}.plus-history-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:38px;min-height:40px;padding:8px;border-radius:10px;transition:transform .18s,background .18s;font-size:12px}
.plus-history-action:hover{transform:translateY(-2px)}.plus-history-action.is-restore{color:var(--primary);border-color:rgba(99,102,241,.3)}.plus-history-action:disabled{opacity:.45;transform:none}
.plus-history-empty{padding:30px;color:var(--muted);text-align:center}.plus-history-dialog footer{display:flex;justify-content:space-between;gap:18px;align-items:center;padding-top:16px}.plus-history-dialog footer p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}.plus-history-dialog footer button{flex:none}#plusHistoryError{color:#d25265;font-size:13px}.plus-history-dialog.is-loading .plus-history-list{opacity:.6}
@keyframes plus-history-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:540px){.plus-history-dialog{padding:16px;border-radius:18px}.plus-history-filters{grid-template-columns:1fr}.plus-history-row{align-items:flex-start;gap:10px;flex-direction:column}.plus-history-actions{align-self:flex-end}.plus-history-dialog footer{align-items:flex-start;flex-direction:column}.plus-history-dialog h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.plus-history-dialog[open],.plus-history-row{animation:none}.plus-history-action,.plus-history-row{transition:none}.plus-history-action:hover{transform:none}.plus-history-dialog::backdrop{backdrop-filter:none}}
.account-history-system{width:min(1120px,calc(100vw - 28px));box-sizing:border-box}.history-system-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.history-kpi{padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--bg);display:flex;align-items:center;justify-content:space-between;gap:8px}.history-kpi span{color:var(--muted);font-size:13px}.history-kpi strong{font-size:24px;color:var(--primary)}.history-status-tabs,.history-detail-folders{display:flex;gap:6px;margin:16px 0;flex-wrap:wrap}.history-status-tabs button,.history-detail-folders button{font:inherit;font-size:13px;color:var(--muted);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:9px 13px;cursor:pointer;transition:background .2s,transform .2s}.history-status-tabs button[aria-pressed=true],.history-detail-folders button[aria-pressed=true]{color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,var(--surface));border-color:var(--primary)}.account-history-system .plus-history-filters{grid-template-columns:1fr 1.5fr 1fr}.history-selection-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;font-size:12px}.history-selection-bar label{display:flex;align-items:center;gap:7px}.history-selection-bar .soft-btn{padding:8px 12px;font-size:12px}.history-system-split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}.history-address-detail{border:1px solid var(--line);border-radius:16px;padding:18px;min-height:240px;min-width:0;background:var(--bg)}.history-address-detail h3{font-size:16px;margin:0 0 14px;overflow-wrap:anywhere}.history-address-detail dl{display:grid;grid-template-columns:auto 1fr;gap:10px;font-size:12px}.history-address-detail dt{color:var(--muted)}.history-address-detail dd{margin:0;overflow-wrap:anywhere}.history-detail-empty{font-size:13px;color:var(--muted);line-height:1.8;padding:15px 0}.account-history-system .plus-history-row{gap:9px;flex-wrap:wrap;padding:13px}.history-row-select{font:inherit;border:0;background:transparent;color:inherit;text-align:start;flex:1;cursor:pointer;min-width:170px;padding:0}.account-history-system .plus-history-actions{flex-wrap:wrap;gap:5px}.account-history-system .plus-history-row .plus-history-actions{width:100%;justify-content:flex-end}.account-history-system .plus-history-row.is-selected{background:color-mix(in srgb,var(--primary) 10%,var(--surface))}.history-message-list{max-height:30dvh;overflow:auto;scrollbar-width:thin}.history-message{display:grid;gap:7px;text-align:start;width:100%;padding:13px 0;border:0;border-bottom:1px solid var(--line);color:var(--text);background:transparent;font:inherit;cursor:pointer;transition:transform .2s}.history-message strong{font-size:14px;overflow-wrap:anywhere}.history-message small,.history-message time{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.history-message:hover{transform:translateX(3px)}.account-history-system input[type=checkbox]{accent-color:var(--primary)}
@media(max-width:760px){.history-system-split{grid-template-columns:1fr}.account-history-system .plus-history-list{max-height:35dvh}.history-system-summary{gap:7px}.history-kpi{padding:10px;flex-direction:column;align-items:start}.account-history-system .plus-history-filters{grid-template-columns:1fr}.account-history-system .plus-history-row{flex-direction:row}.history-row-select{min-width:0}.history-address-detail{padding:14px}.history-selection-bar{gap:8px}}
@media(prefers-reduced-motion:reduce){.history-message,.history-status-tabs button,.history-detail-folders button{transition:none}.history-message:hover{transform:none}}
.account-history-system{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 32px);scroll-padding-top:20px}.account-history-system header{padding-bottom:5px;flex:none}.account-history-system header small{display:block;line-height:1.6}.account-history-system .history-system-split{min-width:0}.account-history-system .plus-history-list{scrollbar-gutter:stable}
