/* The theme popup (as in the app's left menu), for pages that do not load filemanager.css. Copied from its fm-themepop rules. */
.fm-themepop { position: fixed; z-index: 90; display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 6px; border: 1px solid #4b4f58; border-radius: 14px; background: #222222; color: #fff; }
html[data-theme="light"] .fm-themepop { border-color: #c4c8cf; background: rgba(255, 255, 255, .92); color: #111; }
.fm-themepop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; }
.fm-themepop button:hover { background: rgba(127, 127, 127, .14); }
.fm-themepop button[aria-checked="true"] { color: var(--pe-accent, #1f6fe5); }
.fm-themepop svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.fm-themepop.fm-themepop { min-width: 0; padding: 8px; }
.fm-themepop .me-tiles { display: grid; grid-template-columns: repeat(2, 84px); gap: 8px; margin: 0; padding: 0; }
.fm-themepop .me-tiles__opt { width: 84px; height: 84px; aspect-ratio: 1; }
html .fm-themepop .me-tiles .me-tiles__opt[data-mode="light"][data-sky="off"]:not([aria-checked="true"]) { border-color: #c4c8cf !important; }
html .fm-themepop .me-tiles .me-tiles__opt[data-mode="light"][data-sky="off"]:not([aria-checked="true"]) { border: 1px solid #c4c8cf !important; box-shadow: inset 0 0 0 1px #c4c8cf !important; }
.fm-themepop .me-tiles { grid-template-columns: repeat(4, 68px); gap: 8px; }
.fm-themepop .me-tiles__opt { width: 68px; height: 68px; font-size: 11px; }
.fm-themepop .me-tiles__skin { box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .4); border-radius: 14px; }
.fm-themepop .me-tiles__skin[aria-checked="true"] { box-shadow: 0 0 0 2px #1f6fe5; }
.fm-themepop { max-height: calc(100vh - 16px); overflow-y: auto; }
.fm-themepop__title { margin: 6px 8px 4px; color: var(--muted); font-size: 12px; }
.fm-themepop__title:first-child { margin-top: 2px; }
.fm-themepop .me-tiles { margin-bottom: 6px; }
html body .fm-themepop { background: #1c1c1c; border: 1.5px solid #3a3a3a; border-radius: 18px; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
html[data-theme="light"] body .fm-themepop { background: #f6f6f4; border-color: #cfcfcb; box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }
html .fm-themepop .me-tiles .me-tiles__opt[data-mode="light"][data-sky="off"]:not([aria-checked="true"]):not(.me-tiles__skin) { border: 0 !important; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .4) !important; }
html body .fm .fm-dock__find, html body .fm .fm-dock__find:not([hidden]), html[data-theme="light"] body .fm .fm-dock__find, html[data-theme="light"] body .fm .fm-dock__find:not([hidden]),
html body .fm-filterpop, html[data-theme="light"] body .fm-filterpop, html body .fm-themepop, html[data-theme="light"] body .fm-themepop {
  border: 1px solid var(--line) !important; border-radius: 14px; color: var(--ink);
  background: linear-gradient(var(--field), var(--field)), color-mix(in srgb, var(--bg) 72%, transparent) !important;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 12px 40px rgba(0, 0, 0, .18) !important; }
html body .fm-themepop .me-tiles__opt:not([aria-checked="true"]) { border-color: transparent; }
html body .fm-themepop button:not([aria-checked="true"]) { color: var(--ink); }
html body .fm .fm-dock__find, html body .fm .fm-dock__find:not([hidden]), html[data-theme="light"] body .fm .fm-dock__find, html[data-theme="light"] body .fm .fm-dock__find:not([hidden]),
html body .fm-filterpop, html[data-theme="light"] body .fm-filterpop, html body .fm-themepop, html[data-theme="light"] body .fm-themepop {
  background: var(--field) !important; -webkit-backdrop-filter: blur(24px) saturate(1.1); backdrop-filter: blur(24px) saturate(1.1); }
html body .fm-themepop .fm-themepop__title { color: var(--ink) !important; opacity: 1; font-size: 15px; font-weight: 600; letter-spacing: 0; }
html body .fm .fm-dock__find, html body .fm .fm-dock__find:not([hidden]), html body .fm-filterpop, html body .fm-themepop { background: linear-gradient(var(--field), var(--field)), rgba(22, 22, 26, .88) !important; }
html[data-theme="light"] body .fm .fm-dock__find, html[data-theme="light"] body .fm .fm-dock__find:not([hidden]), html[data-theme="light"] body .fm-filterpop, html[data-theme="light"] body .fm-themepop { background: linear-gradient(var(--field), var(--field)), rgba(252, 252, 253, .9) !important; }
html body .fm .fm-dock__find, html body .fm .fm-dock__find:not([hidden]), html[data-theme="light"] body .fm .fm-dock__find, html[data-theme="light"] body .fm .fm-dock__find:not([hidden]),
html body .fm-filterpop, html[data-theme="light"] body .fm-filterpop, html body .fm-themepop, html[data-theme="light"] body .fm-themepop,
html body .addm:not(.addm--inline) .addm__box, html[data-theme="light"] body .addm:not(.addm--inline) .addm__box { border-color: color-mix(in srgb, var(--ink) 28%, transparent) !important; }
html body .fm-themepop { padding: 10px; }
html body .fm-themepop .me-tiles { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; }
html body .fm-themepop .me-tiles .me-tiles__opt { width: auto !important; height: auto !important; aspect-ratio: 1 !important; min-width: 0; border-radius: 10px; padding: 0 !important; }
html body .fm-themepop .me-tiles__opt span { font-size: 9px !important; padding: 0 4px 4px !important; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 100%; }
html body .fm-themepop .fm-themepop__title { font-size: 14px; margin: 4px 2px 6px; }
html body .fm-themepop .me-motion { margin: 6px 0 0; padding: 6px 6px; font-size: 14px; width: 100%; }
html .me-tiles .me-tiles__opt[data-sky="off"]:not([aria-checked="true"]), html .fm-themepop .me-tiles .me-tiles__opt[data-sky="off"]:not([aria-checked="true"]), html .fm .fm-menupanel .me-tiles__opt[data-sky="off"]:not([aria-checked="true"]) { border: 0 !important; border-color: transparent !important; box-shadow: none !important; }
html body .fm-themepop .me-motion, html body .fm-themepop .me-motion:hover { color: inherit !important; }
html[data-palette] .fm-themepop button[aria-checked="true"] { color: var(--pe-accent); }
html[data-palette] .fm-themepop .me-tiles__skin[aria-checked="true"] { box-shadow: 0 0 0 2px var(--sel); }
html .fm .fm-rail__btn:not(.is-on):hover, html .fm .fm-sec__head:not(.is-on):hover, html .fm .fm-kid:not(.is-on):hover, html .fm .fm-dock__opt:not(.is-on):not([aria-checked="true"]):hover, html .fm-filterpop__chip:not([aria-pressed="true"]):hover, html body .fm-themepop button:not([aria-checked="true"]):not(.me-tiles__opt):hover { background: color-mix(in srgb, var(--pe-accent, #1f6fe5) 16%, transparent); }
html .fm .fm-rail__btn:not(.is-on):active, html .fm .fm-sec__head:not(.is-on):active, html .fm .fm-kid:not(.is-on):not(.fm-kid--logout):active, html .fm .fm-dock__opt:not(.is-on):not([aria-checked="true"]):active, html body .fm-themepop button:not([aria-checked="true"]):active { background: color-mix(in srgb, var(--pe-accent, #1f6fe5) 16%, transparent); }

/* Every popup menu is the Records menu: solid fill, the same edge, corner and shadow. */
html body .fm-themepop, html body .fm-filterpop, html body .fm .fm-dock__find, html body .fm .fm-dock__find:not([hidden]), html body .fm .fm-acct__menu { background: #1c1c1c !important; border: 1.5px solid #3a3a3a !important; border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-theme="light"] body .fm-themepop, html[data-theme="light"] body .fm-filterpop, html[data-theme="light"] body .fm .fm-dock__find, html[data-theme="light"] body .fm .fm-dock__find:not([hidden]), html[data-theme="light"] body .fm .fm-acct__menu { background: #f6f6f4 !important; border-color: #cfcfcb !important; box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }

/* One type scale for the bar menus, taken from the Filter menu: section headings 12px muted, labels 13px regular (Filter, View, Theme, Search). */
html:not(#j) body .fm-themepop .fm-themepop__title, html:not(#j) body .fm-filterpop .fm-filterpop__sec p { margin: 6px 4px 6px; color: var(--muted) !important; font-family: inherit; font-size: 12px !important; font-weight: 400 !important; letter-spacing: normal; line-height: 1.3; opacity: 1; }
html:not(#j) body .fm-themepop .me-tiles__opt span, html:not(#j) body .fm-themepop .me-motion, html:not(#j) body .fm-themepop .me-motion span, html:not(#j) body .fm-viewpop .fm-viewpop__it, html:not(#j) body .fm-viewpop .fm-viewpop__it span, html:not(#j) body .fm-filterpop .fm-filterpop__chip, html:not(#j) body .fm-filterpop .fm-filterpop__clear, html:not(#j) body .fm .fm-dock__find input { font-family: inherit; font-size: 13px !important; font-weight: 400 !important; letter-spacing: normal; }

/* "Motion" is labelled like the other section headings: 12px, muted, regular, lined up with them. */
html:not(#j) body .fm-themepop .me-motion { padding: 6px 4px; }
html:not(#j) body .fm-themepop .me-motion span { color: var(--muted) !important; font-size: 12px !important; font-weight: 400 !important; }

/* A title at the top of the Theme, Filter and View menus. */
html:not(#j) body .fm-pop-title { margin: 6px 4px 10px; color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }

/* The titles of the bar menus use the header's type (the same as "Maya Lin / Created"): 14px, regular, in the text colour. */
html:not(#j) body .fm-pop-title, html:not(#j) body .addm .addm__headtitle { font-size: 14px !important; font-weight: 400 !important; letter-spacing: normal !important; color: var(--ink) !important; line-height: 20px; }


/* The theme menu as it is in the app (copied from the app stylesheet, which the landing page does not load: its page-wide rules were moving the landing content). */
.fm-themepop { position: fixed; z-index: 90; display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 6px; border: 1px solid #4b4f58; border-radius: 14px; background: #222222; color: #fff; }
html[data-theme="light"] .fm-themepop { border-color: #c4c8cf; background: rgba(255, 255, 255, .92); color: #111; }
.fm-themepop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; }
.fm-themepop button:hover { background: rgba(127, 127, 127, .14); }
.fm-themepop button[aria-checked="true"] { color: var(--pe-accent, #1f6fe5); }
.fm-themepop svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.fm-themepop.fm-themepop { min-width: 0; padding: 8px; }
.fm-themepop .me-tiles { display: grid; grid-template-columns: repeat(2, 84px); gap: 8px; margin: 0; padding: 0; }
.fm-themepop .me-tiles__opt { width: 84px; height: 84px; aspect-ratio: 1; }
html .fm-themepop .me-tiles .me-tiles__opt[data-mode="light"][data-sky="off"]:not([aria-checked="true"]) { border-color: #c4c8cf !important; }
html .fm-themepop .me-tiles .me-tiles__opt[data-mode="light"][data-sky="off"]:not([aria-checked="true"]) { border: 1px solid #c4c8cf !important; box-shadow: inset 0 0 0 1px #c4c8cf !important; }
.fm-themepop .me-tiles { grid-template-columns: repeat(4, 68px); gap: 8px; }
.fm-themepop .me-tiles__opt { width: 68px; height: 68px; font-size: 11px; }
.fm-themepop .me-tiles__skin { box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .4); border-radius: 14px; }
.fm-themepop .me-tiles__skin[aria-checked="true"] { box-shadow: 0 0 0 2px #1f6fe5; }
.fm-themepop { max-height: calc(100vh - 16px); overflow-y: auto; }
.fm-themepop__title { margin: 6px 8px 4px; color: var(--muted); font-size: 12px; }
.fm-themepop__title:first-child { margin-top: 2px; }
.fm-themepop .me-tiles { margin-bottom: 6px; }
html body .fm-themepop { background: #1c1c1c; border: 1.5px solid #3a3a3a; border-radius: 18px; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
html[data-theme="light"] body .fm-themepop { background: #f6f6f4; border-color: #cfcfcb; box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }
html .fm-themepop .me-tiles .me-tiles__opt[data-mode="light"][data-sky="off"]:not([aria-checked="true"]):not(.me-tiles__skin) { border: 0 !important; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .4) !important; }
html body .fm-themepop .me-tiles__opt:not([aria-checked="true"]) { border-color: transparent; }
html body .fm-themepop button:not([aria-checked="true"]) { color: var(--ink); }
html body .fm-themepop .fm-themepop__title { color: var(--ink) !important; opacity: 1; font-size: 15px; font-weight: 600; letter-spacing: 0; }
html body .fm-themepop { padding: 10px; }
html body .fm-themepop .me-tiles { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; }
html body .fm-themepop .me-tiles .me-tiles__opt { width: auto !important; height: auto !important; aspect-ratio: 1 !important; min-width: 0; border-radius: 10px; padding: 0 !important; }
html body .fm-themepop .me-tiles__opt span { font-size: 9px !important; padding: 0 4px 4px !important; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 100%; }
html body .fm-themepop .fm-themepop__title { font-size: 14px; margin: 4px 2px 6px; }
html body .fm-themepop .me-motion { margin: 6px 0 0; padding: 6px 6px; font-size: 14px; width: 100%; }
html:not(#j) body .fm-themepop .me-motion { padding: 6px 4px; }
html:not(#j) body .fm-themepop .me-motion span { color: var(--muted) !important; font-size: 12px !important; font-weight: 400 !important; }

/* The landing page's theme menu is a whole rounded box like the one in the app: 18px on every corner, bottom included, fully opaque. */
html body .fm-themepop { border-radius: 18px !important; overflow: hidden auto; padding-bottom: 14px; }

/* The landing theme menu is the same neutral as the app's toolbar menus: dark gray, or near-white on the light themes. */
html:not(#j):not(#k):not(#l) body .fm-themepop { background: #26272b !important; background-image: none !important; --ink: #f2f2f3; color: #f2f2f3; }
html:not(#j):not(#k):not(#l)[data-theme="light"] body .fm-themepop { background: #f4f4f5 !important; --ink: #1b1b1d; color: #1b1b1d; }
html:not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s) body .fm-themepop { z-index: 2147483001 !important; }

/* Theme tiles: five across. Each name is a little smaller and sits in the bottom-left corner. */
html:not(#j):not(#k) body .fm-themepop .me-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
html:not(#j):not(#k) body .fm-themepop .me-tiles .me-tiles__opt > span {
  position: absolute !important; left: 6px !important; right: auto !important; bottom: 4px !important; top: auto !important;
  width: auto !important; max-width: calc(100% - 12px) !important; margin: 0 !important; padding: 0 !important;
  font-size: 11px !important; font-weight: 500 !important; line-height: 1.1 !important; letter-spacing: -0.01em !important; text-align: left !important;
}
