.fp-section, .fp-dialog, .fp-admin { --fp-line: rgba(142, 174, 214, .28); --fp-blue: #91b8fa; letter-spacing: 0; }
.home-page main#top > .fp-section { width: 100%; padding: 0 max(24px, calc((100% - var(--site-container, 1200px)) / 2)) 24px; }
.home-page.premium-site .hero:has(+ .fp-section:not([hidden])) { min-height: 0; --fp-hero-y: var(--premium-hero-desktop-y, 0px); }
.home-page.premium-site .hero:has(+ .fp-section:not([hidden])) .hero-content { padding-bottom: calc(24px + var(--fp-hero-y)); }
@media (max-width: 1180px) {
  .home-page.premium-site .hero:has(+ .fp-section:not([hidden])) { --fp-hero-y: var(--premium-hero-tablet-y, 0px); }
}
@media (max-width: 780px) {
  .home-page.premium-site .hero:has(+ .fp-section:not([hidden])) { --fp-hero-y: 0px; }
}
.fp-section[hidden], .fp-section [hidden], .fp-dialog [hidden] { display: none !important; }
.fp-glass { border: 1px solid rgba(159, 184, 219, .55); border-radius: 20px; background: rgba(10, 18, 30, .76); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(224, 235, 255, .14), 0 0 20px rgba(81, 134, 212, .09); padding: 18px 20px 14px; overflow: hidden; }
.fp-heading, .fp-heading-actions, .fp-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-heading h2 { margin: 0; color: var(--fp-blue); font-size: 11px; font-weight: 800; line-height: 1.4; text-transform: uppercase; letter-spacing: 0; }
.fp-heading-actions { gap: 8px; flex: none; }
.fp-all, .fp-dialog .fp-icon-button { appearance: none; border: 0; background: none; color: var(--fp-blue); cursor: pointer; box-shadow: none; }
.fp-all { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0 5px 4px; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fp-icon { width: 18px; height: 18px; object-fit: contain; filter: invert(1); flex: none; pointer-events: none; }
.fp-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; padding: 0 !important; flex: none; border-radius: 6px; }
.fp-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); margin-top: 14px; }
.fp-viewport::-webkit-scrollbar { display: none; }
.fp-track, .fp-group { display: flex; width: max-content; align-items: center; }
.fp-track { will-change: transform; }
.fp-logo { display: flex; justify-content: center; align-items: center; flex: 0 0 160px; width: 160px; height: 78px; padding: 10px 22px; border-right: 1px solid rgba(156, 185, 224, .12); text-decoration: none; }
.fp-brand { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; }
.fp-logo .fp-brand { filter: grayscale(1) brightness(1.12); opacity: .65; transition: opacity 240ms ease, filter 240ms ease; }
@media (hover: hover) { .fp-logo:hover .fp-brand { opacity: 1; filter: grayscale(0); } .fp-all:hover { color: #fff; opacity: 1; } }
.fp-logo:focus-visible .fp-brand { opacity: 1; filter: none; }
.fp-section :focus-visible, .fp-dialog :focus-visible, .fp-admin :focus-visible { outline: 2px solid #88b6ff; outline-offset: -2px; }
.fp-dialog { color: #eff4fc; background: rgba(10, 18, 30, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--fp-line); border-radius: 20px; padding: 24px; width: min(920px, calc(100% - 40px)); max-height: calc(100dvh - 64px); overflow: auto; box-shadow: 0 14px 48px rgba(0, 0, 0, .25); }
.fp-dialog::backdrop { background: rgba(0, 5, 10, .7); backdrop-filter: blur(5px); }
.fp-directory[open] { display: flex; flex-direction: column; overflow: hidden; }
.fp-directory .fp-dialog-heading { flex: none; }
.fp-directory .fp-directory-grid { overflow-y: auto; min-height: 0; overscroll-behavior-y: contain; }
.fp-dialog-heading { position: relative; margin-bottom: 20px; }
.fp-dialog-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.fp-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fp-directory-item { min-width: 0; text-decoration: none; color: #d5dfef; padding: 20px 12px; border-bottom: 1px solid var(--fp-line); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fp-directory-item .fp-brand { height: 76px; max-width: 150px; }
.fp-directory-item span { width: 100%; overflow-wrap: anywhere; text-align: center; font-size: 13px; line-height: 1.4; }
.fp-admin-list { display: grid; gap: 0; }
.fp-admin-row { display: grid; grid-template-columns: 68px minmax(170px, 1fr) 150px 145px auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--fp-line); }
.fp-admin-logo { width: 68px; height: 56px; object-fit: contain; }
.fp-admin-name { min-width: 0; }
.fp-admin-name strong, .fp-admin-name a { display: block; overflow-wrap: anywhere; }
.fp-admin-name strong { font-size: 14px; }
.fp-admin-name a { font-size: 12px; color: var(--fp-blue); }
.fp-admin-meta { font-size: 11px; line-height: 1.7; color: #a2b1c8; }
.fp-admin-type { font-size: 12px; color: #b0c3de; }
.fp-admin-actions { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.admin-console-page .fp-admin .fp-icon-button, .admin-console-page .fp-dialog .fp-icon-button { width: 36px; min-width: 36px; max-width: 36px; height: 36px; min-height: 36px; border-radius: 6px; }
.admin-console-page .fp-admin [data-fp-add] { display: inline-flex; align-items: center; gap: 8px; }
.fp-admin-row.is-dragging { opacity: .45; }
.fp-admin-row.is-drop-target { border-top-color: #91b8fa; }
.fp-admin .fp-order { font-size: 12px; color: #a8bbd3; display: inline-block; min-width: 30px; }
.fp-count, .fp-notice { font-size: 13px; color: #aabbd2; }
.fp-notice { min-height: 18px; margin: 6px 0; }
.fp-notice.is-error { color: #ff9b9b; }
.fp-toggle { display: inline-flex !important; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #cbd8ea; }
.fp-toggle input { appearance: auto !important; width: 18px !important; height: 18px; margin: 0; accent-color: #4b98f9; }
.fp-editor { width: min(620px, calc(100% - 40px)); }
.fp-editor form { display: grid; gap: 16px; }
.fp-editor label { display: grid; gap: 7px; font-size: 13px; color: #cfdaea; }
.fp-editor input:not([type=checkbox]), .fp-editor select { width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid var(--fp-line); border-radius: 6px; color: #eff4fc; background: #121e2d; font: inherit; }
.fp-editor input[type=file] { padding: 8px; }
.admin-console-page .fp-dialog.fp-editor select { color: #eff4fc; background: #121e2d; color-scheme: dark; }
.fp-upload { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.fp-preview { height: 100px; display: grid; place-items: center; border: 1px dashed var(--fp-line); border-radius: 6px; background: #172432; padding: 10px; }
.fp-preview img { width: 100%; height: 78px; object-fit: contain; }
.fp-upload small { color: #aabbd2; font-size: 11px; line-height: 1.5; }
.fp-form-pair { display: grid; grid-template-columns: 1fr 120px; gap: 14px; }
.fp-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.fp-delete { width: min(460px, calc(100% - 40px)); }
.fp-delete p { line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .fp-admin-row { grid-template-columns: 68px minmax(140px, 1fr) 140px auto; } .fp-admin-meta { grid-column: 2; } .fp-admin-actions { grid-column: 3 / -1; } }
@media (max-width: 600px) {
  .home-page main#top > .fp-section { padding: 0 18px 12px; }
  .fp-glass { padding: 12px 12px 10px; border-radius: 20px; }
  .fp-heading { gap: 6px; }
  .fp-heading h2 { font-size: 9px; max-width: 150px; }
  .fp-heading-actions { gap: 4px; }
  .fp-all { font-size: 10px; gap: 4px; }
  .fp-all .fp-icon { width: 14px; height: 14px; }
  .fp-viewport { margin-top: 8px; }
  .fp-logo { flex-basis: 104px; width: 104px; height: 65px; padding: 6px 12px; }
  .fp-dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 32px); margin: auto 0 0; padding: 20px 18px max(24px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .fp-dialog-heading h2 { font-size: 19px; }
  .fp-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fp-directory-item { padding: 18px 8px; }
  .fp-admin-row { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .fp-admin-logo { width: 52px; height: 48px; }
  .fp-admin-type, .fp-admin-meta { grid-column: 2; }
  .fp-admin-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .fp-upload { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .fp-preview { height: 88px; }
  .fp-preview img { height: 66px; }
}
@media (prefers-reduced-motion: reduce) { .fp-logo .fp-brand { transition: none; } }
