/* Storage follows FocFoc account surfaces: navy, cool text, quiet borders, one clear action. */
.ffStorage{color-scheme:dark;box-sizing:border-box;width:min(700px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 32px));padding:0;border:1px solid #263852;border-radius:18px;background:#0c1526;color:#e8eef7;font:14px/1.5 var(--font-ui,system-ui,sans-serif);box-shadow:0 24px 80px #0009;overflow:hidden;scrollbar-color:#2b3d58 #0c1526}
.ffStorage::backdrop{background:#030914b8}.ffStorage *{box-sizing:border-box}.ffStorage header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #202e43;background:#0c1526}.ffStorage button{font:inherit;cursor:pointer}.ffStorage .fs-back,.ffStorage .fs-close{border:0;background:none;color:#9eb5d0;min-height:42px;padding:8px 10px}.ffStorage .fs-back{font-size:var(--fs-secondary)}.ffStorage .fs-back:hover,.ffStorage .fs-close:hover{color:#eaf3ff}.ffStorage .fs-close{font-size:25px;line-height:1}.ffStorage .fs-content{padding:30px 36px 36px;max-height:calc(min(760px,100dvh - 32px) - 58px);overflow:auto;overscroll-behavior:contain}.ffStorage .fs-page{max-width:580px;margin:0 auto}.ffStorage .fs-eyebrow{margin:0 0 8px;color:#8da5c0;font-size:var(--fs-secondary);font-weight:650;letter-spacing:.08em;text-transform:uppercase}.ffStorage h2{margin:0;color:#f2f6fc;font-size:28px;line-height:1.2;letter-spacing:-.65px;font-weight:650}.ffStorage h3{font-size:15px;line-height:1.3;margin:0}.ffStorage .fs-summary{margin:9px 0 0;color:#9aacc4;max-width:490px}.ffStorage .fs-usage-line{display:flex;align-items:baseline;gap:10px;margin:30px 0 11px}.ffStorage .fs-usage-line strong{font-size:40px;line-height:1.1;letter-spacing:-1.3px;font-weight:650;color:#f5f8fd}.ffStorage .fs-usage-line span{font-size:16px;color:#9aacc4}.ffStorage .fs-meter{height:6px;background:#24334a;border-radius:8px;overflow:hidden}.ffStorage .fs-meter>span{display:block;height:100%;background:#0a97ff;border-radius:8px;transition:width .2s ease}.ffStorage .fs-balance{display:flex;justify-content:space-between;align-items:center;margin:9px 0 0;color:#95a9c3;font-size:var(--fs-secondary)}.ffStorage .fs-balance b{color:#dce7f5;font-weight:550}.ffStorage .fs-reserved{margin:8px 0 0;color:#91a7c1;font-size:var(--fs-secondary)}.ffStorage .fs-safe{margin:22px 0 0;padding-left:12px;border-left:2px solid #287eb8;color:#c3d5e8;font-size:var(--fs-secondary)}.ffStorage .fs-actions{display:flex;align-items:center;gap:10px;margin:20px 0 30px}.ffStorage .primary,.ffStorage .secondary,.ffStorage .danger{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 16px;border:1px solid #2d405b;border-radius:10px;background:#111f34;color:#dce8f7;font-weight:600;text-decoration:none}.ffStorage .primary{border-color:#138fe0;background:#0a97ff;color:#fff}.ffStorage .primary:hover{background:#26a5ff}.ffStorage .secondary:hover{background:#172a44}.ffStorage .quiet{min-height:42px;padding:8px 12px;border-color:transparent;background:transparent;color:#a4bfdc}.ffStorage .quiet:hover,.ffStorage .fs-text-action:hover{background:#12233a;color:#dbeaff}.ffStorage .fs-text-action{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:8px 12px;border:0;border-radius:9px;background:transparent;color:#9db9d5}.ffStorage .danger{background:#311e26;border-color:#593540;color:#ffd5da}.ffStorage button:disabled{opacity:.45;cursor:not-allowed}.ffStorage button:focus-visible,.ffStorage input:focus-visible,.ffStorage summary:focus-visible{outline:2px solid #65b1ff;outline-offset:3px}
.ffStorage .fs-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 5px}.ffStorage .fs-section-head>span{font-size:var(--fs-secondary);color:#8096b1}.ffStorage .fs-breakdown{margin-top:24px}.ffStorage .fs-breakdown-row{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #202e43;color:#c4d0e0}.ffStorage .fs-breakdown-row b{font-weight:550;color:#dce6f3}.ffStorage .fs-empty-hint{margin:10px 0;color:#91a5bd}.ffStorage .fs-largest{margin-top:26px}.ffStorage .fs-largest>.fs-file:first-of-type{border-top:1px solid #202e43}
.ffStorage .fs-file{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #202e43;min-width:0}.ffStorage .fs-thumb,.ffStorage .fs-file-icon{width:50px;height:50px;flex:0 0 50px;border-radius:9px;background:#14243a;border:1px solid #263852;object-fit:cover}.ffStorage .fs-file-icon{display:grid;place-items:center;color:#a9c8e8;font-size:var(--fs-secondary)}.ffStorage .fs-file-info{flex:1;min-width:0}.ffStorage .fs-file-info b{display:block;overflow-wrap:anywhere;color:#e4edf8;font-weight:550}.ffStorage small{display:block;margin-top:3px;color:#8fa5bf;font-size:var(--fs-secondary);line-height:1.4}.ffStorage .fs-delete{flex:0 0 auto;min-height:38px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:#a8bfd9;font-size:var(--fs-secondary)}.ffStorage .fs-delete:hover{background:#172a44}.ffStorage .fs-confirm{padding:12px 0 16px;color:#e0e8f2}.ffStorage .fs-confirm p{margin:0 0 10px}.ffStorage .fs-confirm button+button{margin-left:8px}.ffStorage .fs-file-tools{margin:20px 0 6px}.ffStorage .fs-search-label{display:block;color:#8fa5bf;font-size:var(--fs-secondary)}.ffStorage .fs-search-label input{display:block;width:100%;height:44px;margin-top:6px;padding:0 12px;border:1px solid #293c56;border-radius:9px;background:#08111f;color:#e8eef7;font:inherit}.ffStorage .fs-file-tool-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:12px 0 8px}.ffStorage .fs-filter{display:flex;gap:7px;margin:0;overflow:auto}.ffStorage .fs-filter button{min-height:36px;padding:6px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#91a6bf;white-space:nowrap}.ffStorage .fs-filter button[aria-pressed="true"]{border-color:#2d4665;background:#12243a;color:#e2f0ff}.ffStorage .fs-sort-label{display:flex;align-items:center;gap:8px;color:#8fa5bf;font-size:var(--fs-secondary);white-space:nowrap}.ffStorage .fs-sort-label select{appearance:none;-webkit-appearance:none;min-height:36px;margin:0;padding:6px 28px 6px 12px;border:1px solid #293c56;border-radius:9px;background-color:#08111f;color:#e8eef7;font:inherit;font-size:var(--fs-secondary);background-image:linear-gradient(45deg,transparent 50%,#8a9db0 50%),linear-gradient(135deg,#8a9db0 50%,transparent 50%);background-position:calc(100% - 14px) 55%,calc(100% - 9px) 55%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}.ffStorage .fs-file-footnote{margin:18px 0 0;padding-top:14px;border-top:1px solid #202e43;color:#879cb5;font-size:var(--fs-secondary)}.ffStorage .fs-lab{margin-top:30px;padding-top:14px;border-top:1px solid #202e43;color:#8fa5bf;font-size:var(--fs-secondary)}.ffStorage .fs-lab input{display:block;width:100%;margin:8px 0 12px;padding:10px;border:1px solid #293c56;border-radius:9px;background:#08111f;color:#eef4fd;font:inherit}
.ffStorage .fs-purchase-facts{display:flex;flex-wrap:wrap;gap:8px 18px;margin:24px 0;padding:14px 0;border-top:1px solid #202e43;border-bottom:1px solid #202e43;color:#91a6bf;font-size:var(--fs-secondary)}.ffStorage .fs-purchase-facts b{color:#e0e9f5;font-weight:550}.ffStorage .fs-purchase-unavailable>.primary{margin:0 10px 0 0}.ffStorage .fs-purchase-choices{margin:24px 0 14px}.ffStorage .fs-purchase-choice{width:100%;min-height:74px;display:flex;align-items:center;gap:14px;padding:14px 4px;border:0;border-bottom:1px solid #202e43;background:transparent;color:#e5edf7;text-align:left}.ffStorage .fs-choice-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#14243a;color:#8ccaff;font-size:20px}.ffStorage .fs-purchase-choice>span:nth-child(2){flex:1}.ffStorage .fs-purchase-choice small{margin-top:4px}.ffStorage .fs-offer-list{margin:22px 0}.ffStorage .fs-offer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 14px;margin:8px 0;border:1px solid #283a54;border-radius:11px;background:#101c2e;color:#e4edf8;text-align:left}.ffStorage .fs-offer.selected{border-color:#168ddd;background:#10243a}.ffStorage .fs-offer b,.ffStorage .fs-offer small{display:block}.ffStorage .fs-offer-price{flex:0 0 auto;text-align:right}.ffStorage .fs-confirm-summary{margin:22px 0;padding:16px;border:1px solid #283a54;border-radius:14px;background:#0f1c30}.ffStorage .fs-confirm-summary small{display:block;margin-top:12px;color:#738aa5}
.ffStorage .fs-confirm-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;margin-bottom:2px;border-bottom:1px solid #202e43}.ffStorage .fs-confirm-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:10px;background:#153357;border:1px solid #2f5c8c;color:#6cc4ff}.ffStorage .fs-confirm-icon svg{width:20px;height:20px}.ffStorage .fs-confirm-head b{display:block;color:#eef4fd;font-size:15px;font-weight:600}.ffStorage .fs-confirm-price{display:block;margin-top:2px;color:#0a97ff;font-size:var(--fs-secondary);font-weight:600}
.ffStorage .fs-confirm-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;color:#9aacc4;font-size:var(--fs-secondary)}.ffStorage .fs-confirm-row b{color:#eef4fd;font-weight:600}.ffStorage .fs-confirm-row b.fs-price-accent{color:#0a97ff}.ffStorage .fs-confirm-row+.fs-confirm-row{border-top:1px solid #202e43}.ffStorage .fs-confirm-head+.fs-confirm-row{padding-top:14px}
.ffStorage .fs-row-end{display:flex;align-items:center;gap:8px}.ffStorage .fs-inline-link{background:none;border:0;padding:0;margin:0;min-height:auto;color:#5eabff;font-size:var(--fs-secondary);font-weight:600;text-decoration:underline;text-underline-offset:2px}.ffStorage .fs-inline-link:hover{color:#8cc4ff}
.ffStorage .fs-icon-action{gap:6px}.ffStorage .fs-icon-action svg{width:14px;height:14px;flex:0 0 14px}
.ffStorage .fs-block-action{width:100%;margin-top:12px}
.ffStorage .fs-btn-block{width:100%;display:flex;justify-content:center;align-items:center;gap:8px}.ffStorage .fs-btn-block svg{width:16px;height:16px;flex:0 0 16px}.ffStorage .fs-payment-method{padding:15px 0;margin:20px 0;border-top:1px solid #202e43;border-bottom:1px solid #202e43;color:#95a8bf}.ffStorage .fs-sim-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0}.ffStorage .fs-sim-actions>span{flex:0 0 100%;color:#8da4be;font-size:var(--fs-secondary)}.ffStorage .fs-result-page .primary{margin:22px 8px 0 0}.ffStorage .fs-error{color:#ffc1c5}.fs-upload-error{margin:12px 14px;padding:13px 15px;border:1px solid #2a405b;border-radius:10px;background:#101e31;color:#e5edf7;font-size:var(--fs-secondary)}.fs-upload-error p{margin:6px 0;color:#a0b5cd}.fs-upload-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.fs-upload-actions button{min-height:38px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:#88c7ff;font:inherit;cursor:pointer}.fs-upload-actions button:hover{background:#182b43}.fs-storage-entry{padding:8px 0;border:0;background:none;color:#98adc8;font:inherit;cursor:pointer}
/* Subscription/billing (spec §12-§22) - same card/list language as fs-offer above, reused for
   plan and payment-method choices instead of inventing a second visual system. */
.ffStorage .fs-plan-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 0;padding:13px 15px;border:1px solid #2a405b;border-radius:11px;background:#101e31;color:#dbe7f5;font-size:var(--fs-secondary)}.ffStorage .fs-plan-banner p{margin:0}.ffStorage .fs-plan-banner-warn{border-color:#5a4526;background:#221a0e;color:#f2d9ad}
.ffStorage .fs-plan-card{margin:18px 0 0;padding:16px;border:1px solid #283a54;border-radius:12px;background:#0f1c30}.ffStorage .fs-plan-card>.fs-summary{margin:6px 0 8px;font-size:var(--fs-secondary)}
.ffStorage .fs-cycle-tabs{display:flex;gap:6px;margin:20px 0}.ffStorage .fs-cycle-tab{flex:1;min-height:42px;padding:8px 12px;border:1px solid #283a54;border-radius:9px;background:transparent;color:#9db3cd}.ffStorage .fs-cycle-tab.selected{border-color:#168ddd;background:#10243a;color:#eaf5ff}
.ffStorage .fs-plan-list,.ffStorage .fs-method-list{margin:18px 0}
.ffStorage .fs-plan-choice,.ffStorage .fs-method-choice{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 14px;margin:8px 0;border:1px solid #283a54;border-radius:11px;background:#101c2e;color:#e4edf8;text-align:left}
.ffStorage .fs-plan-choice.selected,.ffStorage .fs-method-choice.selected{border-color:#168ddd;background:#10243a}
.ffStorage .fs-plan-choice:disabled,.ffStorage .fs-method-choice:disabled{opacity:.55}
.ffStorage .fs-plan-choice b,.ffStorage .fs-plan-choice small{display:block}
.ffStorage .fs-sale-pill,.ffStorage .fs-current-pill{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:99px;font-size:var(--fs-secondary);font-weight:650}
.ffStorage .fs-sale-pill{background:#2a1b0e;color:#f5c26b}.ffStorage .fs-current-pill{background:#12243a;color:#8ccaff}
.ffStorage .fs-method-row{display:flex;align-items:center;gap:12px}.ffStorage .fs-method-icon{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:9px;background:#153357;border:1px solid #2f5c8c;color:#6cc4ff}.ffStorage .fs-method-icon svg{width:16px;height:16px}.ffStorage .fs-method-glyph{font-size:16px;font-weight:700;line-height:1}
.ffStorage .fs-plan-title{display:flex;align-items:center;gap:12px;margin-bottom:2px}
.ffStorage .fs-result-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:14px;margin-bottom:18px}.ffStorage .fs-result-icon svg{width:26px;height:26px}.ffStorage .fs-result-icon.ok{background:#0f2e22;border:1px solid #1f6b4a;color:#5fd9a0}.ffStorage .fs-result-icon.warn{background:#221a0e;border:1px solid #5a4526;color:#f2b866}
.ffStorage .fs-lower-pill{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:99px;font-size:var(--fs-secondary);font-weight:650;background:#101e31;color:#8fb3d9}
.ffStorage .fs-empty-card{margin:22px 0;padding:30px 20px;border:1px dashed #2f4463;border-radius:14px;text-align:center}.ffStorage .fs-empty-card .fs-confirm-icon{margin:0 auto 14px}.ffStorage .fs-empty-card b{display:block;color:#eef4fd;font-size:15px;font-weight:600}.ffStorage .fs-empty-card p{margin:6px auto 0;max-width:320px;color:#8fa5bf;font-size:var(--fs-secondary)}
.ffStorage .fs-history-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #202e43}.ffStorage .fs-history-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px}.ffStorage .fs-history-icon svg{width:18px;height:18px}
.ffStorage .fs-history-icon.ok,.ffStorage .fs-history-pill.ok{background:#0f2e22;color:#5fd9a0}.ffStorage .fs-history-icon.ok{border:1px solid #1f6b4a}
.ffStorage .fs-history-icon.warn,.ffStorage .fs-history-pill.warn{background:#221a0e;color:#f2b866}.ffStorage .fs-history-icon.warn{border:1px solid #5a4526}
.ffStorage .fs-history-icon.pending,.ffStorage .fs-history-pill.pending{background:#153357;color:#6cc4ff}.ffStorage .fs-history-icon.pending{border:1px solid #2f5c8c}
.ffStorage .fs-history-icon.neutral,.ffStorage .fs-history-pill.neutral{background:#1c2431;color:#93a3ba}.ffStorage .fs-history-icon.neutral{border:1px solid #33415a}
.ffStorage .fs-history-info{flex:1;min-width:0}.ffStorage .fs-history-info b{display:block;color:#eef4fd;font-weight:600}
.ffStorage .fs-history-amount{flex:0 0 auto;text-align:right}.ffStorage .fs-history-amount b{display:block;margin-top:4px;color:#eef4fd;font-weight:600}
.ffStorage .fs-history-pill{display:inline-block;padding:2px 8px;border-radius:99px;font-size:var(--fs-secondary);font-weight:650}
@media(max-width:600px){.ffStorage{width:100vw;max-width:none;max-height:100dvh;height:auto;margin:auto 0 0;border-right:0;border-bottom:0;border-left:0;border-radius:18px 18px 0 0}.ffStorage::backdrop{background:#030914bc}.ffStorage header{height:54px;padding:0 12px}.ffStorage .fs-content{max-height:calc(100dvh - 54px);padding:22px 20px max(24px,env(safe-area-inset-bottom))}.ffStorage h2{font-size:24px}.ffStorage .fs-usage-line{margin-top:23px}.ffStorage .fs-usage-line strong{font-size:34px}.ffStorage .fs-actions{display:grid;grid-template-columns:1fr;margin:18px 0 25px}.ffStorage .fs-actions button{width:100%;min-height:48px}.ffStorage .fs-purchase-facts{gap:8px 14px}.ffStorage .fs-file{gap:10px;padding:12px 0}.ffStorage .fs-thumb,.ffStorage .fs-file-icon{width:46px;height:46px;flex-basis:46px}.ffStorage .fs-delete{min-height:42px}.ffStorage .fs-offer{align-items:flex-start}.ffStorage .fs-result-page .primary{width:100%;margin:18px 0 0}.ffStorage .fs-confirm-page>.primary,.ffStorage .fs-offers-page>.primary,.ffStorage .fs-purchase-unavailable>.primary,.ffStorage .fs-plans-page>.primary,.ffStorage .fs-method-page>.primary,.ffStorage .fs-review-page .primary,.ffStorage .fs-manage-plan-page .fs-actions,.ffStorage .fs-cancel-confirm-page>button{width:100%;margin:8px 0}.ffStorage .fs-manage-plan-page .fs-actions{display:grid;gap:8px}.ffStorage .fs-cancel-confirm-page>button+button{margin-top:0}.ffStorage .fs-cycle-tabs{gap:8px}.ffStorage .fs-sim-actions>*{flex:1 1 calc(50% - 8px)}.ffStorage .fs-sim-actions>span{flex-basis:100%}}
.ffStorage:focus{outline:none}

/* Storage C: render existing file records as the approved thumbnail grid. Actions and filters remain the same. */
.ffStorage .fs-files-page{max-width:none}
.ffStorage .fs-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin-top:12px}
.ffStorage .fs-files-page .fs-file{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:0;padding:0;border:0}
.ffStorage .fs-files-page .fs-thumb,.ffStorage .fs-files-page .fs-file-icon{display:grid;width:100%;height:auto;aspect-ratio:1/1;flex:0 0 auto;border-radius:12px;object-fit:cover}
.ffStorage .fs-files-page .fs-file-info{width:100%;flex:0 0 auto;min-width:0;margin-top:7px}
.ffStorage .fs-files-page .fs-file-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ffStorage .fs-files-page .fs-file-info small{display:block;white-space:normal;overflow-wrap:anywhere}.ffStorage .fs-files-page .fs-file-info .fs-file-status{white-space:nowrap}
.ffStorage .fs-files-page .fs-delete{align-self:start;min-height:44px;margin-top:2px;padding:7px 0}
@media(min-width:481px){.ffStorage .fs-file-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:601px){.ffStorage .fs-file-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 12px}}@media(min-width:1101px){.ffStorage .fs-file-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* W46: Storage opened from Account is a normal page in the Account panel (no dim, no second window) */
.ffStorage.ffStoragePage{position:fixed;inset:0 0 0 var(--ff-panel-left,210px);width:auto;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-left:1px solid #2c4160;border-radius:0;background:#0a1220;z-index:9650;overflow:hidden;display:flex;flex-direction:column}
.ffStorage.ffStoragePage header{justify-content:flex-start;gap:8px;height:56px;padding:0 24px;flex:0 0 auto;background:rgba(10,18,32,.92);border-bottom:1px solid #1b2a44}
.ffStorage.ffStoragePage .fs-back{color:#8ec5ff;font-weight:600;font-size:14px;min-height:44px;min-width:44px;border-radius:12px}
.ffStorage.ffStoragePage .fs-back:hover{background:#101f38}
.ffStorage.ffStoragePage .fs-header-title{font:700 20px/1.2 var(--v19-ui,system-ui);color:#f1f6fc}
.ffStorage.ffStoragePage .fs-content{flex:1 1 auto;max-height:none;min-height:0;padding:24px 24px 40px}
@media(max-width:760px){.ffStorage.ffStoragePage{inset:0 0 calc(52px + env(safe-area-inset-bottom)) 0;height:calc(100dvh - 52px - env(safe-area-inset-bottom));max-height:none;margin:0;border-left:0;border-radius:0}.ffStorage.ffStoragePage header{height:56px;padding:0 12px 0 8px}.ffStorage.ffStoragePage .fs-content{padding:16px 16px 28px;max-height:none}.ffStorage.ffStoragePage .fs-header-title{font-size:18px}}

/* PLACES_R3 Storage C (v3-places-r3 p=storage&o=C): file manager. Values from the prototype's v3.css. */
.ffStorage:has(.fm-page)>header{display:none}
.ffStorage .fm-page{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;max-width:1000px;margin:0 auto;padding:24px 24px 48px;color:#f5f8fc}
.ffStorage .fm-nav h2{margin:0 0 16px;font-size:26px;font-weight:700;letter-spacing:-.5px;line-height:1.25}
.ffStorage .fm-nav a{display:flex;align-items:center;min-height:44px;padding:0 12px;margin-bottom:2px;border-radius:10px;color:#c0cad8;font-size:15px;text-decoration:none;border-left:3px solid transparent}
.ffStorage .fm-nav a[aria-current=page]{background:#0e2239;color:#f5f8fc;font-weight:600;border-left-color:#79baff}
.ffStorage .fm-nav a:hover{background:#0f2440}
.ffStorage .fm-main{min-width:0}
.ffStorage .fm-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.ffStorage .fm-head h1{margin:0;font-size:26px;font-weight:700;letter-spacing:-.5px;line-height:1.25}
.ffStorage .fm-head button{min-height:44px;padding:0 18px;border:1px solid #1c2b45;border-radius:12px;background:#0e2239;color:#f5f8fc;font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
.ffStorage .fm-usage{padding:18px 20px;margin-bottom:24px;background:#0b1d31;border:1px solid #1c2b45;border-radius:16px}
.ffStorage .fm-usage-line{display:flex;align-items:baseline;gap:6px;margin-bottom:10px}.ffStorage .fm-usage-line strong{font-size:22px}.ffStorage .fm-usage-line span{color:#a9b9ce;font-size:14px}
.ffStorage .fm-meter{height:8px;border-radius:99px;background:#17263d;overflow:hidden}.ffStorage .fm-meter span{display:block;height:100%;border-radius:99px;background:#5aa7ff}
.ffStorage .fm-sub{margin:0 0 8px;color:#a9b9ce;font-size:14px;font-weight:600}
.ffStorage .fm-tabs{display:flex;flex-wrap:wrap;gap:4px 22px;border-bottom:1px solid #1c2b45;margin-bottom:14px}
.ffStorage .fm-tab{min-height:44px;padding:0 4px;border:0;border-bottom:2px solid transparent;background:none;color:#c0cad8;font:600 14px/1 inherit;font-family:inherit;cursor:pointer;margin-bottom:-1px}
.ffStorage .fm-tab span{color:#a9b9ce;font-weight:400;margin-left:4px}.ffStorage .fm-tab[aria-pressed=true]{color:#f5f8fc;border-bottom-color:#79baff}
.ffStorage .fm-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px}
.ffStorage .fm-search{display:flex;align-items:center;gap:8px;flex:1 1 220px;min-height:44px;padding:0 12px;border:1px solid #1c2b45;border-radius:12px;background:#08121f;color:#a9b9ce}
.ffStorage .fm-search input{flex:1;min-width:0;border:0;background:none;color:#f5f8fc;font:400 14px/1 inherit;font-family:inherit;outline:0}
.ffStorage .fm-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #1c2b45;border-radius:12px;background:#0b1d31;color:#f5f8fc;font:600 14px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
.ffStorage .fm-btn:hover{background:#0f2440}
.ffStorage .fm-ic{width:18px;height:18px;flex:none}
.ffStorage .fm-pop{position:relative}
.ffStorage .fm-menu{position:absolute;z-index:6;top:calc(100% + 4px);left:0;min-width:180px;padding:6px;background:#0b1a2e;border:1px solid #23395a;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.5)}
.ffStorage .fm-menu button{display:block;width:100%;min-height:40px;padding:0 10px;border:0;border-radius:8px;background:none;color:#e6eef8;text-align:left;font:400 14px/1 inherit;font-family:inherit;cursor:pointer}
.ffStorage .fm-menu button:hover{background:#12263f}.ffStorage .fm-menu button[aria-checked=true]{color:#79baff;font-weight:600}
.ffStorage .fm-seg{display:inline-flex;border:1px solid #1c2b45;border-radius:12px;overflow:hidden}
.ffStorage .fm-seg button{width:44px;min-height:44px;display:grid;place-items:center;border:0;background:#0b1d31;color:#a9b9ce;cursor:pointer}.ffStorage .fm-seg button[aria-pressed=true]{background:#12385f;color:#f5f8fc}
.ffStorage .fm-selbar{display:flex;align-items:center;gap:14px;min-height:56px;padding:6px 12px;border:1px solid #1c2b45;border-radius:14px;background:#0e2239;margin-bottom:8px}
.ffStorage .fm-selbar .fm-x{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:#c0cad8;cursor:pointer}
.ffStorage .fm-link{min-height:44px;padding:0;border:0;background:none;color:#79baff;font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
.ffStorage .fm-del{margin-left:auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:12px;background:#c93d55;color:#fff;font:600 14px/1 inherit;font-family:inherit;cursor:pointer}.ffStorage .fm-del:disabled{opacity:.45;cursor:default}.ffStorage .fm-del.sure{background:#e0364f}
.ffStorage .fm-hint,.ffStorage .fm-note{margin:0 0 14px;color:#a9b9ce;font-size:13px}.ffStorage .fm-note{color:#c0cad8}
.ffStorage .fm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:16px 12px}
.ffStorage .fm-tile{min-width:0}.ffStorage .fm-thumb{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#0b1d31;border:1px solid #1c2b45}
.ffStorage .fm-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ffStorage .fm-ph{display:grid;place-items:center;width:100%;height:100%;color:#6f86a6}.ffStorage .fm-ph .fm-ic{width:32px;height:32px}
.ffStorage .fm-open{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:rgba(2,8,23,.72);color:#fff}
.ffStorage .fm-name{display:block;margin-top:8px;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ffStorage .fm-meta{display:block;color:#a9b9ce;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ffStorage .fm-tile.fm-locked{opacity:.45}.ffStorage .fm-tile.selected .fm-thumb{outline:2px solid #5aa7ff;outline-offset:-2px}
.ffStorage .fm-check{position:absolute;top:8px;left:8px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:2px solid #fff;background:rgba(2,8,23,.4);color:#fff}
.ffStorage .fm-check.on{background:#5aa7ff;border-color:#5aa7ff}.ffStorage .fm-check .fm-ic{width:14px;height:14px}
.ffStorage .fm-list{border:1px solid #1c2b45;border-radius:16px;overflow:hidden;background:#0b1d31}
.ffStorage .fm-row{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 14px;border-top:1px solid #142035}.ffStorage .fm-row:first-child{border-top:0}
.ffStorage .fm-row .fm-check{position:static;flex:none}.ffStorage .fm-row .fm-check.off{opacity:.3}
.ffStorage .fm-rthumb{display:grid;place-items:center;width:44px;height:44px;border-radius:8px;overflow:hidden;background:#08121f;color:#6f86a6;flex:none}.ffStorage .fm-rthumb img{width:100%;height:100%;object-fit:cover}
.ffStorage .fm-rname{flex:1;min-width:0}.ffStorage .fm-rname b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ffStorage .fm-rname small{color:#a9b9ce;font-size:12px}
.ffStorage .fm-rsize{color:#c0cad8;font-size:13px;font-variant-numeric:tabular-nums}.ffStorage .fm-row.fm-locked{opacity:.5}.ffStorage .fm-row.selected{background:#0f2440}
.ffStorage .fm-more{display:block;margin:20px auto 0;min-height:44px;padding:0 20px;border:1px solid #1c2b45;border-radius:12px;background:#0b1d31;color:#f5f8fc;font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
.ffStorage .fm-empty{margin:28px 0;color:#a9b9ce;text-align:center}
@media(max-width:760px){.ffStorage .fm-page{display:block;padding:16px 16px 40px}.ffStorage .fm-nav{display:none}.ffStorage .fm-head h1{font-size:22px}.ffStorage .fm-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}.ffStorage .fm-tabs{flex-wrap:nowrap;gap:0 16px;overflow-x:auto;scrollbar-width:none}.ffStorage .fm-tabs::-webkit-scrollbar{display:none}.ffStorage .fm-tab{flex:none;white-space:nowrap}.ffStorage .fm-page{padding-bottom:96px}.ffStorage .fm-selbar{position:fixed;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom));z-index:5;flex-wrap:nowrap;gap:6px;min-height:56px;padding:6px 16px 6px 8px;margin:0;border-radius:14px 14px 0 0;border-width:1px 0 0;box-shadow:0 -8px 20px rgba(3,9,20,.6)}.ffStorage .fm-selbar+.fm-hint{margin-top:0}.ffStorage .fm-selbar b{font-size:14px;white-space:nowrap}.ffStorage .fm-link{white-space:nowrap;font-size:13px;padding:0 4px}.ffStorage .fm-del{padding:0 12px;white-space:nowrap}}
@media(max-width:760px){.ffStorage.ffStoragePage:has(.fm-page)>header{display:flex}.ffStorage.ffStoragePage .fm-head h1{display:none}.ffStorage.ffStoragePage .fm-head{justify-content:flex-end}}
.ffStorage .fs-back:focus:not(:focus-visible){outline:none;box-shadow:none}

.ffStorage .fm-why{margin:0 0 14px;padding:0 0 0 18px;color:#a9b9ce;font-size:13px}.ffStorage .fm-why li{margin:2px 0}.ffStorage .fm-why b{color:#e6edf6;font-weight:600}.ffStorage .fm-progress{color:#e6edf6}
/* G5n: the real selection bar is wider than 336px once "Select all N" and "Delete N for good" sit next to "N selected" (measured on staging 375/360: the red button ended 4px / -11px from the edge). The count truncates instead of pushing, both buttons keep their size, and "Select all" is hidden while the delete is being confirmed. */
@media(max-width:760px){.ffStorage .fm-selbar b{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.ffStorage .fm-selbar .fm-link,.ffStorage .fm-selbar .fm-del,.ffStorage .fm-selbar .fm-x{flex:none}.ffStorage .fm-selbar:has(.fm-del.sure) .fm-link{display:none}.ffStorage .fm-selbar .fm-del{padding:0 14px}}

/* STORAGE_1: placeholder always sits behind the thumbnail; the image fades in once loaded. */
.ffStorage .fm-thumb{display:grid}.ffStorage .fm-thumb>.fm-ph-back,.ffStorage .fm-thumb>img{grid-area:1/1}.ffStorage .fm-thumb>img{position:relative;opacity:0;transition:opacity .2s}.ffStorage .fm-thumb>img.fm-ok,.ffStorage .fm-rthumb>img.fm-ok{opacity:1}.ffStorage .fm-rthumb>img{opacity:0;transition:opacity .2s}
/* STORAGE_1 @375: four tabs fit on one row without clipping; the selection bar floats inset above the tab bar. */
@media(max-width:760px){.ffStorage .fm-tabs{gap:0 12px;overflow-x:visible}.ffStorage .fm-tab{font-size:14px;padding-left:0;padding-right:0}.ffStorage .fm-selbar{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));border-radius:16px;border-width:1px}.ffStorage .fm-selbar .fm-del{min-height:44px}}

/* STORAGE_2: Increase-storage page keeps the Purchases frame; Sale pill sits inline with the name; Continue says why it is off. */
.ffStorage .fm-backlink{display:inline-flex;align-items:center;min-height:44px;margin:0 0 4px -8px;padding:0 8px;border:0;background:none;color:#79baff;font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
.ffStorage .fm-plans-frame .fs-page.fs-plans-page{padding:0;margin:0;max-width:640px}.ffStorage .fm-plans-frame .fs-eyebrow{display:none}
.ffStorage .fs-plan-name{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;height:22px}.ffStorage .fs-plan-name .fs-sale-pill{line-height:16px;padding:1px 8px}.ffStorage .fs-plan-name b{display:inline-block}.ffStorage .fs-plan-name .fs-sale-pill{margin-left:0}
.ffStorage .fs-plan-choice{min-height:72px}
.ffStorage .fs-choose-hint{margin:8px 0 0;color:#a9b9ce;font-size:13px}
/* STORAGE_2: file meta shows where a file is used (wraps instead of cutting); the bar never looks empty. */
.ffStorage .fm-meta{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.ffStorage .fm-grid{align-items:start}
.ffStorage .fm-meter span{min-width:3px}
@media(max-width:760px){
 .ffStorage .fm-backlink{display:none}
 .ffStorage.ffStoragePage .fm-head{justify-content:stretch}.ffStorage.ffStoragePage .fm-head button{width:100%;min-height:48px}
 .ffStorage .fm-tools{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.ffStorage .fm-tools>.fm-search{grid-column:1/-1;width:100%}.ffStorage .fm-tools>.fm-pop{grid-column:span 3}.ffStorage .fm-tools>.fm-pop>.fm-btn{width:100%;min-height:44px}.ffStorage .fm-tools>.fm-seg{grid-column:span 2}.ffStorage .fm-tools>.fm-btn{grid-column:span 4;width:100%;min-height:44px}
 .ffStorage .fm-page:has(.fm-selbar){padding-bottom:168px}
}

/* STORAGE_2b: meta is two lines (size, then where it is used, wrapping); empty state has an icon and one helper line. */
.ffStorage .fm-meta-size,.ffStorage .fm-meta-use{display:block}.ffStorage .fm-meta-use{margin-top:1px}
.ffStorage .fm-empty-card{display:grid;justify-items:center;gap:6px;margin:48px auto;max-width:360px}.ffStorage .fm-empty-card b{color:#e6edf6;font-size:16px}.ffStorage .fm-empty-card p{margin:0;color:#a9b9ce;font-size:14px}.ffStorage .fm-empty-ic{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#0e2239;color:#79baff}.ffStorage .fm-empty-ic .fm-ic{width:28px;height:28px}

/* P-C §1a: at 761-1100 the account pill row (5 pills + the open item's children) sits on top and Storage is one full-width column under it; the 220px side list is replaced by that row */
@media(min-width:761px) and (max-width:1099px){
 .ffStorage .fm-page{display:block;max-width:760px;margin:0 auto;padding:32px 40px 64px}
.ffStorage .fm-nav{display:none}
.ffStorage.ffStoragePage:has(.fm-page) .fs-content{padding:0}
.ffStorage .fm-tools{justify-content:space-between}.ffStorage .fm-tools>.fm-search{flex:0 0 100%;width:100%}
.ffStorage .fm-head h1{font-size:28px;font-weight:700;letter-spacing:-.3px;line-height:1.25}.ffStorage .fm-head{align-items:flex-start}
body:has(.ffAccountPage.ffHasRail[open]) .ffStorage.ffStoragePage{top:69px;height:calc(100dvh - 69px)}
}

/* P-C: from 1100 the Storage page sits right of the same 240 account column as Settings and Wallet; its own side list is the rail's Purchases children */
@media(min-width:1100px){
body:has(.ffAccountPage.ffHasRail[open]) .ffStorage.ffStoragePage{left:calc(var(--ff-panel-left,210px) + 240px)}
body:has(.ffAccountPage.ffHasRail[open]) .ffStorage.ffStoragePage:has(.fm-page) .fs-content{padding:0}
 body:has(.ffAccountPage.ffHasRail[open]) .ffStorage .fm-page{display:block;max-width:760px;margin:0 auto;padding:32px 40px 64px}
body:has(.ffAccountPage.ffHasRail[open]) .ffStorage .fm-nav{display:none}
body:has(.ffAccountPage.ffHasRail[open]) .ffStorage .fm-head h1{font-size:28px;font-weight:700;letter-spacing:-.3px;line-height:1.25}.ffStorage .fm-head{align-items:flex-start}
body:has(.ffAccountPage.ffHasRail[open]) .ffStorage .fm-tools{justify-content:space-between}
body:has(.ffAccountPage.ffHasRail[open]) .ffStorage .fm-tools>.fm-search{flex:0 0 100%;width:100%}
}

/* Account Storage is one page in the shared Settings content column; the global menu and Purchases page bar already provide navigation. */
@media(min-width:761px){
 .ffStorage.ffStoragePage:has(.fm-page) .fs-content{padding:0}
 .ffStorage.ffStoragePage .fm-page{display:block;max-width:760px;margin:0 auto;padding:32px 40px 64px}
 .ffStorage.ffStoragePage .fm-nav{display:none}
}
