/* Two recovery spaces; archived and deleted files are restored before viewing. */
.history-drawer .activity-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:5px;margin:0 0 23px;background:#eee8f0;border:1px solid #e6ddea;border-radius:17px}
.history-space-tab{--space-ink:#816092;display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:77px;min-width:0;padding:15px 16px;border:1px solid transparent;border-radius:12px;background:transparent;color:#95839d;text-align:left;cursor:pointer;transition:background .16s,box-shadow .16s,color .16s;font:inherit}
.history-space-tab[data-history-space=trash]{--space-ink:#a76583}
.history-space-tab[aria-selected=true]{background:linear-gradient(125deg,#fffdfef5,#faf7fc);border-color:#ded0e4;color:var(--space-ink);box-shadow:0 3px 12px #59366e0c}
.history-space-tab:hover{color:var(--space-ink);background-color:#ffffff5c}
.history-space-icon{display:grid;place-items:center;width:27px;height:27px}
.history-space-icon svg,.history-empty-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.history-space-label{font-size:16px;font-weight:500;line-height:1.3}
.history-space-tab strong{font-family:"FILEO Grotesk",sans-serif;font-size:27px;font-weight:500;line-height:1;font-variant-numeric:tabular-nums}
.history-space-description{margin:0 0 24px;padding:0 3px}
.history-space-description p{font-size:14px;line-height:1.6;margin:0 0 12px;color:#7d6a86;max-width:440px}
.history-space-description>span{font-size:12px;color:#a08ea8;font-variant-numeric:tabular-nums}
.history-list-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 2px 12px;border-bottom:1px solid #ded4e5;font-size:12px;color:#9a85a3}
.history-select-all{display:flex;align-items:center;gap:12px;min-height:30px;cursor:pointer}
.history-drawer input[type=checkbox]{appearance:auto;width:18px;height:18px;flex:none;margin:0;accent-color:#8b648f;cursor:pointer}
.history-space-files{margin:0;padding:0;list-style:none}
.history-file-row{display:grid;grid-template-columns:18px 38px minmax(0,1fr) auto;gap:15px;align-items:center;padding:20px 2px;border-bottom:1px solid #e8e0ec;transition:background .15s}
.history-file-row.is-selected{background:linear-gradient(90deg,#eee3f241,#f1eaf61f)}
.history-file-type{width:38px;height:46px;position:relative;display:grid;place-items:center;color:#9c85ac}
.history-file-type>svg{position:absolute;inset:0;width:100%;height:100%;fill:#efe8f5;stroke:#c0adcc;stroke-width:1.2;stroke-linejoin:round}
.history-file-type>span{position:relative;margin-top:9px;font-size:9px;font-weight:600;letter-spacing:-.2px;text-align:center;color:#91789f}
[data-space=trash] .history-file-type>svg{fill:#f4e9ee;stroke:#d4b9c6}[data-space=trash] .history-file-type>span{color:#a97d92}
.history-file-copy{min-width:0}
.history-file-copy h3{margin:0 0 6px;font-family:"FILEO Grotesk",sans-serif;font-size:16px;font-weight:500;line-height:1.35;letter-spacing:-.2px;overflow-wrap:anywhere;color:#4e3c5b}
.history-file-copy p{margin:0 0 5px;font-size:12px;line-height:1.4;color:#9c88a6}
.history-file-copy p>span{padding:0 4px;color:#c2b1c7}
.history-file-date{display:block;font-size:11px;line-height:1.4;color:#aa99b2}
.history-file-tools{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.history-days-left{font-size:11px;line-height:1.3;white-space:nowrap;color:#a47e92;font-variant-numeric:tabular-nums}
.history-days-left.is-urgent{color:#ad4777}
.history-restore-file{display:flex;align-items:center;gap:6px;min-height:35px;padding:7px 11px;border:1px solid #dfd1e6;border-radius:9px;color:#80618f;background:#fdfafd;font:inherit;font-size:12px;cursor:pointer;transition:background .15s,border-color .15s}
.history-restore-file:hover{border-color:#c3a5d0;background:#f1e7f6}
.history-restore-file svg,.history-restore-selected svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.history-restore-bar{position:sticky;bottom:-30px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0 12px;background:linear-gradient(#faf8fbec,#faf8fb 40%);backdrop-filter:blur(10px);border-top:1px solid #e7ddec;margin-top:-1px}
.history-selection-count{font-size:13px;color:#8d7698}
.history-restore-selected{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 18px;border:1px solid #7f5b8d;border-radius:11px;background:#7f5b8d;color:#fff;font:inherit;font-size:13px;font-weight:500;cursor:pointer;box-shadow:0 4px 12px #79528715}
.history-restore-selected:hover:not(:disabled){background:#704f7e}
.history-restore-selected:disabled{border-color:#e4dbe9;background:#eee8f2;color:#ab99b5;cursor:default;box-shadow:none}
.history-restore-file:disabled{opacity:.5;cursor:default}
.history-space-tab:focus-visible,.history-restore-file:focus-visible,.history-restore-selected:focus-visible{outline:2px solid #a37db2;outline-offset:3px}
.history-space-empty{text-align:center;padding:40px 15px 55px;border-top:1px solid #e5dce9}
.history-empty-icon{width:49px;height:49px;margin:0 auto 18px;display:block;color:#b8a3c5}
.history-space-empty h3{margin:0 0 9px;font-family:"FILEO Grotesk",sans-serif;font-size:21px;font-weight:500;color:#766082;letter-spacing:-.3px}
.history-space-empty p{margin:0;font-size:13px;line-height:1.5;color:#a18baa}
.history-restore-error{color:#a05077;font-size:13px;line-height:1.5}
@media(max-width:600px){.history-space-tab{gap:7px;padding:12px 10px;min-height:67px;grid-template-columns:23px minmax(0,1fr) auto}.history-space-icon{width:23px;height:23px}.history-space-label{font-size:14px}.history-space-tab strong{font-size:24px}.history-file-row{gap:10px;grid-template-columns:18px 31px minmax(0,1fr) auto}.history-file-type{width:31px;height:39px}.history-file-type>span{font-size:8px}.history-file-copy h3{font-size:14px}.history-file-copy p{font-size:11px}.history-file-date{font-size:10px}.history-file-tools{gap:7px}.history-restore-file{font-size:11px;gap:4px;padding:7px 8px}.history-restore-file svg{width:14px;height:14px}.history-days-left{font-size:10px}.history-restore-bar{bottom:-24px}.history-selection-count{font-size:12px}.history-restore-selected{font-size:12px;padding:10px 13px}}
@media(max-width:370px){.history-space-tab{grid-template-columns:22px minmax(0,1fr);gap:6px}.history-space-tab strong{grid-column:2;grid-row:2}.history-space-label{font-size:13px}.history-file-row{grid-template-columns:18px minmax(0,1fr) auto}.history-file-type{display:none}.history-restore-file svg{display:none}.history-space-description p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.history-space-tab,.history-file-row,.history-restore-file{transition:none}}
