.ffAccountDock{position:fixed;right:20px;bottom:24px;z-index:9500;display:flex;align-items:center;gap:12px;background:#102039;color:#fff;border:1px solid #2b4261;border-radius:16px;padding:10px 12px;box-shadow:0 8px 30px #0003;font:13px/1.4 system-ui}.ffAccountDock small{display:block;color:#8fa0b8;font-size:var(--fs-secondary)}.ffAccountDock button{border:0;border-radius:9px;padding:10px 15px;background:#348cff;color:#fff;font:600 13px system-ui;cursor:pointer}.ffAccountDialog{padding:0;border:1px solid #23334b;border-radius:20px;background:#0c1526;width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(830px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);overflow:hidden;box-shadow:0 20px 80px #0005}.ffAccountDialog::backdrop{background:#020817cc;backdrop-filter:blur(4px)}.ffAccountDialog header{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #23334b;font:600 13px system-ui;color:#dce6ef}.ffAccountDialog header button{background:none;border:0;font:24px system-ui;color:#dce6ef;cursor:pointer;padding:5px 10px}.ffAccountDialog iframe{display:block;border:0;width:100%;height:calc(100% - 52px);background:#0c1526}.ffAccountDock button:focus-visible,.ffAccountDialog button:focus-visible{outline:3px solid #65b1ff;outline-offset:3px}@media(max-width:700px){.ffAccountDock{bottom:80px;right:10px;padding:8px;gap:8px}.ffAccountDock small{max-width:150px}.ffAccountDialog{height:calc(100dvh - 18px);max-height:calc(100dvh - 18px)}}

.ffAccountDialog header{background:#0c1526;color:#c5d5e9}.ffAccountDialog header button{color:#97acc7}.ffAccountDialog header button:hover{color:#fff}.ffAccountDock{font-family:var(--v19-ui,system-ui)}.ffAccountDock button{font-family:inherit}.ffAccountDialog{border-radius:16px}.ffAccountDock{border-radius:12px}.ffAccountDock button:hover{background:#4b9aff}
/* Flow 2: settings is a main page; only authentication is modal. */
.ffAccountDialog:not(.ffAccountPage){height:min(760px,calc(100dvh - 32px))}
/* OWNER UX FULL CLOSURE ROUND, UX-018/019: this fixed 208px inset never tracked index.html's own
   real sidebar width. SUPERSEDED across 4 rounds total — rounds 1-3 tried hardcoding 220/205/82,
   then 210/190, by reading index.html's sidebar CSS; round 4 (see the note above `syncPanelLeft()`
   in account/shell.js) replaced hardcoding entirely with a live JS measurement of the sidebar's
   actual position, written to the `--ff-panel-left` custom property this rule now reads. The
   `210px` here is only a same-tab fallback for the instant before JS runs (or if `.left` is ever
   absent) — it is not meant to be kept in sync with index.html by hand any more. Sidebar removed
   entirely (bottom nav) under 760px is the one part of the original story that was and still is
   correct, and stays a plain CSS breakpoint below (JS explicitly skips that range). */
.ffAccountPage{position:fixed;inset:0 0 0 var(--ff-panel-left, 210px);margin:0;width:auto;max-width:none;height:100dvh;max-height:none;border:0;border-left:1px solid #2c4160;border-radius:0;box-shadow:inset 8px 0 24px -18px #000a;background:#080f1d;z-index:9600}
/* OWNER UX CLOSURE ROUND, re-reopened UX-018/019 (round 2): on a wide/ultra-wide viewport this
   used to let the header and iframe stretch across the ENTIRE remaining width — measured live: at
   1600px the settings card itself (account/design.css's own 790px `main` cap) stayed correctly
   centered inside that stretched box, but the surrounding dead space grew without bound as the
   viewport widened, and the outer header's own Back button (justify-content:space-between,
   spanning that same full width) ended up pinned to the far right edge, ~300px+ away from the
   content column — exactly "content lost in a giant blank page" / "Back disconnected from
   content". First fix: capped header+iframe to a shared max-width AND centered them
   (`align-items:center`) inside the sidebar-inset box.
   Selector note (still applies): the pre-existing `.ffAccountDialog[open]{display:grid;...}` rule
   (inline in index.html) has specificity 0,2,0 and otherwise silently wins over a plain
   `.ffAccountPage` rule regardless of source order, leaving `align-items` inert on a grid (grid's
   cross-axis alignment there is `justify-items`, not `align-items`) — header/iframe capped their
   width correctly but stayed pinned left instead of centering. `.ffAccountDialog.ffAccountPage[open]`
   (0,3,0) wins that cascade explicitly instead of reaching for !important.
   ROUND 2 (owner reopened again): centering the capped 1180px column inside the full inset box
   just moved the "giant blank page" problem from surrounding the WHOLE panel to a big empty strip
   specifically between the sidebar and the panel's own left edge — live-confirmed via screenshot
   at 1680px: sidebar ends, then ~150px+ of plain dark background before the actual Settings card
   starts, reading as "sidebar awkwardly exposed" / "layout collided", not as one coherent surface.
   Root fix this round: `align-items:flex-start` instead of `center` — header/iframe now start
   flush against `.ffAccountPage`'s own left edge (right after the border-left boundary), matching
   the common settings-panel-next-to-nav-rail pattern (Discord/Slack-style: content hugs the rail,
   any leftover space lands on the right where it reads as normal breathing room, not as a gap
   between two unrelated things). This keeps Back aligned with the content (both still share the
   1180px cap, unchanged from the previous fix) while also closing the sidebar-to-panel gap. */
.ffAccountDialog.ffAccountPage[open]{display:flex;flex-direction:column;align-items:flex-start}
.ffAccountDialog.ffAccountPage>header{display:none}
.ffAccountDialog.ffAccountPage iframe{height:100%;max-height:none}
.ffAccountPage header{height:64px;padding:0 34px;width:100%;max-width:1180px;box-sizing:border-box;flex:0 0 auto}
.ffAccountPage header button{font-size:var(--fs-secondary)}
.ffAccountPage iframe{height:calc(100% - 64px);width:100%;max-width:1180px;flex:1 1 auto}
.ffSettingsOpen{overflow:hidden}.ffAccountDock{z-index:9700;padding:6px;gap:8px}.ffDemoTools{font:11px system-ui;position:relative;padding:8px;color:#8fa0b8}.ffDemoTools summary{cursor:pointer}.ffDemoTools[open]{width:220px}.ffDemoTools button{display:block;width:100%;margin-top:8px;background:#14233b;color:#c3d8f4;text-align:left}.ffDemoTools small{display:block;margin:10px 0}
/* ROUND 3 (superseded by round 4 above): re-derived the sidebar's width from index.html's CSS
   source again (found it's a constant 210px above 1100px, 190px from 761-1100px, due to two
   `!important` overrides at ~line 505/605 and a third at ~line 650) and hardcoded a matching
   breakpoint here. ROUND 4 found yet another source of drift this hand-derivation missed
   (`.app{max-width:1880px}`, jumping to `max-width:2300px` above a 2200px viewport, centering the
   whole grid and adding a growing gutter before the sidebar on wide screens) and replaced ALL of
   this hardcoding with the live `syncPanelLeft()` measurement instead — that single JS-driven
   `--ff-panel-left` custom property (set on the base `.ffAccountPage` rule above) already covers
   both the 210px and 190px tiers correctly by directly measuring whichever is actually true at the
   current width, so this breakpoint is no longer needed and was removed rather than left as
   redundant/conflicting dead weight. */
@media(max-width:760px){/* 1565 clip: AccountPage bottom = bottom nav height + safe area */.ffAccountPage{inset:0 0 calc(64px + env(safe-area-inset-bottom)) 0;height:calc(100dvh - 64px - env(safe-area-inset-bottom))}.ffSettingsOpen .bottomNav{background:#020b19!important}.ffAccountPage header{padding:0 18px;height:54px}.ffAccountPage iframe{height:calc(100% - 54px)}.ffAccountDock{display:none!important}.ffAccountDialog:not(.ffAccountPage){width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}}

.ffCommentIntro{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #344a64;border-radius:18px;background:#101c2d;color:#eaf1fc;font:inherit}.ffCommentIntro::backdrop{background:#030914b3}.ffCommentIntro h2{font-size:22px;margin:0 0 14px}.ffCommentIntro p{font-size:15px;line-height:1.6;color:#c0cede}.ffCommentIntro .ffIntroReturn{font-size:var(--fs-secondary);color:#96abc2}.ffCommentIntro footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:24px}.ffCommentIntro button{min-height:44px;padding:11px 16px;border:1px solid #415875;border-radius:9px;background:transparent;color:#eaf1fc;font:inherit}.ffCommentIntro [data-intro-setup]{background:#0a97ff;border-color:#0a97ff;color:white;font-weight:600}.ffCommentIntro [data-intro-setup]:hover{background:#2ba6ff;border-color:#2ba6ff}

/* Prototype content review: account remains reachable from Cá nhân, so the floating dock is unnecessary. */
.ffAccountDock{display:none!important}

/* Account/Commerce is a destination; retain the reader state for return, but
   never expose its unrelated controls beneath this page. */
body.ffSettingsOpen #readerViewer{visibility:hidden;pointer-events:none}
.ffAccountDialog header button.ffWalletEntry{min-height:36px;margin-left:auto;padding:6px 12px;border:1px solid #285984;border-radius:9px;background:#102a46;color:#a9d9ff;font:650 12px/1.2 var(--v19-ui,system-ui);white-space:nowrap}.ffAccountDialog header button.ffWalletEntry:hover{background:#153a60;color:#e4f4ff;border-color:#0a97ff}.ffAccountDialog header button.ffWalletEntry[hidden]{display:none!important}

/* SITE-765 Account reference: authentication popup only. The settings page keeps
   its measured sidebar-aligned layout; mobile keeps its existing full viewport. */
@media(min-width:761px){
 .ffAccountDialog:not(.ffAccountPage){
  width:min(490px,calc(100vw - 24px));
  height:min(650px,calc(100dvh - 36px));
 }
}
/* Approved Account menu A: a compact anchored popover on desktop and a bottom sheet on phones. */
.ffAccountDialog.ffAccountMenu[open]{background:#0b1a2e;border:1px solid #23395a;position:fixed;inset:auto auto auto var(--ff-account-menu-left,220px);top:var(--ff-account-menu-top,220px);margin:0;width:min(300px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(var(--ff-account-menu-h,396px),calc(100dvh - 24px));max-height:calc(100dvh - 24px);border-radius:16px;overflow:hidden;box-shadow:0 16px 48px #0008}
.ffAccountDialog.ffAccountMenu header{display:none}
.ffAccountDialog.ffAccountMenu iframe{height:100%}
.ffAccountDialog.ffAccountMenu::backdrop{background:transparent;backdrop-filter:none}
@media(max-width:760px){
 .ffAccountDialog.ffAccountMenu[open]{inset:auto 0 0;margin:0;width:100vw;max-width:100vw;height:min(calc(var(--ff-account-menu-h,396px) + 42px),82dvh);max-height:82dvh;border-radius:20px 20px 0 0;border-bottom:0;box-shadow:0 -12px 42px #0007}
 .ffAccountDialog.ffAccountMenu::backdrop{background:#020817a6;backdrop-filter:blur(3px)}
}

/* W46 Account flow: ONE Page bar (title + "‹ parent") above every Account sub-page */
.ffPageBar{display:none}
.ffAccountDialog.ffHasBar>.ffPageBar{display:flex;flex:0 0 auto;width:100%;box-sizing:border-box;height:56px;align-items:center;gap:8px;padding:0 24px;background:rgba(10,18,32,.92);backdrop-filter:blur(12px);border-bottom:1px solid #1b2a44;z-index:5}
.ffPageBar .pbBack{min-height:44px;min-width:44px;padding:0 12px 0 6px;border:0;border-radius:12px;background:none;color:#8ec5ff;font:600 14px/1 var(--v19-ui,system-ui);cursor:pointer;white-space:nowrap}
.ffPageBar .pbBack:hover{background:#101f38}
.ffPageBar .pbBack:focus-visible{outline:3px solid #65b1ff;outline-offset:2px}
.ffPageBar .pbTitle{margin:0;flex:1;min-width:0;font:700 20px/1.2 var(--v19-ui,system-ui);color:#f1f6fc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ffAccountDialog.ffHasBar.ffAccountPage iframe{height:auto;min-height:0;flex:1 1 auto}
@media(max-width:760px){.ffAccountDialog.ffHasBar>.ffPageBar{padding:0 12px 0 8px}.ffPageBar .pbTitle{font-size:18px}}
.ffAccountDialog.ffAccountPage{background:#0a1220}.ffAccountDialog.ffAccountPage iframe{background:#0a1220}
/* PLACES_R3 G1 fix 2: while the Account menu is open the Account entry stays marked, like the prototype's pill. */
.left .nav.ffMenuOpen[data-mode="profile"]{background:linear-gradient(135deg,rgba(16,134,241,.18),rgba(35,91,201,.12));box-shadow:inset 0 0 0 1px rgba(56,159,228,.22);color:#f1f6fc}
.ffAccountDialog.ffAccountMenu[open]::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#3a4d6b;z-index:2;display:none}
@media(max-width:760px){.ffAccountDialog.ffAccountMenu[open]{box-sizing:border-box;padding-top:18px}.ffAccountDialog.ffAccountMenu[open]::before{display:block}}

/* P-C slice 2: the shared Account rail (shell level). >=1000 column 240 (200 under 1100); 761-999 pill row; phone none */
.ffAcctRail[hidden]{display:none}
.ffAcctRail{display:flex;flex-direction:column;gap:2px;box-sizing:border-box;background:#080f1d}
.ffAcctRailItem{display:flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid transparent;border-radius:10px;background:none;color:#b9c6d8;font:400 15px/1.2 inherit;font-family:inherit;text-decoration:none;text-align:left;cursor:pointer;white-space:nowrap}
.ffAcctRailItem:hover{background:#0f2036;color:#e8f0fb}
.ffAcctRailItem[aria-current="page"]{background:#12335c;border-color:#2f6fe4;color:#fff;font-weight:600}
.ffAcctRailSub{margin-left:16px;min-height:40px;font-size:14px}
.ffAcctRailLogout{margin-top:12px;color:#f06a6a}
@media(min-width:761px){
 .ffAccountDialog.ffAccountPage.ffHasRail[open]{display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch}
 .ffAccountPage.ffHasRail .ffAcctRail{grid-column:1;grid-row:1;padding:32px 16px;border-right:1px solid #23395a;overflow-y:auto}
 .ffAccountPage.ffHasRail>iframe{grid-column:2;grid-row:1;max-width:none;height:100%;min-width:0}
 .ffAccountPage.ffHasRail .ffacct-settings-nav{display:none}
}
@media(min-width:761px) and (max-width:1099px){
 .ffAccountDialog.ffAccountPage.ffHasRail[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .ffAccountPage.ffHasRail .ffAcctRail{grid-column:1;grid-row:1;flex-direction:row;gap:8px;padding:12px 28px;border-right:0;border-bottom:1px solid #23395a;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
 .ffAccountPage.ffHasRail .ffAcctRail::-webkit-scrollbar{display:none}
 .ffAccountPage.ffHasRail>iframe{grid-column:1;grid-row:2}
 .ffAcctRailItem{border:1px solid #23395a;border-radius:22px;font-size:14px;flex:0 0 auto}
 .ffAcctRailSub{margin-left:0;min-height:44px}
 .ffAcctRailLogout{display:none}
 .ffAcctRail::after{content:"";flex:0 0 28px}
 .ffAcctRail.ffRailL{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
}
/* the rail inside My content (not an account dialog): same pills / same 240 column */
@media(min-width:1100px){
 .ffCreator.ffMyContentPage:has(>.ffAcctRailInline){display:grid!important;grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto 1fr;align-content:start;padding:0!important;max-width:none!important}
 .ffMyContentPage>.ffAcctRailInline{grid-column:1;grid-row:1/-1;position:sticky;top:0;align-self:start;height:100vh;padding:32px 16px;border-right:1px solid #23395a;overflow-y:auto}
 .ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageHead{grid-column:2;padding:32px 40px 0 41px!important;margin:0 0 24px}
 .ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageBody{grid-column:2;padding:0 40px 32px 41px}
}
@media(min-width:761px) and (max-width:1099px){
 .ffMyContentPage>.ffAcctRailInline{display:flex;flex-direction:row;gap:8px;margin:0;padding:12px 28px 12px 29px;border-bottom:1px solid #23395a;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
 .ffMyContentPage>.ffAcctRailInline::-webkit-scrollbar{display:none}
 .ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageHead{padding:32px 40px 0 41px!important;margin:0 0 20px}
 .ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageBody{padding:0 40px 32px 41px}
 .ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageHead{flex-wrap:wrap;gap:12px 16px}
 .ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageHead h1{flex:1 0 100%}
 .ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageHead .mcToolbar{width:100%}
}
@media(min-width:761px){.ffCreator.ffMyContentPage:has(>.ffAcctRailInline){padding:0!important}.ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageHead{align-items:flex-start}.ffCreator.ffMyContentPage .mcPageHead h1{font-size:28px;font-weight:700;letter-spacing:-.3px;line-height:1.25}.ffCreator.ffMyContentPage>.ffAcctRailInline~.mcPageHead .mcToolbar{align-self:flex-start;margin-top:-5px}}
/* My content (6c): BROWSE is a tab row under the h1 (like Storage / Earnings), the list takes the whole width */
@media(min-width:761px){
 .ffMyContentPage:has(>.ffAcctRailInline) .mcLayout{display:block}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcLayout>.mcRail{display:none}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips{display:block;margin:0 0 16px;padding:0;overflow:visible;border-bottom:1px solid #1c2b45}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRail{display:block;padding:0}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRail h3{display:none}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRailList{display:flex;flex-wrap:wrap;gap:4px 22px;padding:0;overflow:visible;-webkit-mask-image:none;mask-image:none}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRailList button{flex:none;min-height:44px;min-width:0;padding:0 4px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#c0cad8;font:600 14px/1 inherit;font-family:inherit;margin-bottom:-1px;white-space:nowrap}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRailList button:hover{background:none;color:#eaf2fc}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRailList button[aria-current=page]{background:none;box-shadow:none;color:#f5f8fc;border-bottom-color:#79baff}
 .ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRailList button[aria-current=page]::before{display:none}
}
@media(min-width:761px){.ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRailList{flex-wrap:nowrap;gap:0 18px;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}.ffMyContentPage:has(>.ffAcctRailInline) .mcMobileChips .mcRailList::-webkit-scrollbar{display:none}}
@media(max-width:760px){.ffAcctRail{display:none!important}}

/* P-C slice 2b: no left border/inset shadow on the phone page (it showed as a thin blue line next to the iframe, which sat 1px in) */
@media(max-width:760px){.ffAccountPage{border-left:0;box-shadow:none}.ffAccountDialog.ffAccountPage iframe,.ffAccountPage iframe{width:100%;max-width:none}}
.ffAcctRailItem.ffAcctRailParent[aria-current="page"]{background:none;border-color:transparent;color:#fff}
@media(min-width:761px) and (max-width:1099px){.ffAcctRailItem.ffAcctRailParent[aria-current="page"]{border-color:#23395a}}
/* Log out in the My content rail is the same flat red text as in every other Account rail */
.ffMyContentPage>.ffAcctRailInline .ffAcctRailLogout{border:1px solid transparent;background:none;box-shadow:none;color:#f06a6a;font:400 15px/1.2 inherit;font-family:inherit;margin-top:12px}
.ffMyContentPage>.ffAcctRailInline .ffAcctRailLogout:hover{background:#0f2036;color:#ff8a8a}

/* SELL2: Back to what you were doing */
.ffResumeBar{flex:0 0 auto;box-sizing:border-box;width:calc(100% - 32px);margin-top:14px;display:flex;flex-direction:column;gap:3px;align-items:flex-start;margin-left:16px;margin-right:16px;padding:12px 16px;border:1px solid #2a4a78;border-radius:12px;background:#0e2036;color:#8ec5ff;font:inherit;text-align:left;cursor:pointer;min-height:44px}
.ffResumeBar[hidden]{display:none}
.ffResumeBar b{font:700 15px/1.3 var(--v19-ui,system-ui)}
.ffResumeBar small{font-size:13px;color:#aebfd5}
.ffAccountDialog.ffHasResume:not(.ffAccountPage){display:flex;flex-direction:column}
.ffAccountDialog.ffHasResume:not(.ffAccountPage)>iframe{flex:1 1 auto;min-height:0;height:auto}
/* HUB1 (Boss #1041): no second column; ONE Back pill at the same place on every section (wide: pill above the page, phone: arrow + title) */
.ffAcctRail,.ffAcctRailInline{display:none!important}
@media(min-width:761px){
 .ffAccountDialog.ffHasBar>.ffPageBar{height:auto;padding:16px 24px 0;background:none;border-bottom:0;backdrop-filter:none}
 .ffPageBar .pbBack{min-height:40px;padding:0 16px 0 12px;border:1px solid #23395a;border-radius:999px;background:#0b1a2e;color:#e6eef8}
 .ffPageBar .pbBack:hover{background:#12263f}
 .ffPageBar .pbTitle{display:none}
}
