/* Storage Explorer R2 FIX4: aligned delete controls, in-app confirmation and return-to-folder UX. */
/* StreamCore Storage Explorer R2 — professional metadata-first storage browser */
.sc-storage-explorer-launch{display:grid!important;gap:14px!important;padding:16px!important;border:1px solid rgba(80,145,220,.22)!important;border-radius:13px!important;background:linear-gradient(135deg,rgba(28,73,122,.10),rgba(9,24,42,.58))!important}.sc-storage-explorer-launch .storage-block-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important}.sc-storage-explorer-launch .storage-block-title>div{display:flex;align-items:center;gap:10px}.sc-storage-explorer-launch .storage-block-title>div>i{display:grid;width:35px;height:35px;place-items:center;border-radius:9px;background:rgba(45,140,245,.12);color:#58b9ff}.sc-storage-explorer-launch .storage-block-title span{display:grid;gap:2px}.sc-storage-explorer-launch .storage-block-title small{color:#7f93aa;font-size:10px;font-weight:500}.sc-storage-explorer-badge{display:flex!important;grid-auto-flow:column;align-items:center;gap:6px;padding:6px 9px;border:1px solid rgba(52,211,153,.25);border-radius:999px;background:rgba(16,185,129,.07);color:#88dfb3;font-size:9px;font-weight:800;white-space:nowrap}.sc-storage-explorer-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sc-storage-explorer-overview>div{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:9px;padding:11px;border:1px solid rgba(116,147,181,.13);border-radius:10px;background:rgba(4,15,27,.34)}.sc-storage-explorer-overview>div>i{display:grid;width:32px;height:32px;place-items:center;border-radius:8px;background:rgba(56,139,253,.08);color:#5ebdff}.sc-storage-explorer-overview span{display:grid;gap:2px}.sc-storage-explorer-overview b{color:#dce8f6;font-size:10px}.sc-storage-explorer-overview small{color:#7f93aa;font-size:9px;line-height:1.4}.sc-storage-explorer-launch-actions{display:flex;justify-content:flex-end;gap:8px}
.sc-storage-explorer-launch .btn,.sc-storage-explorer-modal .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 12px;border:1px solid rgba(88,139,195,.25);border-radius:8px;background:#10233c;color:#dbeaff;font-size:10px;font-weight:800;cursor:pointer;transition:.15s ease}.sc-storage-explorer-modal .btn:hover:not(:disabled){border-color:#3e78b3;background:#17304f}.sc-storage-explorer-launch .btn.primary,.sc-storage-explorer-modal .btn.primary{border-color:#2f8df7;background:#1673d6;color:#fff}.sc-storage-explorer-modal .btn.danger{border-color:#c04453;background:#9c2835;color:#fff}.sc-storage-explorer-modal .btn:disabled{opacity:.45;cursor:not-allowed}.sc-storage-explorer-modal [data-sc-dryrun-btn].ready{box-shadow:0 0 0 2px rgba(45,140,244,.12),0 7px 18px rgba(22,115,214,.18)}.sc-storage-explorer-modal [data-sc-delete].ready{box-shadow:0 0 0 2px rgba(239,68,68,.10),0 7px 18px rgba(156,40,53,.22)}
html.sc-storage-explorer-open,html.sc-storage-explorer-open body{overflow:hidden!important}.sc-storage-explorer-modal[hidden]{display:none!important}.sc-storage-explorer-modal{position:fixed;inset:0;z-index:25000;display:grid;place-items:center;padding:18px}.sc-storage-explorer-backdrop{position:absolute;inset:0;background:rgba(1,8,17,.82);backdrop-filter:blur(6px)}.sc-storage-explorer-dialog{position:relative;display:grid;grid-template-areas:"head" "alert" "toolbar" "stats" "filters" "list" "selection" "footer";grid-template-rows:auto auto auto auto auto minmax(360px,1fr) auto auto;width:min(1180px,calc(100vw - 32px));height:min(840px,calc(100vh - 24px));min-height:680px;overflow:hidden;border:1px solid #26486a;border-radius:16px;background:#081828;color:#dce8f6;box-shadow:0 32px 100px rgba(0,0,0,.56)}
.sc-storage-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #1d3854;background:linear-gradient(180deg,#10253d,#0c1e32)}.sc-storage-explorer-title{display:flex;align-items:center;gap:11px}.sc-storage-explorer-title>i{display:grid;width:39px;height:39px;place-items:center;border:1px solid rgba(49,145,255,.34);border-radius:10px;background:rgba(38,134,245,.12);color:#63c2ff;font-size:15px}.sc-storage-explorer-title span{display:grid;gap:2px}.sc-storage-explorer-title b{font-size:15px}.sc-storage-explorer-title small{color:#7f95ac;font-size:9px}.sc-storage-head-actions{display:flex;align-items:center;gap:9px}.sc-storage-live{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid rgba(52,211,153,.18);border-radius:999px;color:#8bdcb3;font-size:8px;font-weight:800}.sc-storage-live i{width:6px;height:6px;border-radius:50%;background:#35d88c;box-shadow:0 0 0 4px rgba(53,216,140,.08)}.sc-storage-icon-btn{display:grid;width:32px;height:32px;place-items:center;border:1px solid #284963;border-radius:8px;background:#10253d;color:#bfd0e1;cursor:pointer}
.sc-storage-explorer-alert{grid-area:alert;display:flex;align-items:center;gap:8px;margin:9px 14px 0;padding:8px 11px;border:1px solid rgba(248,113,113,.32);border-radius:8px;background:rgba(127,29,29,.16);color:#ffb0b0;font-size:9px}.sc-storage-explorer-alert.success{border-color:rgba(52,211,153,.30);background:rgba(6,78,59,.16);color:#9de9c0}.sc-storage-explorer-alert.warning{border-color:rgba(251,191,36,.28);background:rgba(120,78,12,.14);color:#ffd978}.sc-storage-explorer-alert[hidden]{display:none!important}
.sc-storage-toolbar-card{grid-area:toolbar;margin:10px 14px 0;padding:10px;border:1px solid #203c59;border-radius:11px;background:#0b1d30}.sc-storage-explorer-toolbar{display:grid;grid-template-columns:230px minmax(350px,1.1fr) minmax(250px,.8fr);gap:10px}.sc-storage-explorer-toolbar label,.sc-storage-explorer-filters label{display:grid;gap:5px;min-width:0}.sc-storage-explorer-toolbar label>span,.sc-storage-explorer-filters label>span{color:#8fa5bd;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.03em}.sc-storage-explorer-toolbar select,.sc-storage-explorer-toolbar input,.sc-storage-explorer-filters input,.sc-storage-delete-zone input{width:100%;min-width:0;height:35px;padding:0 10px;border:1px solid #2a4b69;border-radius:7px;background:#0a1a2c;color:#e3eef9;font-size:10px;outline:none;color-scheme:dark}.sc-storage-explorer-toolbar select option{background:#0d2035;color:#e3eef9}.sc-storage-explorer-toolbar select:disabled{opacity:.7}.sc-storage-explorer-toolbar .path>div{display:grid;grid-template-columns:36px 1fr 36px}.sc-storage-explorer-toolbar .path button{border:1px solid #2a4b69;background:#102945;color:#9fc9ef}.sc-storage-explorer-toolbar .path button:first-child{border-radius:7px 0 0 7px}.sc-storage-explorer-toolbar .path button:last-child{border-radius:0 7px 7px 0}.sc-storage-explorer-toolbar .path input{border-radius:0;border-left:0;border-right:0}.sc-storage-explorer-toolbar .search>div{position:relative}.sc-storage-explorer-toolbar .search i{position:absolute;left:11px;top:11px;color:#63809e}.sc-storage-explorer-toolbar .search input{padding-left:31px}.sc-storage-breadcrumbs{display:flex;align-items:center;gap:2px;min-height:27px;padding-top:7px;overflow:hidden}.sc-storage-breadcrumbs button{display:inline-flex;align-items:center;gap:5px;min-width:0;padding:3px 5px;border:0;background:transparent;color:#72aada;font-size:8px;cursor:pointer}.sc-storage-breadcrumbs button:not(:disabled):hover span{color:#bfe0ff}.sc-storage-breadcrumbs button:disabled{color:#8d9fb1;cursor:default}.sc-storage-breadcrumbs button span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-storage-breadcrumbs button i{font-size:6px;color:#4d6d8c}
.sc-storage-stats{grid-area:stats;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:9px 14px}.sc-storage-stats>div{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:8px;padding:8px 10px;border:1px solid #1e3b57;border-radius:9px;background:#0c1e32}.sc-storage-stats>div>i{display:grid;width:30px;height:30px;place-items:center;border-radius:8px;background:rgba(50,144,245,.09);color:#5cbaff}.sc-storage-stats span{display:grid;gap:1px}.sc-storage-stats small{color:#718aa2;font-size:7px;text-transform:uppercase}.sc-storage-stats b{color:#dce9f7;font-size:11px}
.sc-storage-explorer-filters{grid-area:filters;display:grid;grid-template-columns:155px 155px minmax(270px,1fr) auto auto;align-items:end;gap:8px;padding:0 14px 9px}.sc-storage-explorer-filters label>div{display:grid;grid-template-columns:1fr auto;align-items:center}.sc-storage-explorer-filters label>div b{height:35px;display:grid;place-items:center;padding:0 9px;border:1px solid #2a4b69;border-left:0;border-radius:0 7px 7px 0;background:#10243b;color:#8ea7c0;font-size:8px}.sc-storage-explorer-filters label>div input{border-radius:7px 0 0 7px}.sc-storage-explorer-filters .check{display:flex;align-items:center;gap:9px;min-height:35px;padding:5px 9px;border:1px solid #203f5c;border-radius:8px;background:#0b1c2e}.sc-storage-explorer-filters .check input{appearance:auto;width:14px;height:14px;accent-color:#2d8cf4}.sc-storage-explorer-filters .check span{display:grid;color:#c4d3e3;text-transform:none;letter-spacing:0}.sc-storage-explorer-filters .check small{color:#6f879f;font-size:7px;font-weight:500}
.sc-storage-explorer-list-wrap{grid-area:list;min-height:360px;height:100%;overflow:auto;margin:0 14px;border:1px solid #203e5a;border-radius:10px;background:#081726}.sc-storage-list-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;padding:0 10px;border-bottom:1px solid #213d59;background:#0d2034;color:#7890a8;font-size:8px}.sc-storage-list-head>span:last-child{display:inline-flex;align-items:center;gap:6px;color:#6f8ba6}.sc-storage-list-head .state-done{color:#68cb9b}.sc-storage-list-head .state-error{color:#d2a95f}.sc-storage-explorer-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9px}.sc-storage-explorer-table th{position:sticky;top:30px;z-index:3;padding:9px 8px;border-bottom:1px solid #28425f;background:#11253e;color:#8fa7c1;text-align:left;font-size:7px;text-transform:uppercase;letter-spacing:.05em}.sc-storage-explorer-table td{height:42px;padding:7px 8px;border-bottom:1px solid rgba(50,77,106,.48);color:#aebfd1}.sc-storage-explorer-table th.check,.sc-storage-explorer-table td.check{width:38px;text-align:center}.sc-storage-switch{position:relative;display:inline-flex;align-items:center;width:42px;height:24px;vertical-align:middle}.sc-storage-switch input{position:absolute!important;inset:0!important;z-index:2!important;width:100%!important;height:100%!important;margin:0!important;opacity:0!important;cursor:pointer!important}.sc-storage-switch>span{position:absolute;inset:0;border:2px solid #2d8cf4;border-radius:999px;background:#0c2036;box-shadow:inset 0 0 0 1px rgba(17,89,164,.15);transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}.sc-storage-switch>span:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#f7fbff;box-shadow:0 1px 4px rgba(0,0,0,.35);transition:transform .16s ease}.sc-storage-switch input:checked+span{border-color:#3098ff;background:#176fc7;box-shadow:0 0 0 2px rgba(45,140,244,.10)}.sc-storage-switch input:checked+span:after{transform:translateX(18px)}.sc-storage-switch input:indeterminate+span{border-color:#3098ff;background:#123e69}.sc-storage-switch input:indeterminate+span:after{transform:translateX(9px)}.sc-storage-switch input:focus-visible+span{outline:2px solid rgba(94,188,255,.75);outline-offset:2px}.sc-storage-switch.is-disabled{opacity:.38}.sc-storage-switch.is-disabled input{cursor:not-allowed!important}.sc-storage-explorer-table th:nth-child(2){width:34%}.sc-storage-explorer-table th:nth-child(3){width:78px}.sc-storage-explorer-table th:nth-child(4){width:105px}.sc-storage-explorer-table th:nth-child(5){width:132px}.sc-storage-explorer-table th:nth-child(6){width:66px}.sc-storage-explorer-table th:nth-child(7){width:145px}.sc-storage-explorer-table tr:hover td{background:rgba(42,112,186,.055)}.sc-storage-explorer-table tr.policy-blocked{opacity:.62}.sc-storage-name{display:flex;align-items:center;gap:8px;width:100%;max-width:100%;padding:0;border:0;background:transparent;color:#d7e6f5;cursor:default;text-align:left}.sc-storage-name.folder{cursor:pointer}.sc-storage-name i{width:16px;color:#5ebcff}.sc-storage-name i.go{margin-left:auto;width:auto;color:#476c91;font-size:7px}.sc-storage-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type-badge{display:inline-flex;padding:3px 6px;border-radius:999px;background:#11283f;color:#8da7be;font-size:7px;font-weight:800}.type-badge.directory{color:#75bff8}.sc-storage-explorer-table .size.pending{color:#6f8599;font-style:italic}.sc-storage-explorer-table .state{display:inline-flex;align-items:center;gap:5px;padding:4px 6px;border-radius:999px;font-size:7px;font-weight:800}.sc-storage-explorer-table .state.ready{background:rgba(16,185,129,.08);color:#88deb0}.sc-storage-explorer-table .state.blocked{background:rgba(100,116,139,.12);color:#9aaabd}.sc-storage-explorer-table .empty{height:280px;padding:26px;text-align:center;color:#6f879e}.sc-storage-explorer-table .empty i{display:block;margin:0 auto 8px;font-size:20px;color:#4d7397}.sc-storage-explorer-table .empty b,.sc-storage-explorer-table .empty small{display:block;margin:4px}.sc-storage-explorer-table .empty.error{color:#d78f95}.sc-storage-explorer-table .empty.error small{color:#8fa0b2}.sc-storage-explorer-table .empty.error .btn{margin:12px auto 0}.sc-storage-spinner{display:inline-block;width:15px;height:15px;margin-right:7px;border:2px solid rgba(90,167,236,.22);border-top-color:#54b5ff;border-radius:50%;vertical-align:middle;animation:sc-storage-spin .7s linear infinite}.sc-storage-spinner.mini{width:10px;height:10px;margin:0;border-width:1px}@keyframes sc-storage-spin{to{transform:rotate(360deg)}}
.sc-storage-explorer-selection{grid-area:selection;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;color:#9eb0c4;font-size:8px}.sc-storage-explorer-selection b{color:#e4eef9}.sc-storage-explorer-selection small{color:#70879e}.sc-storage-explorer-dryrun,.sc-storage-explorer-history{position:absolute;inset:70px 12px 62px;z-index:6;overflow:auto;padding:14px;border:1px solid #27445f;border-radius:11px;background:#09192b;box-shadow:0 20px 60px rgba(0,0,0,.36)}.sc-storage-explorer-dryrun[hidden],.sc-storage-explorer-history[hidden]{display:none!important}.sc-storage-dry-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sc-storage-dry-head>div{display:grid;gap:2px}.sc-storage-dry-head span{color:#63b8ff;font-size:8px;font-weight:900;text-transform:uppercase}.sc-storage-dry-head h3{margin:0;font-size:15px}.sc-storage-dry-head .expires{display:flex;gap:6px;align-items:center;padding:5px 8px;border:1px solid #28455f;border-radius:999px;color:#8ea5bd;font-size:8px}.sc-storage-dry-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.sc-storage-dry-summary>div{display:grid;gap:2px;padding:10px;border:1px solid #203a55;border-radius:9px;background:#0d2035}.sc-storage-dry-summary span{color:#8198b0;font-size:8px;text-transform:uppercase}.sc-storage-dry-summary b{font-size:18px}.sc-storage-dry-summary small{color:#86a0b9;font-size:8px}.sc-storage-dry-summary .safe{border-color:rgba(52,211,153,.25)}.sc-storage-dry-summary .safe b{color:#54d89a}.sc-storage-dry-summary .blocked{border-color:rgba(248,113,113,.20)}.sc-storage-dry-summary .blocked b{color:#ef8f97}.sc-storage-dry-items{display:grid;gap:5px;max-height:340px;overflow:auto}.sc-storage-dry-items>div{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 9px;border:1px solid #1c354f;border-radius:8px;background:#0b1b2e}.sc-storage-dry-items>div>i{color:#7290ad}.sc-storage-dry-items>div.safe>i{color:#4dd596}.sc-storage-dry-items>div.blocked>i{color:#e4838d}.sc-storage-dry-items span{display:grid;min-width:0;gap:2px}.sc-storage-dry-items b{overflow:hidden;color:#dce8f5;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.sc-storage-dry-items small{color:#7f93aa;font-size:8px}.sc-storage-dry-items strong{font-size:8px;color:#91a6bc}.sc-storage-dry-items .safe strong{color:#5bd9a0}.sc-storage-dry-items .blocked strong{color:#ef939b}.sc-storage-note{font-size:9px;color:#8399b0}.sc-storage-note.warning{color:#ffd06c}.sc-storage-dry-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.sc-storage-explorer-modal .btn.compact{min-height:30px;padding:5px 9px;font-size:9px}.sc-storage-delete-zone{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,auto);align-items:center;gap:14px;margin-top:14px;padding:12px;border:1px solid rgba(239,68,68,.28);border-radius:10px;background:rgba(100,20,26,.12)}.sc-storage-delete-zone.disabled{opacity:.5}.sc-storage-delete-copy{display:flex;align-items:center;gap:10px;min-width:0}.sc-storage-delete-copy>i{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:8px;background:rgba(239,68,68,.12);color:#f28b94}.sc-storage-delete-copy span{display:grid;gap:2px;min-width:0}.sc-storage-delete-copy b{font-size:10px}.sc-storage-delete-copy small{color:#8aa0b6;font-size:8px;line-height:1.45}.sc-storage-delete-controls{display:grid;grid-template-columns:minmax(165px,190px) auto;align-items:end;justify-content:end;gap:10px}.sc-storage-delete-controls label{display:grid;gap:4px;color:#9fb1c5;font-size:8px}.sc-storage-delete-controls label b{color:#f5a3aa}.sc-storage-delete-controls .btn{height:35px;white-space:nowrap}.sc-storage-delete-confirm[hidden]{display:none!important}.sc-storage-delete-confirm{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:18px;background:rgba(2,10,20,.76);backdrop-filter:blur(4px)}.sc-storage-delete-confirm>section{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;width:min(560px,calc(100% - 24px));padding:16px;border:1px solid rgba(239,92,105,.40);border-radius:13px;background:#0c1e31;box-shadow:0 24px 70px rgba(0,0,0,.48)}.sc-storage-confirm-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:12px;background:rgba(239,68,68,.12);color:#ff909a;font-size:18px}.sc-storage-confirm-copy{display:grid;gap:4px}.sc-storage-confirm-copy>span{color:#f29aa2;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.sc-storage-confirm-copy h4{margin:0;color:#f0f6fc;font-size:15px}.sc-storage-confirm-copy p{margin:2px 0 5px;color:#91a7bd;font-size:9px;line-height:1.5}.sc-storage-confirm-copy>div{display:flex;gap:8px}.sc-storage-confirm-copy>div b{padding:5px 8px;border:1px solid #2a4560;border-radius:7px;background:#0a192a;color:#c8d8e8;font-size:9px}.sc-storage-confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-top:4px;border-top:1px solid rgba(74,103,132,.24)}.sc-storage-history-list{display:grid;gap:6px}.sc-storage-history-list>div{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px;border:1px solid #203a55;border-radius:8px;background:#0d2035}.sc-storage-history-list>div>i{display:grid;width:30px;height:30px;place-items:center;border-radius:8px;background:rgba(45,140,245,.10);color:#59baff}.sc-storage-history-list span{display:grid;gap:2px}.sc-storage-history-list b{font-size:9px}.sc-storage-history-list small{color:#728ba4;font-size:8px}.sc-storage-history-list strong{color:#aac0d5;font-size:9px}.sc-storage-history-list .empty{color:#7890a8;text-align:center}
.sc-storage-explorer-dialog>footer{grid-area:footer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #1d354f;background:#0d1e32}.sc-storage-explorer-dialog>footer>div:last-child{display:flex;gap:8px}.sc-storage-explorer-safety{display:flex;align-items:center;gap:8px;color:#8298b0;font-size:8px}.sc-storage-explorer-safety i{color:#58d59b}
@media(max-height:760px) and (min-width:981px){.sc-storage-explorer-dialog{height:calc(100vh - 14px);min-height:0;grid-template-rows:auto auto auto auto auto minmax(240px,1fr) auto auto}.sc-storage-explorer-list-wrap{min-height:240px}.sc-storage-explorer-table .empty{height:200px}}
@media(max-width:980px){.sc-storage-explorer-overview{grid-template-columns:1fr}.sc-storage-explorer-dialog{height:calc(100vh - 18px);width:calc(100vw - 18px);min-height:0;grid-template-rows:auto auto auto auto auto minmax(260px,1fr) auto auto}.sc-storage-explorer-list-wrap{min-height:260px}.sc-storage-explorer-toolbar{grid-template-columns:1fr}.sc-storage-stats{grid-template-columns:1fr 1fr}.sc-storage-explorer-filters{grid-template-columns:1fr 1fr}.sc-storage-explorer-filters .check{grid-column:1/-1}.sc-storage-dry-summary{grid-template-columns:1fr 1fr}.sc-storage-delete-zone{grid-template-columns:1fr}.sc-storage-delete-controls{grid-template-columns:1fr}.sc-storage-delete-controls .btn{width:100%}.sc-storage-explorer-dialog>footer{align-items:flex-end}.sc-storage-explorer-safety{max-width:55%}}
