/* FATALdev Portal — front-end styles (login + design center). */

:root {
	--fn-bg: #0B0B0D;
	--fn-panel: #141417;
	--fn-panel-2: #0E0E10;
	--fn-line: #26262B;
	--fn-line-soft: #1E1E22;
	--fn-red: #D31A1A;
	--fn-red-bright: #E22222;
	--fn-red-deep: #9E1212;
	--fn-red-tint: #2E1416;
	--fn-text: #F2F2F0;
	--fn-dim: #8A8F98;
	--fn-mute: #5A5F68;
	--fn-silver: #C9CDD4;
	--fn-green: #1D7A55;
	--fn-green-bright: #239268;
	--fn-amber: #C9871F;
	--fn-blue: #3D7DBE;
	--fn-radius: 12px;
	--fn-radius-sm: 8px;
	--fn-display: "Chakra Petch", system-ui, sans-serif;
	--fn-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
.fn-body {
	margin: 0;
	font-family: var(--fn-body);
	background-color: #060608;
	background-image: radial-gradient(1100px 620px at 50% -12%, #121218 0%, rgba(6, 6, 8, 0) 60%);
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: var(--fn-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
.fn-body img { max-width: 100%; display: block; }
.fn-body a { color: var(--fn-red-bright); text-decoration: none; }
.fn-body a:hover { color: var(--fn-red); }
.fn-body :focus-visible { outline: 2px solid var(--fn-red); outline-offset: 2px; }

/* Wordmark */
.fn-wordmark { font-family: var(--fn-display); font-weight: 700; font-size: 19px; letter-spacing: 0.3px; line-height: 1; }
.fn-wm-red { color: var(--fn-red-bright); }
.fn-wm-silver { color: var(--fn-silver); font-style: italic; }

/* Icons (simple line glyphs via masks-free inline SVG in markup or pseudo) */
.fn-i-check::before { content: "\2713"; }
.fn-i-plus::before { content: "\002B"; margin-right: 2px; }
.fn-i-ext::before { content: "\2197"; margin-right: 2px; }
.fn-i-warn::before { content: "\26A0"; margin-right: 8px; }
.fn-i-user::before { content: "\1F464"; }
.fn-i-send::before { content: "\27A4"; }

/* Buttons */
.fn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--fn-body); font-weight: 500; font-size: 14px;
	padding: 11px 20px; border-radius: var(--fn-radius-sm); border: 1px solid transparent;
	cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .12s ease; text-decoration: none;
}
.fn-btn:active { transform: translateY(1px); }
.fn-btn-sm { padding: 8px 14px; font-size: 13px; }
.fn-btn-block { width: 100%; padding: 13px 20px; font-size: 15px; }
.fn-body .fn-btn-red { background: var(--fn-red); color: #fff; }
.fn-body .fn-btn-red:hover { background: var(--fn-red-deep); color: #fff; }
.fn-body .fn-btn-green { background: var(--fn-green); color: #fff; }
.fn-body .fn-btn-green:hover { background: var(--fn-green-bright); color: #fff; }
.fn-body .fn-btn-ghost { background: transparent; color: var(--fn-silver); border-color: var(--fn-line); }
.fn-body .fn-btn-ghost:hover { border-color: var(--fn-mute); color: var(--fn-text); }
.fn-body .fn-btn.is-disabled { opacity: .5; pointer-events: none; }

/* Soft red glow behind the badge on the login screen */
.fn-circuit {
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(circle at 50% 23%, rgba(211, 26, 26, 0.16) 0%, transparent 46%);
}

/* ============================ LOGIN ============================ */
.fn-login-wrap {
	position: relative; z-index: 1;
	min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 48px 20px;
}
.fn-login-badge { margin-bottom: 4px; }
.fn-badge { display: block; height: auto; filter: drop-shadow(0 10px 34px rgba(211, 26, 26, 0.28)); }
.fn-badge-mini-img { display: block; border-radius: 0; flex: none; height: auto; }

.fn-card {
	background: var(--fn-panel); border: 1px solid var(--fn-line); border-radius: 14px;
}
.fn-login-card { width: 100%; max-width: 384px; padding: 30px 30px 26px; margin-top: 26px; }
.fn-card-title { font-family: var(--fn-body); font-size: 20px; font-weight: 600; margin: 0 0 3px; color: var(--fn-text); }
.fn-card-sub { font-size: 14px; color: var(--fn-dim); margin: 0 0 20px; }

.fn-alert {
	display: flex; align-items: center; background: var(--fn-red-tint); border: 1px solid #4A2023;
	color: #F5B5AC; border-radius: var(--fn-radius-sm); padding: 11px 14px; font-size: 13.5px; margin-bottom: 18px;
}

.fn-form { display: block; }
.fn-label {
	display: block; font-family: var(--fn-display); font-weight: 500; font-size: 12px;
	letter-spacing: .06em; text-transform: uppercase; color: var(--fn-silver); margin: 0 0 7px;
}
.fn-input-wrap { position: relative; margin-bottom: 16px; }
.fn-input-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--fn-red); pointer-events: none; }
.fn-input {
	width: 100%; background: var(--fn-panel-2); border: 1px solid var(--fn-line);
	border-radius: var(--fn-radius-sm); color: var(--fn-text); font: inherit; font-size: 15px;
	padding: 12px 14px 12px 40px;
}
.fn-input::placeholder { color: var(--fn-mute); }
.fn-input:focus { outline: none; border-color: var(--fn-red); box-shadow: 0 0 0 3px rgba(211,26,26,.16); }
.fn-input:-webkit-autofill,
.fn-input:-webkit-autofill:hover,
.fn-input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--fn-text);
	-webkit-box-shadow: 0 0 0 1000px var(--fn-panel-2) inset;
	box-shadow: 0 0 0 1000px var(--fn-panel-2) inset;
	caret-color: var(--fn-text);
	border: 1px solid var(--fn-line);
	transition: background-color 9999s ease 0s;
}
.fn-reveal {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0;
	color: var(--fn-mute); cursor: pointer; padding: 6px; display: inline-flex;
}
.fn-reveal svg { width: 18px; height: 18px; }
.fn-reveal:hover { color: var(--fn-silver); }
.fn-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fn-dim); margin: 2px 0 20px; }
.fn-remember input { accent-color: var(--fn-red); }
.fn-card-foot { text-align: center; font-size: 13px; color: var(--fn-mute); margin: 16px 0 0; }
.fn-fineprint { text-align: center; font-size: 11.5px; color: #4A4E56; margin-top: 24px; letter-spacing: .02em; }

/* ============================ APP SHELL ============================ */
.fn-topbar { border-bottom: 1px solid var(--fn-line-soft); background: #0C0C0F; position: sticky; top: 0; z-index: 20; }
.fn-topbar-in { max-width: 940px; margin: 0 auto; padding: 13px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fn-brand { display: flex; align-items: center; gap: 10px; }
.fn-badge-mini { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #131315; border: 2.5px solid var(--fn-red); flex: none; }
.fn-brand-tag { font-size: 12px; color: var(--fn-mute); margin-left: 4px; }
.fn-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fn-dim); }
.fn-avatar, .fn-msg-av { width: 28px; height: 28px; border-radius: 50%; background: var(--fn-line); color: var(--fn-text); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; flex: none; }
.fn-user-name { color: var(--fn-silver); }
.fn-body .fn-logout { color: var(--fn-mute); font-size: 13px; }
.fn-logout:hover { color: var(--fn-red); }

.fn-main { position: relative; z-index: 1; }
.fn-main-in { max-width: 940px; margin: 0 auto; padding: 34px 22px 60px; }
.fn-h1 { font-family: var(--fn-body); font-size: 26px; font-weight: 600; margin: 0 0 4px; color: var(--fn-text); }
.fn-sub { color: var(--fn-dim); font-size: 15px; margin: 0 0 22px; }

.fn-toast { border-radius: var(--fn-radius-sm); padding: 13px 18px; font-size: 14px; margin-bottom: 22px; }
.fn-toast.is-ok { background: #10301F; border: 1px solid #1C5238; color: #7BD4A8; }
.fn-toast.is-err { background: var(--fn-red-tint); border: 1px solid #4A2023; color: #F5B5AC; }

/* Status pills */
.fn-status { font-family: var(--fn-display); font-weight: 500; font-size: 11px; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.fn-status.is-red { background: #3A1414; color: #F09595; }
.fn-status.is-amber { background: #3A2A12; color: #F0C177; }
.fn-status.is-blue { background: #12263A; color: #85B7EB; }
.fn-status.is-green { background: #12301F; color: #7BD4A8; }

/* Project card */
.fn-project { background: var(--fn-panel); border: 1px solid var(--fn-line); border-radius: 16px; padding: 20px; margin-bottom: 22px; }
.fn-project-head { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 20px; align-items: center; }
.fn-thumb { border-radius: 10px; aspect-ratio: 4/3; background: #13294B; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.fn-thumb-mark { font-family: var(--fn-display); font-weight: 700; font-size: 34px; color: var(--fn-silver); }
.fn-project-meta { min-width: 0; }
.fn-project-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fn-project-title h2 { font-family: var(--fn-body); font-size: 19px; font-weight: 600; margin: 0; color: var(--fn-text); }
.fn-project-note { color: var(--fn-dim); font-size: 14px; margin: 7px 0 0; }
.fn-project-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Blocks */
.fn-block { border-top: 1px solid var(--fn-line-soft); margin-top: 22px; padding-top: 22px; }
.fn-block-title { font-family: var(--fn-body); font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--fn-text); }
.fn-block-sub { color: var(--fn-dim); font-size: 13.5px; margin: 0 0 16px; }

/* Logo wall */
.fn-logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fn-logo-opt { position: relative; display: flex; flex-direction: column; cursor: pointer; border: 2px solid var(--fn-line); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .18s ease; }
.fn-logo-opt:hover { border-color: var(--fn-mute); }
.fn-logo-opt.is-picked { border-color: var(--fn-red); }
.fn-logo-opt input { position: absolute; opacity: 0; }
.fn-logo-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--fn-red); color: #fff; display: none; align-items: center; justify-content: center; font-size: 12px; }
.fn-logo-opt.is-picked .fn-logo-check { display: flex; }
.fn-logo-img { padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 96px; background: #fff; }
.fn-logo-img img { max-height: 90px; width: auto; }
.fn-logo-label { font-size: 12px; color: #5F5E5A; background: #F4F1EA; padding: 8px 10px; text-align: center; }
.fn-logo-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.fn-change { margin-top: 14px; }
.fn-change[hidden] { display: none; }
.fn-textarea { width: 100%; background: var(--fn-panel-2); border: 1px solid var(--fn-line); border-radius: var(--fn-radius-sm); color: var(--fn-text); font: inherit; font-size: 14.5px; padding: 12px 14px; resize: vertical; }
.fn-textarea:focus { outline: none; border-color: var(--fn-red); box-shadow: 0 0 0 3px rgba(211,26,26,.16); }
.fn-change .fn-btn { margin-top: 12px; }

/* Thread */
.fn-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.fn-thread-empty { color: var(--fn-mute); font-size: 14px; margin: 0; }
.fn-msg { display: flex; gap: 10px; }
.fn-msg.is-studio .fn-msg-av { background: var(--fn-red-tint); color: #F09595; }
.fn-msg-body { min-width: 0; }
.fn-msg-text { margin: 0; font-size: 14.5px; color: var(--fn-silver); }
.fn-msg-meta { margin: 3px 0 0; font-size: 11.5px; color: var(--fn-mute); }
.fn-msg-tag { background: #3A2A12; color: #F0C177; font-size: 10.5px; padding: 1px 7px; border-radius: 3px; margin-left: 6px; }
.fn-thread-input { margin-bottom: 0; }
.fn-thread-input .fn-input { padding-left: 14px; padding-right: 48px; }
.fn-send { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); background: var(--fn-red); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fn-send:hover { background: var(--fn-red-deep); }

/* Empty / studio */
.fn-empty { padding: 34px 30px; text-align: center; }
.fn-empty h2 { font-family: var(--fn-body); font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--fn-text); }
.fn-empty p { color: var(--fn-dim); margin: 0 auto 18px; max-width: 420px; }
.fn-studio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.fn-studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.fn-studio-card { background: var(--fn-panel); border: 1px solid var(--fn-line); border-radius: 14px; padding: 14px; display: flex; gap: 14px; }
.fn-thumb-sm { width: 92px; flex: none; border-radius: 8px; }
.fn-thumb-sm .fn-thumb-mark { font-size: 24px; }
.fn-studio-card-body { min-width: 0; flex: 1; }
.fn-studio-line { font-size: 13px; color: var(--fn-dim); margin: 8px 0 12px; display: flex; align-items: center; gap: 6px; }
.fn-warn, .fn-msg .fn-warn { color: #F0997B; }

@media (max-width: 620px) {
	.fn-project-head { grid-template-columns: 1fr; }
	.fn-thumb { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ===================== DESIGN CENTER v2 ===================== */
.fn-intro { margin-bottom: 26px; }

.fn-project { background: var(--fn-panel); border: 1px solid var(--fn-line); border-radius: 18px; padding: 26px; margin-bottom: 26px; }

/* Project hero */
.fn-phero { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 28px; align-items: center; }
.fn-phero-text { min-width: 0; }
.fn-phero-titlerow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.fn-phero-title { font-family: var(--fn-body); font-size: 30px; font-weight: 600; margin: 0; color: var(--fn-text); letter-spacing: -0.01em; }
.fn-phero-note { color: var(--fn-dim); font-size: 15px; margin: 12px 0 0; }
.fn-phero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.fn-phero-visual { border-radius: 14px; aspect-ratio: 16 / 11; background: #101014; background-size: cover; background-position: center; border: 1px solid var(--fn-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fn-phero-visual .fn-thumb-mark { font-family: var(--fn-display); font-weight: 700; font-size: 60px; color: var(--fn-silver); opacity: .85; }
.fn-btn-lg { padding: 15px 26px; font-size: 16px; }

/* Progress journey */
.fn-journey-wrap { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--fn-line-soft); }
.fn-journey { list-style: none; display: flex; margin: 0; padding: 0; }
.fn-step { flex: 1; position: relative; text-align: center; padding-top: 36px; }
.fn-step-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--fn-display); font-weight: 600; font-size: 13px; z-index: 1; }
.fn-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--fn-line); }
.fn-step:first-child::before { display: none; }
.fn-step-label { font-size: 12px; color: var(--fn-mute); line-height: 1.35; display: inline-block; padding: 0 4px; }
.fn-step.is-upcoming .fn-step-dot { background: #17171B; color: var(--fn-mute); border: 1px solid var(--fn-line); }
.fn-step.is-current .fn-step-dot { background: var(--fn-red); color: #fff; box-shadow: 0 0 0 4px rgba(211, 26, 26, 0.22); }
.fn-step.is-current .fn-step-label { color: var(--fn-text); font-weight: 500; }
.fn-step.is-done .fn-step-dot { background: var(--fn-red); color: #fff; }
.fn-step.is-done .fn-step-label { color: var(--fn-silver); }
.fn-step.is-done::before, .fn-step.is-current::before { background: var(--fn-red); }
.fn-nextstep { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 14.5px; color: var(--fn-silver); background: #101014; border: 1px solid var(--fn-line-soft); border-radius: var(--fn-radius-sm); padding: 13px 16px; }
.fn-nextstep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fn-red); flex: none; box-shadow: 0 0 0 4px rgba(211, 26, 26, 0.18); }

/* Block head + approved badge */
.fn-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fn-approved-badge { display: inline-flex; align-items: center; gap: 6px; background: #12301F; color: #7BD4A8; font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; }

@media (max-width: 720px) {
	.fn-phero { grid-template-columns: 1fr; gap: 20px; }
	.fn-phero-visual { order: -1; max-height: 200px; }
	.fn-phero-title { font-size: 26px; }
	.fn-step-label { font-size: 11px; }
}

/* ===================== FANCY PASS (1.0.12) ===================== */
/* Brand lockup in top bars */
.fn-lockup { display: block; width: auto; height: 38px; }

/* Glassy sticky top bar */
.fn-topbar { background: rgba(10, 10, 13, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Login entrance */
@keyframes fnDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fnUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fn-login-badge { animation: fnDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fn-login-card { animation: fnUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.fn-fineprint { animation: fnUp 0.7s ease 0.3s both; }

/* Buttons: red glow on hover */
.fn-body .fn-btn-red { box-shadow: 0 6px 20px -8px rgba(211, 26, 26, 0.55); }
.fn-body .fn-btn-red:hover { box-shadow: 0 10px 26px -8px rgba(211, 26, 26, 0.75); transform: translateY(-1px); }
.fn-body .fn-btn-green { box-shadow: 0 6px 20px -10px rgba(29, 122, 85, 0.6); }

/* Cards: lift on hover */
.fn-project, .fn-studio-card { transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.fn-project:hover, .fn-studio-card:hover { border-color: #3a3a42; transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7); }

/* Design-center content entrance */
.fn-main-in > * { animation: fnUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fn-main-in > *:nth-child(2) { animation-delay: 0.06s; }
.fn-main-in > *:nth-child(3) { animation-delay: 0.12s; }
.fn-main-in > *:nth-child(4) { animation-delay: 0.18s; }

/* Toasts slide in */
.fn-toast { animation: fnDown 0.4s ease both; }

/* Logo options: subtle scale on hover */
.fn-logo-opt { transition: border-color 0.2s ease, transform 0.2s ease; }
.fn-logo-opt:hover { transform: translateY(-2px); }

/* Reduced motion: kill it all */
@media (prefers-reduced-motion: reduce) {
	.fn-body *, .fn-body *::before, .fn-body *::after { animation: none !important; transition: none !important; }
}

/* ===================== LEGACY LOGO PRESENTATION OVERRIDES ===================== */
/* Retained for old markup safety; 1.0.17 uses a true-transparent bundled logo. */
.fn-logo-tile {
	display: inline-block; background: #FDFDFD; border-radius: 22px; padding: 6px;
	line-height: 0; box-shadow: 0 24px 60px -22px rgba(211, 26, 26, 0.35), 0 8px 30px -12px rgba(0, 0, 0, 0.6);
}
.fn-logo-tile img { display: block; width: min(250px, 62vw); height: auto; border-radius: 16px; }

/* Small logo chip for top bars (same untouched file, scaled) */
.fn-chip {
	display: inline-flex; align-items: center; justify-content: center;
	background: #FDFDFD; border-radius: 9px; overflow: hidden; flex: none;
}
.fn-chip img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===================== FATALNET DESIGN CENTER LOGIN SPLASH (1.0.17) ===================== */
.fn-login-body {
	min-height: 100vh;
	background:
		radial-gradient(900px 520px at 50% 6%, rgba(211, 26, 26, .24), transparent 62%),
		radial-gradient(920px 520px at 50% 100%, rgba(211, 26, 26, .13), transparent 58%),
		linear-gradient(180deg, #08080a 0%, #0a0305 48%, #050506 100%);
	overflow-x: hidden;
}
.fn-login-body::before,
.fn-login-body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.fn-login-body::before {
	background:
		repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 18px),
		repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 18px),
		radial-gradient(circle at 50% 26%, transparent 0 260px, rgba(211,26,26,.18) 262px, transparent 266px),
		radial-gradient(circle at 50% 26%, transparent 0 350px, rgba(211,26,26,.12) 352px, transparent 356px),
		radial-gradient(circle at 50% 26%, transparent 0 438px, rgba(211,26,26,.08) 440px, transparent 444px);
	opacity: .9;
	-webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, #000 54%, transparent 82%);
	mask-image: radial-gradient(circle at 50% 42%, #000 0%, #000 54%, transparent 82%);
}
.fn-login-body::after {
	background:
		linear-gradient(128deg, transparent 0 38%, rgba(211,26,26,.18) 38.15%, transparent 38.45% 100%),
		linear-gradient(52deg, transparent 0 38%, rgba(211,26,26,.14) 38.15%, transparent 38.45% 100%),
		linear-gradient(180deg, transparent 0 78%, rgba(211,26,26,.10) 78.15%, transparent 78.45% 100%),
		radial-gradient(160px 80px at 15% 92%, rgba(211,26,26,.28), transparent 68%),
		radial-gradient(160px 80px at 85% 92%, rgba(211,26,26,.28), transparent 68%);
	opacity: .72;
}
.fn-circuit {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 28%, rgba(211, 26, 26, 0.18) 0%, rgba(211, 26, 26, 0.08) 18%, transparent 50%),
		linear-gradient(90deg, transparent 0 10%, rgba(211,26,26,.12) 10.08%, transparent 10.3% 89.7%, rgba(211,26,26,.12) 89.92%, transparent 90.2%);
}
.fn-circuit::before {
	content: "";
	position: absolute;
	top: 3vh;
	left: 50%;
	width: min(980px, 112vw);
	aspect-ratio: 1;
	border: 1px solid rgba(211, 26, 26, .34);
	border-radius: 50%;
	transform: translateX(-50%);
	box-shadow:
		0 0 70px rgba(211, 26, 26, .18),
		inset 0 0 70px rgba(211, 26, 26, .08),
		0 0 0 58px rgba(211, 26, 26, .025),
		0 0 0 116px rgba(211, 26, 26, .018);
}
.fn-circuit::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: min(1100px, 105vw);
	height: 170px;
	transform: translateX(-50%);
	background:
		linear-gradient(160deg, transparent 0 16%, rgba(211,26,26,.28) 16.2%, transparent 16.55% 100%),
		linear-gradient(20deg, transparent 0 16%, rgba(211,26,26,.24) 16.2%, transparent 16.55% 100%),
		linear-gradient(0deg, rgba(211,26,26,.20), transparent 2px),
		radial-gradient(80px 36px at 8% 62%, rgba(226,34,34,.35), transparent 74%),
		radial-gradient(80px 36px at 92% 62%, rgba(226,34,34,.35), transparent 74%);
	opacity: .75;
}
.fn-login-wrap {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 5vh, 56px) 20px clamp(28px, 5vh, 56px);
}
.fn-login-badge {
	position: relative;
	width: min(660px, 92vw);
	margin: 0 auto clamp(16px, 2.3vh, 24px);
	line-height: 0;
	animation: fnDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fn-login-badge::before {
	content: "";
	position: absolute;
	inset: 10% 6% 0;
	z-index: -1;
	background: radial-gradient(ellipse at 50% 48%, rgba(211,26,26,.32), rgba(211,26,26,.11) 42%, transparent 70%);
	filter: blur(22px);
}
.fn-login-badge .fn-badge,
.fn-login-badge img {
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
	filter: drop-shadow(0 24px 54px rgba(0, 0, 0, .76)) drop-shadow(0 12px 38px rgba(211, 26, 26, .32));
}
.fn-logo-tile {
	background: transparent;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
}
.fn-logo-tile img { width: 100%; border-radius: 0; }
.fn-login-card {
	width: 100%;
	max-width: 560px;
	margin-top: 0;
	padding: clamp(28px, 3.6vw, 42px) clamp(22px, 4vw, 58px) clamp(24px, 3.4vw, 36px);
	background:
		linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 28%, rgba(0,0,0,.12) 100%),
		rgba(14, 14, 17, .78);
	border: 1px solid rgba(255, 116, 116, .54);
	border-radius: 18px;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, .035) inset,
		0 0 42px rgba(211, 26, 26, .18),
		0 28px 90px rgba(0, 0, 0, .72);
	backdrop-filter: blur(18px) saturate(130%);
	-webkit-backdrop-filter: blur(18px) saturate(130%);
	animation: fnUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.fn-login-card .fn-card-title {
	font-size: clamp(28px, 3.2vw, 36px);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.025em;
	text-align: center;
	margin: 0 0 8px;
	text-shadow: 0 0 18px rgba(255, 255, 255, .08);
}
.fn-login-card .fn-card-sub {
	font-size: 15px;
	line-height: 1.55;
	text-align: center;
	color: #A8AFBA;
	margin: 0 auto 28px;
	max-width: 440px;
}
.fn-login-card .fn-card-sub::after {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin: 16px auto 0;
	background: linear-gradient(90deg, transparent, var(--fn-red-bright), transparent);
	box-shadow: 0 0 16px rgba(211, 26, 26, .7);
}
.fn-login-card .fn-form {
	text-align: left;
}
.fn-login-card .fn-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .075em;
	color: #DEE3EA;
	margin-bottom: 8px;
}
.fn-login-card .fn-input-wrap {
	margin-bottom: 20px;
}
.fn-login-card .fn-input {
	min-height: 58px;
	background: rgba(5, 5, 7, .72);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 10px;
	padding: 15px 48px 15px 46px;
	font-size: 16px;
	box-shadow: 0 0 0 1px rgba(0,0,0,.38) inset;
}
.fn-login-card .fn-input-wrap:first-of-type .fn-input,
.fn-login-card .fn-input:focus {
	border-color: rgba(226, 34, 34, .9);
	box-shadow: 0 0 0 1px rgba(211,26,26,.18), 0 0 22px rgba(211,26,26,.18);
}
.fn-login-card .fn-input-ico {
	left: 16px;
	width: 20px;
	height: 20px;
	color: var(--fn-red-bright);
	filter: drop-shadow(0 0 8px rgba(211, 26, 26, .45));
}
.fn-login-card .fn-reveal {
	right: 13px;
	color: #656B76;
}
.fn-login-card .fn-remember {
	margin: -2px 0 22px;
	font-size: 14px;
	color: #A7ADB6;
}
.fn-login-card .fn-remember input {
	width: 15px;
	height: 15px;
	accent-color: var(--fn-red-bright);
}
.fn-login-card .fn-btn-block {
	min-height: 62px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .01em;
	background: linear-gradient(180deg, #EC2020 0%, #D31313 52%, #B60F0F 100%);
	border-color: rgba(255, 119, 119, .42);
	box-shadow:
		0 0 0 1px rgba(255,255,255,.08) inset,
		0 14px 36px -14px rgba(226, 34, 34, .95),
		0 0 28px rgba(211, 26, 26, .28);
}
.fn-login-card .fn-btn-block:hover {
	background: linear-gradient(180deg, #FF2A2A 0%, #D91616 58%, #A90E0E 100%);
	box-shadow:
		0 0 0 1px rgba(255,255,255,.1) inset,
		0 18px 44px -14px rgba(226, 34, 34, 1),
		0 0 36px rgba(211, 26, 26, .34);
}
.fn-login-card .fn-card-foot {
	margin-top: 18px;
	font-size: 14px;
	color: #7B828D;
}
.fn-login-card .fn-card-foot a {
	font-weight: 600;
	color: #FF3434;
}
.fn-fineprint { display: none !important; }
.fn-chip {
	background: rgba(20, 20, 23, .72);
	border: 1px solid rgba(211,26,26,.35);
	box-shadow: 0 0 16px rgba(211,26,26,.15);
}
.fn-chip img { object-fit: contain; padding: 1px; }

@media (max-width: 700px) {
	.fn-login-wrap {
		justify-content: flex-start;
		padding: 20px 14px 28px;
	}
	.fn-login-badge {
		width: min(520px, 96vw);
		margin-bottom: 10px;
	}
	.fn-login-card {
		max-width: 100%;
		padding: 24px 20px 22px;
		border-radius: 16px;
	}
	.fn-login-card .fn-card-title {
		font-size: 27px;
	}
	.fn-login-card .fn-card-sub {
		font-size: 13.5px;
		margin-bottom: 22px;
	}
	.fn-login-card .fn-input {
		min-height: 54px;
		font-size: 15px;
	}
	.fn-login-card .fn-btn-block {
		min-height: 56px;
	}
	.fn-circuit::before {
		top: -4vh;
		width: 136vw;
	}
	.fn-circuit::after,
	.fn-login-body::after {
		opacity: .45;
	}
}

@media (max-width: 420px) {
	.fn-login-badge { width: 104vw; margin-left: -2vw; margin-right: -2vw; }
	.fn-login-card { padding-left: 18px; padding-right: 18px; }
	.fn-login-card .fn-card-title { font-size: 25px; }
	.fn-login-card .fn-card-sub { font-size: 13px; }
}

/* ===================== LOGIN REFINEMENT (1.0.18) ===================== */
.fn-login-body {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 12%, rgba(211, 26, 26, 0.30), rgba(211, 26, 26, 0) 34%),
		radial-gradient(circle at 50% 100%, rgba(130, 0, 0, 0.22), rgba(130, 0, 0, 0) 48%),
		linear-gradient(180deg, #07070A 0%, #040406 100%);
}
.fn-login-body::before,
.fn-login-body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
.fn-login-body::before {
	background-image:
		linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
	background-size: 56px 56px;
	opacity: .28;
	mask-image: radial-gradient(circle at 50% 38%, rgba(0,0,0,.95), rgba(0,0,0,.38) 58%, transparent 94%);
}
.fn-login-body::after {
	background:
		radial-gradient(circle at 50% 28%, rgba(211,26,26,.20) 0 35%, transparent 36% 100%),
		radial-gradient(circle at 50% 28%, transparent 0 42%, rgba(211,26,26,.14) 42.3%, transparent 42.8%),
		radial-gradient(circle at 50% 28%, transparent 0 53%, rgba(211,26,26,.12) 53.25%, transparent 53.75%);
	opacity: .85;
}
.fn-circuit {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(120deg, transparent 0 23%, rgba(211,26,26,.12) 23.4%, transparent 23.8%) left 18% top 22% / 36% 56% no-repeat,
		linear-gradient(240deg, transparent 0 24%, rgba(211,26,26,.10) 24.4%, transparent 24.8%) right 18% top 22% / 36% 56% no-repeat,
		radial-gradient(circle at 15% 92%, rgba(211,26,26,.30), rgba(211,26,26,0) 13%),
		radial-gradient(circle at 85% 92%, rgba(211,26,26,.30), rgba(211,26,26,0) 13%);
	opacity: .75;
}
.fn-login-wrap {
	position: relative;
	z-index: 1;
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: clamp(14px, 2.2vh, 24px) clamp(16px, 3vw, 28px);
}
.fn-login-stage {
	position: relative;
	width: min(100%, 760px);
	display: grid;
	justify-items: center;
	gap: clamp(8px, 1.4vh, 16px);
}
.fn-login-hero {
	position: relative;
	width: min(100%, 580px);
	display: flex;
	justify-content: center;
	align-items: center;
	isolation: isolate;
}
.fn-login-orbit {
	position: absolute;
	inset: 8% -10% auto;
	height: min(58vh, 460px);
	border-radius: 50%;
	border: 1px solid rgba(211, 26, 26, 0.20);
	box-shadow:
		0 0 0 42px rgba(211, 26, 26, 0.04),
		0 0 0 108px rgba(211, 26, 26, 0.025),
		0 0 60px rgba(211,26,26,.12) inset;
	filter: drop-shadow(0 0 28px rgba(211,26,26,.16));
	z-index: -1;
}
.fn-login-badge {
	margin: 0;
	display: flex;
	justify-content: center;
	width: 100%;
}
.fn-badge {
	display: block;
	width: min(100%, clamp(300px, 34vw, 510px));
	height: auto;
	max-height: min(34vh, 320px);
	object-fit: contain;
	filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.55)) drop-shadow(0 10px 34px rgba(211, 26, 26, 0.28));
}
.fn-card.fn-login-card {
	width: min(100%, 560px);
	padding: clamp(22px, 3vw, 32px);
	margin-top: 0;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(21, 21, 26, 0.84) 0%, rgba(10, 10, 14, 0.94) 100%);
	border: 1px solid rgba(255,255,255,.10);
	box-shadow:
		0 0 0 1px rgba(255,255,255,.03) inset,
		0 0 0 1px rgba(211, 26, 26, 0.18),
		0 24px 70px rgba(0, 0, 0, 0.55),
		0 0 34px rgba(211,26,26,.16);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.fn-card-title {
	font-size: clamp(20px, 2.7vw, 24px);
	font-weight: 700;
	text-align: center;
	margin: 0;
}
.fn-card-sub {
	font-size: clamp(13px, 1.8vw, 14px);
	text-align: center;
	max-width: 460px;
	margin: 8px auto 0;
	color: #A7ADB7;
}
.fn-card-accent {
	width: 42px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(211,26,26,.3), #E22222, rgba(211,26,26,.3));
	box-shadow: 0 0 14px rgba(211,26,26,.45);
	margin: 14px auto 18px;
}
.fn-alert {
	margin-bottom: 16px;
	background: rgba(89, 27, 27, 0.45);
	border-color: rgba(228, 99, 87, 0.32);
}
.fn-label {
	margin-bottom: 8px;
	color: #E1E4EA;
}
.fn-input-wrap { margin-bottom: 14px; }
.fn-input {
	min-height: 58px;
	background: rgba(9, 10, 14, 0.78);
	border-color: rgba(255,255,255,.10);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.fn-input:focus {
	border-color: var(--fn-red);
	box-shadow: 0 0 0 3px rgba(211,26,26,.15), inset 0 1px 0 rgba(255,255,255,.02);
}
.fn-input-ico { left: 16px; }
.fn-input { padding-left: 46px; padding-right: 48px; }
.fn-remember {
	margin: 2px 0 18px;
	color: #C4CAD4;
}
.fn-remember input {
	accent-color: var(--fn-red);
	width: 16px;
	height: 16px;
}
.fn-btn-block {
	min-height: 58px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 12px;
}
.fn-body .fn-btn-red {
	background: linear-gradient(180deg, #EE2323 0%, #C91414 100%);
	border: 1px solid rgba(255,255,255,.10);
	box-shadow: 0 10px 28px rgba(211,26,26,.28), inset 0 1px 0 rgba(255,255,255,.22);
}
.fn-body .fn-btn-red:hover {
	background: linear-gradient(180deg, #F32A2A 0%, #B91212 100%);
}
.fn-card-foot {
	margin-top: 16px;
	text-align: center;
	color: #8A8F98;
}

@media (max-width: 860px), (max-height: 860px) {
	.fn-login-stage { width: min(100%, 680px); }
	.fn-badge { width: min(100%, clamp(260px, 48vw, 430px)); max-height: min(28vh, 260px); }
	.fn-login-orbit { height: min(48vh, 360px); }
	.fn-card.fn-login-card { width: min(100%, 520px); }
}

@media (max-width: 640px) {
	.fn-login-wrap { padding: 14px; }
	.fn-login-stage { width: 100%; gap: 10px; }
	.fn-login-hero { width: min(100%, 420px); }
	.fn-login-orbit {
		inset: 10% -8% auto;
		height: min(42vh, 280px);
		box-shadow:
			0 0 0 24px rgba(211, 26, 26, 0.04),
			0 0 0 58px rgba(211, 26, 26, 0.022),
			0 0 34px rgba(211,26,26,.10) inset;
	}
	.fn-badge {
		width: min(100%, 340px);
		max-height: min(24vh, 188px);
	}
	.fn-card.fn-login-card {
		width: 100%;
		padding: 20px 18px 18px;
		border-radius: 18px;
	}
	.fn-input,
	.fn-btn-block { min-height: 54px; }
}

@media (max-width: 400px), (max-height: 720px) {
	.fn-login-wrap { padding: 12px; }
	.fn-login-stage { gap: 8px; }
	.fn-badge {
		width: min(100%, 290px);
		max-height: min(20vh, 156px);
	}
	.fn-login-orbit { display: none; }
	.fn-card.fn-login-card { padding: 18px 16px 16px; }
	.fn-card-sub { margin-top: 6px; }
	.fn-card-accent { margin: 10px auto 14px; }
	.fn-input-wrap { margin-bottom: 12px; }
	.fn-remember { margin-bottom: 14px; }
	.fn-card-foot { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.fn-login-badge,
	.fn-login-card { animation: none !important; }
}

/* ===================== LOGIN POLISH (1.0.19) ===================== */
.fn-login-body {
	overflow: hidden;
}
.fn-login-wrap {
	padding: clamp(10px, 1.6vh, 18px) 16px;
}
.fn-login-stage {
	width: min(100%, 760px);
	max-height: 100svh;
	gap: 10px;
}
.fn-login-hero {
	width: min(100%, 760px);
}
.fn-login-badge-art {
	width: 100%;
	margin: 0;
}
.fn-login-heroimg {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(41vh, 360px);
	object-fit: contain;
	object-position: center top;
	filter: drop-shadow(0 18px 38px rgba(0,0,0,.55));
}
.fn-login-orbit {
	display: none;
}
.fn-card.fn-login-card {
	width: min(100%, 600px);
	padding: 22px 28px 20px;
	margin-top: -2px;
}
.fn-card-title {
	font-size: clamp(18px, 2.2vw, 23px);
	margin-bottom: 2px;
}
.fn-card-sub {
	max-width: 420px;
	margin: 8px auto 14px;
}
.fn-label {
	font-size: 13px;
	letter-spacing: .045em;
}
.fn-input-wrap { margin-bottom: 12px; }
.fn-input { min-height: 56px; }
.fn-remember { margin: 4px 0 14px; }
.fn-btn-block { min-height: 56px; }
.fn-card-foot { margin-top: 14px; }

@media (max-width: 900px), (max-height: 860px) {
	.fn-login-stage { width: min(100%, 700px); gap: 8px; }
	.fn-login-hero { width: min(100%, 700px); }
	.fn-login-heroimg { max-height: min(34vh, 300px); }
	.fn-card.fn-login-card { width: min(100%, 560px); padding: 20px 24px 18px; }
}

@media (max-width: 640px) {
	.fn-login-body { overflow: auto; }
	.fn-login-wrap {
		padding: 12px 12px 16px;
		min-height: 100svh;
	}
	.fn-login-stage {
		width: 100%;
		gap: 8px;
	}
	.fn-login-hero {
		width: min(100%, 420px);
	}
	.fn-login-heroimg {
		max-height: min(26vh, 190px);
	}
	.fn-card.fn-login-card {
		width: 100%;
		max-width: 420px;
		padding: 18px 16px 16px;
		border-radius: 18px;
	}
	.fn-input { min-height: 52px; font-size: 14px; }
	.fn-btn-block { min-height: 52px; font-size: 15px; }
	.fn-card-sub { font-size: 13px; margin-bottom: 12px; }
}

@media (max-height: 760px) {
	.fn-login-wrap { padding-top: 8px; padding-bottom: 8px; }
	.fn-login-stage { gap: 6px; }
	.fn-login-heroimg { max-height: min(26vh, 210px); }
	.fn-card.fn-login-card { padding-top: 18px; padding-bottom: 16px; }
	.fn-card-sub { margin-bottom: 10px; }
	.fn-input-wrap { margin-bottom: 10px; }
	.fn-input, .fn-btn-block { min-height: 50px; }
	.fn-remember { margin-bottom: 12px; }
	.fn-card-foot { margin-top: 10px; }
}

@media (max-height: 660px) {
	.fn-login-heroimg { max-height: 150px; }
	.fn-card.fn-login-card { padding: 16px 16px 14px; }
	.fn-card-title { font-size: 18px; }
	.fn-card-sub { font-size: 12px; margin: 6px auto 8px; }
	.fn-label { font-size: 12px; margin-bottom: 6px; }
	.fn-input-wrap { margin-bottom: 8px; }
	.fn-input, .fn-btn-block { min-height: 46px; }
	.fn-remember { font-size: 13px; margin: 2px 0 10px; }
	.fn-card-foot { font-size: 13px; }
}

/* ===================== LOGIN FINAL PASS (1.0.20) ===================== */
.fn-login-body {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 16%, rgba(176, 18, 18, 0.30), rgba(176, 18, 18, 0) 28%),
		radial-gradient(circle at 50% 92%, rgba(120, 0, 0, 0.18), rgba(120, 0, 0, 0) 34%),
		linear-gradient(180deg, #060609 0%, #040406 100%);
}
.fn-login-body::before,
.fn-login-body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
.fn-login-body::before {
	background-image:
		linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: .14;
	mask-image: radial-gradient(circle at 50% 34%, rgba(0,0,0,.95), rgba(0,0,0,.3) 66%, transparent 92%);
}
.fn-login-body::after {
	background:
		radial-gradient(circle at 50% 28%, transparent 0 31%, rgba(211,26,26,.15) 31.2%, transparent 31.7%),
		radial-gradient(circle at 50% 28%, transparent 0 41%, rgba(211,26,26,.12) 41.2%, transparent 41.7%),
		radial-gradient(circle at 50% 28%, transparent 0 52%, rgba(211,26,26,.10) 52.2%, transparent 52.7%),
		radial-gradient(circle at 50% 28%, rgba(211,26,26,.05), rgba(211,26,26,0) 56%);
	opacity: .95;
}
.fn-circuit {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(120deg, transparent 0 26%, rgba(211,26,26,.12) 26.35%, transparent 26.7%) left 16% top 18% / 34% 58% no-repeat,
		linear-gradient(240deg, transparent 0 26%, rgba(211,26,26,.10) 26.35%, transparent 26.7%) right 16% top 18% / 34% 58% no-repeat,
		radial-gradient(circle at 13% 92%, rgba(211,26,26,.28), rgba(211,26,26,0) 11%),
		radial-gradient(circle at 87% 92%, rgba(211,26,26,.28), rgba(211,26,26,0) 11%);
	opacity: .82;
}
.fn-login-wrap {
	position: relative;
	z-index: 1;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: clamp(8px, 1.2vh, 14px) 16px;
}
.fn-login-stage {
	position: relative;
	width: min(100%, 980px);
	max-height: 100dvh;
	display: grid;
	justify-items: center;
	gap: 8px;
}
.fn-login-hero {
	position: relative;
	width: min(100%, 760px);
	display: flex;
	justify-content: center;
	align-items: center;
}
.fn-login-orbit {
	position: absolute;
	inset: 5% -6% auto;
	height: min(56vh, 470px);
	border-radius: 50%;
	border: 1px solid rgba(211,26,26,.16);
	box-shadow:
		0 0 0 38px rgba(211,26,26,.035),
		0 0 0 96px rgba(211,26,26,.020),
		0 0 54px rgba(211,26,26,.10) inset;
	filter: drop-shadow(0 0 26px rgba(211,26,26,.14));
	z-index: -1;
}
.fn-login-badge {
	width: 100%;
	margin: 0;
	display: flex;
	justify-content: center;
}
.fn-login-badge picture {
	display: block;
	width: 100%;
}
.fn-badge {
	display: block;
	width: min(100%, clamp(430px, 50vw, 720px));
	height: auto;
	max-height: min(37vh, 360px);
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 12px 24px rgba(0,0,0,.50)) drop-shadow(0 10px 34px rgba(211,26,26,.22));
}
.fn-card.fn-login-card {
	width: min(100%, 584px);
	padding: 22px 28px 20px;
	margin-top: -4px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(21, 21, 26, 0.80) 0%, rgba(10, 10, 14, 0.93) 100%);
	border: 1px solid rgba(255,255,255,.10);
	box-shadow:
		0 0 0 1px rgba(255,255,255,.03) inset,
		0 0 0 1px rgba(211, 26, 26, 0.16),
		0 22px 70px rgba(0, 0, 0, 0.58),
		0 0 34px rgba(211,26,26,.15);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.fn-card-title {
	font-size: clamp(18px, 2.4vw, 24px);
	font-weight: 700;
	text-align: center;
	margin: 0 0 6px;
	color: var(--fn-text);
}
.fn-card-sub {
	font-size: clamp(13px, 1.6vw, 14px);
	text-align: center;
	max-width: 420px;
	margin: 0 auto 16px;
	color: #A7ADB7;
}
.fn-alert {
	margin-bottom: 14px;
	background: rgba(89, 27, 27, 0.45);
	border-color: rgba(228, 99, 87, 0.32);
}
.fn-label {
	display: block;
	font-family: var(--fn-display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #E1E4EA;
	margin: 0 0 8px;
}
.fn-input-wrap { margin-bottom: 13px; }
.fn-input {
	width: 100%;
	min-height: 56px;
	background: rgba(8, 9, 12, 0.84);
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 10px;
	color: var(--fn-text);
	font: inherit;
	font-size: 15px;
	padding: 12px 46px 12px 42px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.fn-input:focus {
	outline: none;
	border-color: var(--fn-red);
	box-shadow: 0 0 0 3px rgba(211,26,26,.16), inset 0 1px 0 rgba(255,255,255,.02);
}
.fn-input-ico { left: 14px; }
.fn-reveal { right: 8px; }
.fn-remember {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	margin: 2px 0 16px;
	color: #C4CAD4;
}
.fn-remember input {
	accent-color: var(--fn-red);
	width: 16px;
	height: 16px;
	margin: 0;
}
.fn-btn-block {
	width: 100%;
	min-height: 56px;
	padding: 13px 20px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 12px;
}
.fn-body .fn-btn-red {
	background: linear-gradient(180deg, #EF2323 0%, #C81414 100%);
	color: #fff;
	border: 1px solid rgba(255,255,255,.11);
	box-shadow: 0 10px 24px rgba(211,26,26,.25), inset 0 1px 0 rgba(255,255,255,.18);
}
.fn-card-foot {
	margin-top: 14px;
	text-align: center;
	font-size: 14px;
	color: #8A8F98;
}

@media (max-width: 900px), (max-height: 860px) {
	.fn-login-stage { width: min(100%, 840px); gap: 7px; }
	.fn-login-hero { width: min(100%, 680px); }
	.fn-login-orbit { height: min(48vh, 380px); }
	.fn-badge { width: min(100%, clamp(360px, 52vw, 620px)); max-height: min(31vh, 290px); }
	.fn-card.fn-login-card { width: min(100%, 560px); padding: 20px 24px 18px; }
}

@media (max-width: 640px) {
	.fn-login-body { overflow: hidden; }
	.fn-login-wrap { padding: 10px 12px 14px; }
	.fn-login-stage { width: 100%; gap: 6px; }
	.fn-login-hero { width: min(100%, 420px); }
	.fn-login-orbit {
		inset: 8% -6% auto;
		height: min(32vh, 220px);
		box-shadow:
			0 0 0 20px rgba(211,26,26,.03),
			0 0 0 48px rgba(211,26,26,.018),
			0 0 28px rgba(211,26,26,.08) inset;
	}
	.fn-badge {
		width: min(100%, 345px);
		max-height: min(21vh, 170px);
	}
	.fn-card.fn-login-card {
		width: 100%;
		max-width: 420px;
		padding: 18px 16px 16px;
		border-radius: 18px;
	}
	.fn-card-title { font-size: 18px; }
	.fn-card-sub { font-size: 13px; margin-bottom: 12px; }
	.fn-label { font-size: 11.5px; margin-bottom: 6px; }
	.fn-input-wrap { margin-bottom: 10px; }
	.fn-input,
	.fn-btn-block { min-height: 50px; font-size: 14px; }
	.fn-remember { font-size: 13px; margin: 2px 0 12px; }
	.fn-card-foot { margin-top: 12px; font-size: 13px; }
}

@media (max-height: 760px) {
	.fn-login-wrap { padding-top: 6px; padding-bottom: 8px; }
	.fn-login-stage { gap: 5px; }
	.fn-login-hero { width: min(100%, 560px); }
	.fn-login-orbit { height: min(36vh, 260px); }
	.fn-badge { max-height: min(22vh, 170px); }
	.fn-card.fn-login-card { padding: 18px 16px 14px; width: min(100%, 540px); }
	.fn-card-title { font-size: 18px; }
	.fn-card-sub { font-size: 12px; margin-bottom: 10px; }
	.fn-label { margin-bottom: 6px; }
	.fn-input-wrap { margin-bottom: 8px; }
	.fn-input, .fn-btn-block { min-height: 46px; }
	.fn-remember { margin-bottom: 10px; }
	.fn-card-foot { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.fn-login-badge,
	.fn-login-card { animation: none !important; }
}


/* ===================== LOGIN MOCKUP MATCH (1.0.21) ===================== */
.fn-login-body {
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 14%, rgba(190, 22, 22, 0.32), rgba(190, 22, 22, 0) 30%),
		radial-gradient(circle at 50% 94%, rgba(130, 0, 0, 0.18), rgba(130, 0, 0, 0) 34%),
		linear-gradient(180deg, #050507 0%, #030304 100%);
}
.fn-login-wrap {
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 10px 16px 10px;
}
.fn-login-stage {
	width: min(100%, 1120px);
	max-height: 100dvh;
	display: grid;
	justify-items: center;
	gap: 0;
}
.fn-login-hero {
	width: min(100%, 860px);
	margin: 0 auto -22px;
	z-index: 2;
	pointer-events: none;
}
.fn-login-orbit { display: none !important; }
.fn-login-badge-hero,
.fn-login-badge-hero picture {
	display: block;
	width: 100%;
	margin: 0;
}
.fn-login-heroimg {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(39vh, 360px);
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 18px 34px rgba(0,0,0,.48));
}
.fn-card.fn-login-card {
	position: relative;
	z-index: 3;
	width: min(100%, 620px);
	padding: 28px 38px 24px;
	margin-top: 0;
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(23, 22, 27, 0.82) 0%, rgba(9, 9, 12, 0.94) 100%);
	border: 1px solid rgba(255, 255, 255, 0.10);
	box-shadow:
		0 0 0 1px rgba(211, 26, 26, 0.22),
		0 28px 70px rgba(0, 0, 0, 0.62),
		0 0 36px rgba(211, 26, 26, 0.18);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.fn-card.fn-login-card::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 104px;
	width: 44px;
	height: 2px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(226,34,34,0), #E22222, rgba(226,34,34,0));
	box-shadow: 0 0 12px rgba(226,34,34,.55);
}
.fn-card-title {
	font-size: clamp(22px, 3vw, 29px);
	line-height: 1.15;
	margin: 0 0 8px;
	text-align: center;
	font-weight: 700;
}
.fn-card-sub {
	max-width: 440px;
	margin: 0 auto 42px;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
	color: #A8AFBA;
}
.fn-label {
	font-size: 12px;
	letter-spacing: .06em;
	color: #E2E5EC;
	margin-bottom: 8px;
}
.fn-input-wrap { margin-bottom: 16px; }
.fn-input {
	min-height: 58px;
	border-radius: 10px;
	background: rgba(5, 6, 9, 0.82);
	border: 1px solid rgba(255,255,255,.12);
}
.fn-input:focus {
	border-color: var(--fn-red);
	box-shadow: 0 0 0 3px rgba(211,26,26,.17), 0 0 18px rgba(211,26,26,.15);
}
.fn-remember { margin: 2px 0 18px; }
.fn-btn-block {
	min-height: 60px;
	border-radius: 11px;
}
.fn-card-foot { margin-top: 16px; }

@media (max-height: 860px) {
	.fn-login-hero {
		width: min(100%, 760px);
		margin-bottom: -28px;
	}
	.fn-login-heroimg { max-height: min(34vh, 292px); }
	.fn-card.fn-login-card {
		width: min(100%, 580px);
		padding: 24px 32px 21px;
	}
	.fn-card.fn-login-card::before { top: 94px; }
	.fn-card-title { font-size: 24px; }
	.fn-card-sub { margin-bottom: 36px; }
	.fn-input { min-height: 54px; }
	.fn-btn-block { min-height: 56px; }
}
@media (max-height: 730px) {
	.fn-login-hero {
		width: min(100%, 620px);
		margin-bottom: -34px;
	}
	.fn-login-heroimg { max-height: 184px; }
	.fn-card.fn-login-card { padding: 20px 28px 18px; }
	.fn-card.fn-login-card::before { top: 84px; }
	.fn-card-title { font-size: 21px; margin-bottom: 6px; }
	.fn-card-sub { font-size: 12.5px; margin-bottom: 28px; }
	.fn-input-wrap { margin-bottom: 10px; }
	.fn-input, .fn-btn-block { min-height: 46px; }
	.fn-remember { margin-bottom: 10px; }
	.fn-card-foot { margin-top: 10px; font-size: 13px; }
}
@media (max-width: 640px) {
	.fn-login-wrap { padding: 8px 12px; }
	.fn-login-hero {
		width: min(100%, 390px);
		margin-bottom: -16px;
	}
	.fn-login-heroimg { max-height: min(26vh, 176px); }
	.fn-card.fn-login-card {
		width: 100%;
		max-width: 420px;
		padding: 20px 16px 16px;
		border-radius: 17px;
	}
	.fn-card.fn-login-card::before { top: 86px; }
	.fn-card-title { font-size: 20px; }
	.fn-card-sub { font-size: 12.5px; margin-bottom: 32px; }
	.fn-input { min-height: 50px; font-size: 14px; }
	.fn-btn-block { min-height: 52px; font-size: 15px; }
	.fn-label { font-size: 11px; }
}

/* ===================== LOGIN FINAL TIGHTEN (1.0.22) ===================== */
.fn-login-body {
	overflow: hidden !important;
	background:
		radial-gradient(circle at 50% 12%, rgba(205, 24, 24, 0.30), rgba(205, 24, 24, 0) 30%),
		radial-gradient(circle at 50% 94%, rgba(120, 0, 0, 0.16), rgba(120, 0, 0, 0) 34%),
		linear-gradient(180deg, #050507 0%, #030304 100%) !important;
}
.fn-login-wrap {
	min-height: 100dvh !important;
	height: 100dvh !important;
	display: grid !important;
	place-items: center !important;
	padding: 10px 16px !important;
}
.fn-login-stage {
	width: min(100%, 1120px) !important;
	max-height: calc(100dvh - 20px) !important;
	display: grid !important;
	justify-items: center !important;
	align-content: center !important;
	gap: 12px !important;
}
.fn-login-hero {
	width: min(100%, 820px) !important;
	margin: 0 auto !important;
	z-index: 2 !important;
	pointer-events: none !important;
}
.fn-login-orbit { display: none !important; }
.fn-login-badge-hero,
.fn-login-badge-hero picture {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
}
.fn-login-heroimg {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-height: min(37dvh, 315px) !important;
	object-fit: contain !important;
	object-position: center bottom !important;
	filter: drop-shadow(0 16px 34px rgba(0,0,0,.52)) !important;
}
.fn-card.fn-login-card {
	position: relative !important;
	z-index: 3 !important;
	width: min(100%, 560px) !important;
	padding: 22px 30px 20px !important;
	margin-top: 0 !important;
	border-radius: 18px !important;
	background: linear-gradient(180deg, rgba(23, 22, 27, 0.84) 0%, rgba(9, 9, 12, 0.95) 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.10) !important;
	box-shadow:
		0 0 0 1px rgba(211, 26, 26, 0.22),
		0 24px 62px rgba(0, 0, 0, 0.62),
		0 0 32px rgba(211, 26, 26, 0.16) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
}
.fn-card.fn-login-card::before {
	content: "" !important;
	position: absolute !important;
	left: 50% !important;
	top: 94px !important;
	width: 42px !important;
	height: 2px !important;
	transform: translateX(-50%) !important;
	border-radius: 999px !important;
	background: linear-gradient(90deg, rgba(226,34,34,0), #E22222, rgba(226,34,34,0)) !important;
	box-shadow: 0 0 12px rgba(226,34,34,.55) !important;
}
.fn-card-title {
	font-size: 24px !important;
	line-height: 1.1 !important;
	margin: 0 0 8px !important;
	text-align: center !important;
	font-weight: 700 !important;
}
.fn-card-sub {
	max-width: 405px !important;
	margin: 0 auto 34px !important;
	font-size: 13px !important;
	line-height: 1.42 !important;
	text-align: center !important;
	color: #A8AFBA !important;
}
.fn-label {
	font-size: 11px !important;
	letter-spacing: .06em !important;
	margin: 0 0 7px !important;
	color: #E2E5EC !important;
}
.fn-input-wrap { margin-bottom: 12px !important; }
.fn-input {
	min-height: 50px !important;
	font-size: 14px !important;
	border-radius: 10px !important;
	background: rgba(5, 6, 9, 0.84) !important;
	border: 1px solid rgba(255,255,255,.12) !important;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}
.fn-input:focus {
	border-color: var(--fn-red) !important;
	box-shadow: 0 0 0 3px rgba(211,26,26,.17), 0 0 18px rgba(211,26,26,.15) !important;
}
.fn-remember {
	font-size: 13px !important;
	margin: 2px 0 13px !important;
	gap: 9px !important;
}
.fn-btn-block {
	min-height: 52px !important;
	font-size: 15px !important;
	border-radius: 10px !important;
}
.fn-card-foot {
	margin-top: 12px !important;
	font-size: 13px !important;
}

@media (min-width: 1200px) and (min-height: 800px) {
	.fn-login-stage { gap: 14px !important; }
	.fn-login-hero { width: min(100%, 860px) !important; }
	.fn-login-heroimg { max-height: 325px !important; }
}

@media (max-height: 820px) {
	.fn-login-stage { gap: 8px !important; }
	.fn-login-hero { width: min(100%, 720px) !important; }
	.fn-login-heroimg { max-height: min(32dvh, 250px) !important; }
	.fn-card.fn-login-card { width: min(100%, 540px) !important; padding: 19px 28px 17px !important; }
	.fn-card.fn-login-card::before { top: 84px !important; }
	.fn-card-title { font-size: 21px !important; margin-bottom: 6px !important; }
	.fn-card-sub { margin-bottom: 28px !important; font-size: 12px !important; }
	.fn-input-wrap { margin-bottom: 9px !important; }
	.fn-input, .fn-btn-block { min-height: 46px !important; }
	.fn-remember { margin-bottom: 10px !important; }
	.fn-card-foot { margin-top: 9px !important; }
}

@media (max-height: 690px) {
	.fn-login-stage { gap: 5px !important; }
	.fn-login-hero { width: min(100%, 600px) !important; }
	.fn-login-heroimg { max-height: 160px !important; }
	.fn-card.fn-login-card { width: min(100%, 500px) !important; padding: 15px 22px 13px !important; }
	.fn-card.fn-login-card::before { top: 72px !important; }
	.fn-card-title { font-size: 18px !important; }
	.fn-card-sub { font-size: 11.5px !important; margin-bottom: 21px !important; }
	.fn-label { font-size: 10.5px !important; margin-bottom: 5px !important; }
	.fn-input-wrap { margin-bottom: 7px !important; }
	.fn-input, .fn-btn-block { min-height: 42px !important; }
	.fn-remember { font-size: 12px !important; margin-bottom: 8px !important; }
	.fn-card-foot { font-size: 12px !important; margin-top: 8px !important; }
}

@media (max-width: 640px) {
	.fn-login-wrap { padding: 8px 12px !important; }
	.fn-login-stage { width: 100% !important; gap: 7px !important; }
	.fn-login-hero { width: min(100%, 390px) !important; }
	.fn-login-heroimg { max-height: min(25dvh, 168px) !important; }
	.fn-card.fn-login-card {
		width: 100% !important;
		max-width: 400px !important;
		padding: 18px 16px 15px !important;
		border-radius: 17px !important;
	}
	.fn-card.fn-login-card::before { top: 82px !important; }
	.fn-card-title { font-size: 20px !important; }
	.fn-card-sub { font-size: 12px !important; margin-bottom: 28px !important; }
	.fn-input { min-height: 48px !important; font-size: 14px !important; }
	.fn-btn-block { min-height: 50px !important; font-size: 15px !important; }
	.fn-label { font-size: 10.5px !important; }
}

/* ===================== FATALdev LOCKED SPLASH (1.0.23) ===================== */
/* Final layer. The 1.0.22 tighten above already pins the login to 100dvh with
   height breakpoints; this layer (a) hard-locks scrolling at the html/body level,
   (b) retunes hero sizing for the new tall FATALdev lockup (960x817, was 1118x430),
   (c) removes the old pixel-positioned pseudo divider in favour of the real
   .fn-card-accent element, (d) keeps inputs at 16px so iOS never zoom-breaks the
   locked screen, and (e) adds a side-by-side layout for short landscape phones. */

html.fn-login-html,
html.fn-login-html body {
	height: 100%;
	overflow: hidden !important;
	overscroll-behavior: none;
}
.fn-login-body {
	position: fixed;
	inset: 0;
	width: 100%;
	touch-action: manipulation;
}
.fn-login-wrap {
	padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
}

/* New stacked logo: cap by height, let width follow (aspect ~1.18). */
.fn-login-badge .fn-login-heroimg,
.fn-login-heroimg {
	width: auto !important;
	max-width: min(80vw, 420px) !important;
	max-height: min(36dvh, 330px) !important;
	margin: 0 auto !important;
	filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.60)) drop-shadow(0 10px 34px rgba(211, 26, 26, 0.30)) !important;
}

/* One accent only: the real element, not the fixed-pixel pseudo. */
.fn-card.fn-login-card::before { content: none !important; display: none !important; }
.fn-login-card .fn-card-accent {
	width: 42px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(226,34,34,0), #E22222, rgba(226,34,34,0));
	box-shadow: 0 0 12px rgba(226,34,34,.55);
	margin: 12px auto 20px;
}
.fn-login-card .fn-card-sub { margin-bottom: 0 !important; }

/* 16px stops iOS Safari from zooming the page on focus (which would unlock scroll). */
.fn-login-card .fn-input { font-size: 16px !important; }

@media (max-height: 820px) {
	.fn-login-heroimg { max-height: min(31dvh, 250px) !important; }
	.fn-login-card .fn-card-accent { margin: 10px auto 16px; }
}
@media (max-height: 690px) {
	.fn-login-heroimg { max-height: min(27dvh, 175px) !important; }
	.fn-login-card .fn-card-accent { margin: 8px auto 12px; }
}
@media (max-width: 640px) {
	.fn-login-heroimg { max-width: 74vw !important; max-height: min(30dvh, 230px) !important; }
}

/* Short landscape (phones rotated): logo beside the card, still zero scroll. */
@media (max-height: 500px) and (orientation: landscape) {
	.fn-login-stage {
		grid-template-columns: auto minmax(0, 1fr) !important;
		grid-template-rows: none !important;
		align-items: center !important;
		gap: clamp(14px, 3vw, 32px) !important;
		width: min(100%, 780px) !important;
	}
	.fn-login-hero { width: auto !important; }
	.fn-login-orbit { display: none !important; }
	.fn-login-heroimg { max-height: min(74dvh, 240px) !important; max-width: 32vw !important; }
	.fn-card.fn-login-card { width: 100% !important; max-width: 460px !important; padding: 12px 18px 11px !important; }
	.fn-login-card .fn-card-sub, .fn-login-card .fn-card-accent { display: none !important; }
	.fn-card-title { font-size: 17px !important; margin-bottom: 8px !important; }
	.fn-input-wrap { margin-bottom: 6px !important; }
	.fn-input, .fn-btn-block { min-height: 40px !important; }
	.fn-remember { margin: 0 0 7px !important; font-size: 11.5px !important; }
	.fn-card-foot { margin-top: 6px !important; font-size: 11px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.fn-login-badge, .fn-login-card { animation: none !important; }
}

/* ===================== WP TOOLBAR COMPAT (1.0.25) ===================== */
/* The staff studio view now renders the native WordPress toolbar. Keep the
   portal topbar sticky just beneath it, and let the toolbar sit on top. */
body.admin-bar .fn-topbar { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .fn-topbar { top: 46px; }
}

/* ===================== LOGIN WOW PASS (1.0.26) ===================== */

/* 1 — Logo scaled down for crispness (and iPhone proportions). */
.fn-login-badge .fn-login-heroimg,
.fn-login-heroimg {
	max-width: min(64vw, 330px) !important;
	max-height: min(30dvh, 260px) !important;
}
@media (max-height: 820px) {
	.fn-login-heroimg { max-height: min(27dvh, 215px) !important; }
}
@media (max-height: 690px) {
	.fn-login-heroimg { max-height: min(24dvh, 155px) !important; }
}
@media (max-width: 640px) {
	.fn-login-heroimg { max-width: 60vw !important; max-height: min(22dvh, 185px) !important; }
}

/* 2 — Exactly one red divider: the .fn-card-accent element. */
.fn-login-card .fn-card-sub::after { content: none !important; display: none !important; }

/* 3 — Ambient life. All animation is transform/opacity only (GPU-cheap). */

/* Breathing glow behind the logo. */
@keyframes fnBreathe {
	0%, 100% { opacity: .55; transform: scale(1); }
	50%      { opacity: .95; transform: scale(1.06); }
}
.fn-login-badge { position: relative; }
.fn-login-badge::before {
	content: "";
	position: absolute;
	inset: 6% 10% 4%;
	z-index: -1;
	background: radial-gradient(ellipse at 50% 46%, rgba(226, 34, 34, .34), rgba(211, 26, 26, .10) 46%, transparent 72%);
	filter: blur(26px);
	animation: fnBreathe 7s ease-in-out infinite;
}

/* Slow orbit pulse on the decorative ring. */
@keyframes fnOrbit {
	0%, 100% { opacity: .55; transform: scale(.985); }
	50%      { opacity: 1;   transform: scale(1.015); }
}
.fn-login-orbit { animation: fnOrbit 11s ease-in-out infinite; will-change: transform, opacity; }

/* Two soft embers drifting through the backdrop. */
@keyframes fnDriftA {
	0%   { transform: translate3d(-4vw, 3vh, 0); }
	50%  { transform: translate3d(5vw, -4vh, 0); }
	100% { transform: translate3d(-4vw, 3vh, 0); }
}
@keyframes fnDriftB {
	0%   { transform: translate3d(4vw, -2vh, 0); }
	50%  { transform: translate3d(-5vw, 4vh, 0); }
	100% { transform: translate3d(4vw, -2vh, 0); }
}
.fn-login-wrap::before,
.fn-login-wrap::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 46vw; height: 46vw;
	max-width: 560px; max-height: 560px;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(60px);
}
.fn-login-wrap::before {
	left: -8vw; bottom: -10vh;
	background: radial-gradient(circle, rgba(211, 26, 26, .16), transparent 60%);
	animation: fnDriftA 26s ease-in-out infinite;
}
.fn-login-wrap::after {
	right: -8vw; top: -6vh;
	background: radial-gradient(circle, rgba(150, 8, 8, .14), transparent 60%);
	animation: fnDriftB 32s ease-in-out infinite;
}

/* Card: hairline red light along the top edge + gentle lift. */
.fn-card.fn-login-card::after {
	content: "";
	position: absolute;
	top: 0; left: 12%; right: 12%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(226, 34, 34, .65), transparent);
	pointer-events: none;
}
.fn-card.fn-login-card {
	transition: box-shadow .4s ease, border-color .4s ease;
}
.fn-card.fn-login-card:focus-within {
	border-color: rgba(226, 34, 34, .34) !important;
	box-shadow:
		0 0 0 1px rgba(211, 26, 26, 0.26),
		0 24px 70px rgba(0, 0, 0, 0.55),
		0 0 44px rgba(211, 26, 26, .22) !important;
}

/* Button: shine sweep on hover, spinner while entering. */
.fn-login-card .fn-btn-block { position: relative; overflow: hidden; }
.fn-login-card .fn-btn-block::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0; left: -70%;
	width: 45%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .26), transparent);
	transform: skewX(-18deg);
	transition: left .55s ease;
	pointer-events: none;
}
.fn-login-card .fn-btn-block:hover::after { left: 130%; }
@keyframes fnSpin { to { transform: rotate(360deg); } }
.fn-login-card .fn-btn-block.is-busy .fn-btn-label { opacity: .85; }
.fn-login-card .fn-btn-block.is-busy::before {
	content: "";
	display: inline-block;
	width: 16px; height: 16px;
	margin-right: 10px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fnSpin .7s linear infinite;
	vertical-align: -3px;
}

/* Wrong password: shake the alert once. */
@keyframes fnShake {
	10%, 90% { transform: translateX(-1px); }
	20%, 80% { transform: translateX(2px); }
	30%, 70% { transform: translateX(-3px); }
	40%, 60% { transform: translateX(3px); }
	50%      { transform: translateX(-2px); }
}
.fn-login-card .fn-alert { animation: fnShake .5s ease both; }

/* Caps Lock hint. */
.fn-capshint {
	margin: -8px 0 12px;
	font-size: 12px;
	color: #E8B44A;
	display: flex; align-items: center; gap: 6px;
}
.fn-capshint::before { content: "\26A0"; font-size: 12px; }

/* Reduced motion: everything calm. */
@media (prefers-reduced-motion: reduce) {
	.fn-login-badge::before,
	.fn-login-orbit,
	.fn-login-wrap::before,
	.fn-login-wrap::after,
	.fn-login-card .fn-alert { animation: none !important; }
	.fn-login-card .fn-btn-block::after { display: none; }
}

/* ===================== LOGIN FINAL POLISH (1.0.27) ===================== */

/* Depth: film grain + vignette over the backdrop, under the content. */
.fn-login-body .fn-circuit::before {
	content: "";
	position: absolute; inset: 0;
	background-image:
		repeating-conic-gradient(rgba(255,255,255,.012) 0% .0004%, transparent .0009% .002%);
	opacity: .5;
	pointer-events: none;
}
.fn-login-body .fn-circuit::after {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at 50% 46%, transparent 52%, rgba(0, 0, 0, .55) 100%);
	pointer-events: none;
}

/* The logo parallax is applied by JS on .fn-login-badge; keep it smooth. */
.fn-login-badge { will-change: transform; }
.fn-login-orbit { will-change: transform, opacity; }

/* Custom red checkbox for "Keep me signed in". */
.fn-login-card .fn-remember { cursor: pointer; user-select: none; }
.fn-login-card .fn-remember input {
	appearance: none; -webkit-appearance: none;
	width: 17px; height: 17px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, .28);
	background: rgba(5, 5, 7, .7);
	display: inline-block;
	vertical-align: -3px;
	margin-right: 8px;
	position: relative;
	transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
	cursor: pointer;
}
.fn-login-card .fn-remember input:hover { border-color: rgba(226, 34, 34, .6); }
.fn-login-card .fn-remember input:checked {
	background: linear-gradient(180deg, #EC2020, #B60F0F);
	border-color: rgba(255, 119, 119, .55);
	box-shadow: 0 0 10px rgba(211, 26, 26, .45);
}
.fn-login-card .fn-remember input:checked::after {
	content: "";
	position: absolute;
	left: 5px; top: 1.5px;
	width: 4px; height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.fn-login-card .fn-remember input:focus-visible {
	outline: 2px solid var(--fn-red);
	outline-offset: 2px;
}

/* Input icons wake up on focus. */
.fn-login-card .fn-input-wrap { transition: transform .15s ease; }
.fn-login-card .fn-input:focus ~ .fn-input-ico,
.fn-login-card .fn-input-wrap:focus-within .fn-input-ico {
	color: #FF3B3B;
	filter: drop-shadow(0 0 10px rgba(226, 34, 34, .65));
	transition: color .15s ease, filter .15s ease;
}

/* Reset link: underline glides in. */
.fn-login-card .fn-card-foot a { position: relative; }
.fn-login-card .fn-card-foot a::after {
	content: "";
	position: absolute; left: 0; right: 100%; bottom: -2px;
	height: 1px; background: currentColor;
	transition: right .2s ease;
}
.fn-login-card .fn-card-foot a:hover::after { right: 0; }

@media (prefers-reduced-motion: reduce) {
	.fn-login-badge, .fn-login-orbit { transform: none !important; }
}

/* ===================== DESIGN CENTER 2.0 (1.0.27) ===================== */

/* Shell: sticky sidebar + content on desktop, stacked on mobile. */
.fn-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.fn-side { position: sticky; top: 84px; }
body.admin-bar .fn-side { top: 116px; }
.fn-side-card {
	background: linear-gradient(180deg, rgba(21,21,26,.9), rgba(12,12,16,.95));
	border: 1px solid var(--fn-line);
	border-radius: 16px;
	padding: 18px 16px 16px;
	box-shadow: 0 0 0 1px rgba(211,26,26,.10), 0 18px 50px rgba(0,0,0,.45);
}
.fn-ring-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fn-ring { width: 64px; height: 64px; flex: none; }
.fn-ring-num { font: 700 13px var(--fn-body); fill: var(--fn-text); }
.fn-ring-bar { transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1); filter: drop-shadow(0 0 6px rgba(226,34,34,.55)); }
.fn-ring-copy { min-width: 0; }
.fn-ring-copy strong { display: block; font-size: 14px; color: var(--fn-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-ring-copy span { font-size: 12px; color: var(--fn-dim); }
.fn-side-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.fn-side-nav a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 9px 11px; border-radius: 9px;
	font-size: 13.5px; color: var(--fn-silver);
	border: 1px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fn-side-nav a:hover { background: rgba(255,255,255,.05); color: var(--fn-text); }
.fn-side-nav a.is-active {
	background: rgba(211,26,26,.13);
	border-color: rgba(226,34,34,.30);
	color: #fff;
}
.fn-side-badge {
	min-width: 19px; height: 19px; padding: 0 5px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background: var(--fn-red); color: #fff;
	font-size: 11px; font-weight: 700;
	box-shadow: 0 0 10px rgba(211,26,26,.5);
}
.fn-side-open { margin-top: 2px; }

/* Action card: the "we need things from you" banner. */
.fn-actioncard {
	background: linear-gradient(135deg, rgba(211,26,26,.16), rgba(120,6,6,.10) 55%, rgba(14,14,17,.6));
	border: 1px solid rgba(226,34,34,.38);
	border-radius: 14px;
	padding: 16px 18px;
	margin-bottom: 22px;
	box-shadow: 0 0 26px rgba(211,26,26,.14);
}
.fn-actioncard-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #FFD9D4; display: flex; align-items: center; }
.fn-actionlist { margin: 0; padding: 0 0 0 2px; list-style: none; }
.fn-actionlist li { padding: 4px 0; font-size: 13.5px; }
.fn-actionlist a { color: var(--fn-text); }
.fn-actionlist a::before { content: "\2192"; color: var(--fn-red-bright); margin-right: 8px; }
.fn-actionlist a:hover { color: var(--fn-red-bright); }

/* Checklist. */
.fn-ck-count { font-size: 12.5px; color: var(--fn-dim); font-weight: 600; }
.fn-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fn-check form { margin: 0; }
.fn-check-btn {
	width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
	background: var(--fn-panel-2); border: 1px solid var(--fn-line);
	border-radius: 10px; padding: 12px 14px;
	color: var(--fn-text); font: inherit; font-size: 14px; cursor: pointer;
	transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.fn-check-btn:hover { border-color: rgba(226,34,34,.45); }
.fn-check-btn:active { transform: scale(.995); }
.fn-check-box {
	width: 20px; height: 20px; flex: none;
	border-radius: 6px; border: 1px solid rgba(255,255,255,.25);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 11px; color: transparent;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.fn-check.is-done .fn-check-box {
	background: linear-gradient(180deg, #239268, #1D7A55);
	border-color: rgba(80,220,160,.4); color: #fff;
	box-shadow: 0 0 10px rgba(35,146,104,.4);
}
.fn-check.is-done .fn-check-label { color: var(--fn-dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.fn-check-label { flex: 1; min-width: 0; }
.fn-check-time { font-size: 11.5px; color: var(--fn-mute); flex: none; }

/* Mobile: sidebar becomes a compact card above content; nav wraps to chips. */
@media (max-width: 979px) {
	.fn-shell { grid-template-columns: 1fr; gap: 18px; }
	.fn-side { position: static; }
	.fn-side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
	.fn-side-nav a { padding: 7px 11px; font-size: 12.5px; border: 1px solid var(--fn-line); }
}

/* Build tag: tiny corner stamp so deployed version is visible at a glance. */
.fn-buildtag {
	position: fixed;
	right: 10px; bottom: 8px;
	z-index: 5;
	font: 500 10px var(--fn-body);
	color: rgba(138, 143, 152, .55);
	letter-spacing: .04em;
	pointer-events: none;
	user-select: none;
}

/* ===================== 1.0.33 ===================== */
/* THE Caps Lock fix: .fn-capshint's display:flex was overriding the [hidden]
   attribute's UA display:none, making the warning permanently visible no
   matter what the JS did. */
.fn-capshint[hidden] { display: none !important; }

/* ===================== BLACK PLATE HERO (1.0.38) ===================== */
/* The page carries a pure-black circular pocket; the artwork drops into it
   untouched. The plate itself gets only a whisper of edge feathering - the
   pocket does the blending, so zero artwork is ever cut. */
.fn-login-heroimg.fn-heroplate {
	-webkit-mask-image: radial-gradient(ellipse 74% 72% at 50% 49%, #000 84%, transparent 99.5%);
	mask-image: radial-gradient(ellipse 74% 72% at 50% 49%, #000 84%, transparent 99.5%);
	filter: none !important;
	max-width: min(84vw, 500px) !important;
	max-height: min(37dvh, 360px) !important;
}
@media (max-height: 820px) { .fn-login-heroimg.fn-heroplate { max-height: min(32dvh, 285px) !important; } }
@media (max-height: 690px) { .fn-login-heroimg.fn-heroplate { max-height: min(27dvh, 205px) !important; } }
@media (max-width: 640px)  { .fn-login-heroimg.fn-heroplate { max-width: 82vw !important; max-height: min(27dvh, 245px) !important; } }
/* The black pocket: solid black core larger than the plate, feathered into the page. */
.fn-login-badge::after {
	content: "";
	position: absolute; inset: -9% -11%;
	z-index: -2;
	background: radial-gradient(ellipse at 50% 49%, rgba(0,0,0,1) 58%, rgba(0,0,0,.9) 68%, rgba(0,0,0,.35) 82%, transparent 94%);
	pointer-events: none;
}

/* ===================== TRUE TRANSPARENT HERO (1.0.39) ===================== */
/* Extraction from the uniform black source with a corrected noise floor:
   100% bright-art retention, zero background veil. No pocket needed. */
.fn-login-badge::after { content: none !important; }

/* ===================== DESIGN CENTER: TABS + TRACKS + BRAND KIT (1.0.40) ===================== */

/* Single-screen app when tabbed: page never scrolls, the content pane does. */
body.fn-tabbed { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.fn-tabbed .fn-main { flex: 1; min-height: 0; overflow: hidden; }
body.fn-tabbed .fn-main-in { height: 100%; display: flex; flex-direction: column; min-height: 0; }
body.fn-tabbed .fn-intro { flex: none; }
body.fn-tabbed .fn-intro .fn-sub { display: none; }
body.fn-tabbed .fn-h1 { font-size: clamp(20px, 2.6vh, 28px); margin-bottom: 8px; }
body.fn-tabbed .fn-shell { flex: 1; min-height: 0; }
body.fn-tabbed .fn-side { position: static; overflow-y: auto; max-height: 100%; }
body.fn-tabbed .fn-content { min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
body.fn-tabbed .fn-panel { display: none; }
body.fn-tabbed .fn-panel.is-active { display: block; animation: fnPanelIn .22s ease; }
@keyframes fnPanelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.fn-tabbed .fn-fineprint { flex: none; margin: 8px 0 10px; }

/* Colorful progress tracks. */
.fn-tracks { display: flex; flex-direction: column; gap: 7px; margin: 2px 0 14px; }
.fn-track { display: grid; grid-template-columns: 86px 1fr 34px; align-items: center; gap: 8px; }
.fn-track-label { font-size: 11px; color: var(--fn-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-track-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.fn-track-fill { display: block; height: 100%; border-radius: 999px; width: 0 !important; transition: width 1.1s cubic-bezier(.22,1,.36,1); }
body.fn-tracks-in .fn-track-fill { width: var(--w, 0%) !important; }
.fn-track-pc { font-size: 10.5px; color: var(--fn-mute); text-align: right; font-variant-numeric: tabular-nums; }

/* Revision notes. */
.fn-notes { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: none; }
.fn-note { display: flex; align-items: baseline; gap: 10px; background: var(--fn-panel-2); border: 1px solid var(--fn-line); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; }
.fn-note-num { font-weight: 700; color: var(--fn-silver); flex: none; }
.fn-note-kind { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.fn-note.is-change .fn-note-kind { background: rgba(226,34,34,.16); color: #FF8B8B; border: 1px solid rgba(226,34,34,.4); }
.fn-note.is-like .fn-note-kind { background: rgba(61,220,151,.14); color: #6FE3B0; border: 1px solid rgba(61,220,151,.35); }
.fn-note.is-dislike .fn-note-kind { background: rgba(255,197,61,.13); color: #FFD97A; border: 1px solid rgba(255,197,61,.35); }
.fn-note-text { flex: 1; min-width: 0; }
.fn-note-meta { flex: none; font-size: 11px; color: var(--fn-mute); }
.fn-note-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fn-kind { font-size: 12.5px; color: var(--fn-silver); border: 1px solid var(--fn-line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.fn-kind input { margin-right: 6px; accent-color: var(--fn-red); }
.fn-kind:has(input:checked) { border-color: rgba(226,34,34,.5); background: rgba(226,34,34,.10); color: #fff; }
.fn-note-form .fn-btn { margin-top: 10px; }

/* Info requests in the checklist. */
.fn-check.is-request { display: block; }
.fn-req { background: var(--fn-panel-2); border: 1px solid rgba(226,34,34,.35); border-radius: 10px; padding: 12px 14px; }
.fn-req-label { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; }
.fn-req .fn-btn { margin-top: 8px; }

/* Brand kit. */
.fn-brandkit { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.fn-brandkit-logo { background: #000; border: 1px solid var(--fn-line); border-radius: 12px; padding: 14px; max-width: 340px; }
.fn-brandkit-logo img { display: block; width: 100%; height: auto; }
.fn-bizcard { border-top: 1px solid var(--fn-line); padding-top: 16px; }
.fn-bizcard-title { margin: 0 0 6px; font-size: 14.5px; }
.fn-bizcard-sub { margin: 0 0 12px; font-size: 13px; color: var(--fn-dim); max-width: 560px; }
.fn-bizcard-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 979px) {
	body.fn-tabbed { height: auto; overflow: auto; display: block; }
	body.fn-tabbed .fn-content { overflow: visible; }
	.fn-track { grid-template-columns: 70px 1fr 30px; }
}

/* ===================== 1.0.41 ===================== */
.fn-actionlist .fn-i-ext { transform: scale(.8); opacity: .8; }
.fn-launched {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14.5px; font-weight: 600;
	color: #fff;
	background: linear-gradient(90deg, rgba(226,34,34,.30), rgba(255,122,41,.22), rgba(255,197,61,.18));
	border: 1px solid rgba(255,197,61,.35);
	box-shadow: 0 0 26px rgba(255,122,41,.18);
	animation: fnPanelIn .4s ease;
}
.fn-admin-prev { width: 160px; height: 100px; border: 1px dashed #8c8f94; border-radius: 6px; background: #f6f7f7 center/contain no-repeat; margin-bottom: 6px; }
.fn-admin-prev.has { border-style: solid; background-color: #111; }
/* live site screenshot fills the visual card fully */
.fn-phero-visual.has-img { background-size: cover; background-position: top center; }
.fn-phero-visual.is-brand { background-size: contain; background-color: #000; background-position: center; }

/* ===================== STUDIO DASHBOARD 2.0 (1.0.42) ===================== */
.fn-statrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.fn-stat {
	background: linear-gradient(180deg, rgba(21,21,26,.9), rgba(12,12,16,.95));
	border: 1px solid var(--fn-line);
	border-radius: 12px;
	padding: 12px 18px;
	min-width: 120px;
	display: flex; flex-direction: column; gap: 2px;
}
.fn-stat-num { font: 700 22px var(--fn-display, var(--fn-body)); color: var(--fn-text); }
.fn-stat-label { font-size: 11.5px; color: var(--fn-dim); }
.fn-stat.is-hot { border-color: rgba(226,34,34,.5); box-shadow: 0 0 18px rgba(226,34,34,.18); }
.fn-stat.is-hot .fn-stat-num { color: #FF6B6B; }
.fn-stat.is-dim { opacity: .75; }

.fn-feed {
	background: linear-gradient(135deg, rgba(211,26,26,.14), rgba(120,6,6,.08) 55%, rgba(14,14,17,.6));
	border: 1px solid rgba(226,34,34,.36);
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 22px;
}
.fn-feed-title { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; color: #FFD9D4; display: flex; align-items: center; }
.fn-feed-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.06); }
.fn-feed-item:first-of-type { border-top: 0; }
.fn-feed-body { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fn-feed-body strong { font-size: 13.5px; }
.fn-feed-snippet { font-size: 13px; color: var(--fn-silver); font-style: italic; }
.fn-feed-time { font-size: 11.5px; color: var(--fn-mute); }

.fn-studio-card-2 { align-items: stretch; }
.fn-thumb-lg { width: 168px; min-height: 118px; border-radius: 12px; flex: none; display: block; background: var(--fn-panel-2) center/cover no-repeat; border: 1px solid var(--fn-line); position: relative; overflow: hidden; }
.fn-thumb-lg.is-brand { background-size: contain; background-color: #000; }
a.fn-thumb-lg { transition: transform .15s ease, box-shadow .15s ease; }
a.fn-thumb-lg:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 18px rgba(226,34,34,.2); }
.fn-ring-sm { width: 40px; height: 40px; flex: none; margin-right: 2px; }
.fn-ring-num-sm { font: 700 11px var(--fn-body); fill: var(--fn-text); }
.fn-minitracks { display: flex; gap: 4px; align-items: flex-end; height: 26px; margin: 8px 0 10px; }
.fn-minitrack { width: 14px; height: 100%; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; display: flex; align-items: flex-end; }
.fn-minitrack span { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.fn-studio-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fn-sbadge { font-size: 11px; font-weight: 600; color: var(--fn-silver); border: 1px solid var(--fn-line); border-radius: 999px; padding: 3px 10px; background: rgba(255,255,255,.04); }
.fn-sbadge.is-hot { color: #FF8B8B; border-color: rgba(226,34,34,.5); background: rgba(226,34,34,.12); box-shadow: 0 0 10px rgba(226,34,34,.25); }
.fn-studio-dot { color: var(--fn-mute); margin: 0 2px; }
@media (max-width: 700px) {
	.fn-thumb-lg { width: 100%; min-height: 140px; }
	.fn-studio-card-2 { flex-direction: column; }
}

/* ===================== FILES + PAGE CHIPS + THUMB CROPS (1.0.43) ===================== */
.fn-files { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fn-file { display: flex; align-items: center; gap: 12px; background: var(--fn-panel-2); border: 1px solid var(--fn-line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.fn-file.is-studio { border-color: rgba(226,34,34,.30); }
.fn-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-file-meta { flex: none; font-size: 11.5px; color: var(--fn-mute); }
.fn-files-h { margin: 14px 0 8px; font-size: 13px; color: var(--fn-silver); text-transform: uppercase; letter-spacing: .06em; }
.fn-dropzone { display: block; border: 1.5px dashed rgba(226,34,34,.45); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; margin-bottom: 10px; transition: border-color .15s ease, background .15s ease; background: rgba(226,34,34,.04); }
.fn-dropzone:hover { border-color: rgba(226,34,34,.8); background: rgba(226,34,34,.08); }
.fn-dropzone input { display: none; }
.fn-dropzone-text { font-size: 13px; color: var(--fn-silver); }

.fn-note-page { margin-bottom: 8px; max-width: 360px; }
.fn-note-page-chip { flex: none; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(56,189,248,.13); color: #7DD3FC; border: 1px solid rgba(56,189,248,.35); }

/* screenshot crops: show the TOP of the page, proper aspect */
.fn-thumb-lg { aspect-ratio: 16 / 11; min-height: 0; height: auto; align-self: flex-start; background-position: top center; }
.fn-phero-visual.has-img { aspect-ratio: 4 / 3; background-position: top center; }
.fn-main-wide { max-width: 1180px; }
.fn-studio-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .fn-studio-grid-2 { grid-template-columns: 1fr; } }

/* ===================== 1.0.44: ADMIN SHELL + STREAM ===================== */
/* full-width grid: single project stretches edge to edge */
.fn-studio-grid-2 { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
.fn-studio-card.is-solo { grid-column: 1 / -1; }

.fn-shell-admin { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.fn-shell-admin .fn-side { position: sticky; top: 84px; }
body.admin-bar .fn-shell-admin .fn-side { top: 116px; }
.fn-side-client { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.fn-side-ringlet {
	--p: 0;
	width: 30px; height: 30px; flex: none; border-radius: 50%;
	background:
		radial-gradient(closest-side, #0e0e12 76%, transparent 77% 100%),
		conic-gradient(#FF3B3B calc(var(--p) * 1%), rgba(255,255,255,.09) 0);
	display: grid; place-items: center;
}
.fn-side-ringlet i { font: 700 9.5px var(--fn-body); font-style: normal; color: var(--fn-text); }
.fn-side-names { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.fn-side-names strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-side-names em { font-style: normal; font-size: 11px; color: var(--fn-dim); }
@media (max-width: 979px) {
	.fn-shell-admin { grid-template-columns: 1fr; }
	.fn-shell-admin .fn-side { position: static; }
}

/* Unified notes & messages stream. */
.fn-stream { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.fn-stream-item { background: var(--fn-panel-2); border: 1px solid var(--fn-line); border-radius: 12px; padding: 11px 14px; max-width: 92%; }
.fn-stream-item.is-studio { border-color: rgba(226,34,34,.35); background: rgba(226,34,34,.07); align-self: flex-end; }
.fn-stream-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.fn-stream-head strong { font-size: 12.5px; }
.fn-stream-item.is-studio .fn-stream-head strong { color: #FF8B8B; }
.fn-stream-time { font-size: 11px; color: var(--fn-mute); margin-left: auto; }
.fn-stream-text { margin: 0; font-size: 13.5px; white-space: pre-wrap; }
.fn-note-kind.fn-k-change { background: rgba(226,34,34,.16); color: #FF8B8B; border: 1px solid rgba(226,34,34,.4); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.fn-note-kind.fn-k-like { background: rgba(61,220,151,.14); color: #6FE3B0; border: 1px solid rgba(61,220,151,.35); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.fn-note-kind.fn-k-dislike { background: rgba(255,197,61,.13); color: #FFD97A; border: 1px solid rgba(255,197,61,.35); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.fn-kind.is-question:has(input:checked) { border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.10); }

/* ===================== 1.0.45: WIDTH + RANKING + ADMIN LOCK ===================== */
/* admin content aligns with the topbar (same 940px container as the client). */
.fn-main-wide { max-width: 940px; }
.fn-studio-grid-2 { grid-template-columns: 1fr; }

/* admin: single locked screen — page chrome fixed, content scrolls internally */
body.fn-admin-lock { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.fn-admin-lock .fn-main { flex: 1; min-height: 0; overflow: hidden; }
body.fn-admin-lock .fn-main-in { height: 100%; display: flex; flex-direction: column; min-height: 0; }
body.fn-admin-lock .fn-studio-head { flex: none; }
body.fn-admin-lock .fn-studio-head .fn-sub { display: none; }
body.fn-admin-lock .fn-h1 { font-size: clamp(20px, 2.6vh, 28px); margin-bottom: 8px; }
body.fn-admin-lock .fn-shell-admin { flex: 1; min-height: 0; }
body.fn-admin-lock .fn-shell-admin .fn-side { position: static; overflow-y: auto; max-height: 100%; }
body.fn-admin-lock .fn-content { min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
body.fn-admin-lock .fn-fineprint { flex: none; margin: 8px 0 10px; }
@media (max-width: 979px) {
	body.fn-admin-lock { height: auto; overflow: auto; display: block; }
	body.fn-admin-lock .fn-content { overflow: visible; }
}

/* Rank & shortlist. */
.fn-hr { border: 0; border-top: 1px solid var(--fn-line); margin: 20px 0 16px; }
.fn-rank { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fn-rank-item {
	display: flex; align-items: center; gap: 12px;
	background: var(--fn-panel-2); border: 1px solid var(--fn-line);
	border-radius: 12px; padding: 8px 12px;
	cursor: grab; user-select: none;
	transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.fn-rank-item:hover { border-color: rgba(226,34,34,.4); }
.fn-rank-item.is-dragging { opacity: .55; border-color: rgba(226,34,34,.7); box-shadow: 0 8px 24px rgba(0,0,0,.5); cursor: grabbing; }
.fn-rank-grip { color: var(--fn-mute); letter-spacing: -2px; font-size: 13px; flex: none; }
.fn-rank-num {
	flex: none; width: 24px; height: 24px; border-radius: 50%;
	display: grid; place-items: center;
	background: linear-gradient(180deg, #EC2020, #B60F0F); color: #fff;
	font-size: 12px; font-weight: 700;
}
.fn-rank-thumb { flex: none; width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--fn-line); display: grid; place-items: center; }
.fn-rank-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fn-rank-label { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-heart { flex: none; cursor: pointer; }
.fn-heart input { display: none; }
.fn-heart span { font-size: 20px; color: rgba(255,255,255,.22); transition: color .15s ease, transform .15s ease; display: inline-block; }
.fn-heart:hover span { color: rgba(255,107,107,.7); transform: scale(1.12); }
.fn-heart input:checked + span { color: #FF3B3B; text-shadow: 0 0 12px rgba(226,34,34,.6); transform: scale(1.15); }

/* ===================== 1.0.46: STATS ROW, DROPDOWN, FANCY ===================== */
/* 4) five stats on one row inside the same width */
.fn-statrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fn-stat { min-width: 0; padding: 10px 12px; }
.fn-stat-num { font-size: 19px; }
.fn-stat-label { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .fn-statrow { grid-template-columns: repeat(2, 1fr); } }

/* 7) account dropdown */
.fn-user { position: relative; }
.fn-user-toggle { background: none; border: 1px solid var(--fn-line); border-radius: 999px; color: var(--fn-silver); cursor: pointer; padding: 5px 10px; display: inline-flex; align-items: center; gap: 7px; transition: border-color .15s ease, background .15s ease; }
.fn-user-toggle:hover { border-color: rgba(226,34,34,.5); background: rgba(226,34,34,.08); }
.fn-user-chip { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #EC2020, #B60F0F); color: #fff; font: 700 10px var(--fn-body); display: grid; place-items: center; }
.fn-caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-1px); }
.fn-usermenu {
	position: absolute; right: 0; top: calc(100% + 8px);
	min-width: 180px; z-index: 40;
	background: linear-gradient(180deg, rgba(24,24,29,.98), rgba(14,14,18,.99));
	border: 1px solid var(--fn-line); border-radius: 12px;
	box-shadow: 0 18px 46px rgba(0,0,0,.6), 0 0 22px rgba(226,34,34,.10);
	padding: 6px; animation: fnPanelIn .16s ease;
}
.fn-usermenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--fn-silver); }
.fn-usermenu a:hover { background: rgba(226,34,34,.12); color: #fff; }

/* 6) logo coming-soon state */
.fn-logo-soon { text-align: center; padding: 34px 16px; border: 1.5px dashed rgba(226,34,34,.35); border-radius: 14px; background: rgba(226,34,34,.04); }
.fn-logo-soon-mark { font-size: 30px; display: block; margin-bottom: 8px; color: #FF6B6B; filter: drop-shadow(0 0 10px rgba(226,34,34,.5)); }
.fn-logo-soon p { margin: 0; color: var(--fn-dim); font-size: 13.5px; }

/* 8) fancy pass */
.fn-topbar { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(226,34,34,.55), transparent) 1; }
.fn-h1 { background: linear-gradient(92deg, #fff 30%, #FFD1CB 70%, #FF8B8B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fn-actioncard, .fn-feed { position: relative; overflow: hidden; }
.fn-actioncard::before, .fn-feed::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.045) 46%, transparent 62%);
	background-size: 240% 100%;
	animation: fnSheen 6.5s ease-in-out infinite;
}
@keyframes fnSheen { 0%, 55%, 100% { background-position: 130% 0; } 25% { background-position: -30% 0; } }
.fn-side-nav a { transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease; }
.fn-side-nav a:hover { transform: translateX(2px); }
.fn-stat { transition: border-color .18s ease, transform .18s ease; }
.fn-stat:hover { border-color: rgba(226,34,34,.4); transform: translateY(-1px); }
.fn-status { box-shadow: 0 0 12px rgba(56,140,255,.10); }
@media (prefers-reduced-motion: reduce) { .fn-actioncard::before, .fn-feed::before { animation: none; } }

/* ===================== 1.0.47: DROPDOWN HARDENING + POLISH ===================== */
/* Sign out must be reachable: explicit display rules, high z-index, no clipping. */
.fn-topbar, .fn-topbar-in, .fn-user { overflow: visible; }
.fn-usermenu { display: block; z-index: 9999; }
.fn-usermenu[hidden] { display: none !important; }
.fn-usermenu a { white-space: nowrap; }
.fn-usermenu a:last-child { color: #FF8B8B; }
.fn-usermenu a:last-child:hover { background: rgba(226,34,34,.16); }
/* sidebar CTA stays on one line */
.fn-side-open { white-space: nowrap; font-size: 14px; }

/* ===================== 1.0.48: STAT LABELS WRAP CLEANLY ===================== */
.fn-stat-label { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.fn-stat { padding: 9px 11px; }

/* ===================== 1.0.49: NATIVE DROPDOWN, CONVERSATIONS, COLOR RINGS ===================== */
/* <details>-based account menu: works with zero JavaScript. */
.fn-userdrop { position: relative; }
.fn-userdrop > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.fn-userdrop > summary::-webkit-details-marker { display: none; }
.fn-userdrop > summary .fn-caret { transition: transform .18s ease; }
.fn-userdrop[open] > summary .fn-caret { transform: rotate(225deg) translateY(-1px); }
.fn-userdrop .fn-usermenu { position: absolute; right: 0; top: calc(100% + 8px); }
.fn-user-name { font-size: 13px; color: var(--fn-silver); white-space: nowrap; }

/* ringlet uses the bucket color */
.fn-side-ringlet { background: radial-gradient(closest-side, #0e0e12 76%, transparent 77% 100%), conic-gradient(var(--c, #FF3B3B) calc(var(--p) * 1%), rgba(255,255,255,.09) 0); }

/* studio conversation on cards */
.fn-conv { margin: 2px 0 10px; }
.fn-conv > summary {
	cursor: pointer; list-style: none;
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12.5px; font-weight: 600; color: var(--fn-silver);
	border: 1px solid var(--fn-line); border-radius: 999px;
	padding: 6px 12px;
	transition: border-color .15s ease, color .15s ease;
}
.fn-conv > summary::-webkit-details-marker { display: none; }
.fn-conv > summary:hover { border-color: rgba(226,34,34,.5); color: #fff; }
.fn-conv[open] > summary { border-color: rgba(226,34,34,.5); color: #fff; }
.fn-stream-mini { margin-top: 12px; max-height: 320px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.fn-stream-mini .fn-stream-item { padding: 8px 12px; }
.fn-stream-mini .fn-stream-text { font-size: 13px; }
.fn-conv-reply { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.fn-conv-reply .fn-textarea { flex: 1; min-height: 44px; }
.fn-conv-reply .fn-btn { flex: none; margin-top: 2px; }

/* ===================== 1.0.50: MESSAGE STATES + MODERATION ===================== */
.fn-state-chip { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; margin-bottom: 5px; }
.fn-state-chip.is-resolved { background: rgba(61,220,151,.15); color: #6FE3B0; border: 1px solid rgba(61,220,151,.4); }
.fn-state-chip.is-checking { background: rgba(56,189,248,.14); color: #7DD3FC; border: 1px solid rgba(56,189,248,.4); }
.fn-stream-item.is-resolved { opacity: .72; }
.fn-stream-item.is-resolved .fn-stream-text { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.28); }
.fn-msg-tools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.fn-msg-tool { margin: 0; }
.fn-msg-btn {
	font: 600 10.5px var(--fn-body); letter-spacing: .04em;
	background: rgba(255,255,255,.04); color: var(--fn-dim);
	border: 1px solid var(--fn-line); border-radius: 999px;
	padding: 3px 10px; cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.fn-msg-btn:hover { color: #fff; }
.fn-msg-btn.is-resolved:hover { border-color: rgba(61,220,151,.5); background: rgba(61,220,151,.1); }
.fn-msg-btn.is-checking:hover { border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.1); }
.fn-msg-btn.is-open:hover { border-color: rgba(255,197,61,.5); background: rgba(255,197,61,.1); }
.fn-msg-btn.is-delete:hover { border-color: rgba(226,34,34,.6); background: rgba(226,34,34,.12); color: #FF8B8B; }
.fn-stream-item.is-studio .fn-msg-tools .fn-msg-tool:not(:last-child) { display: none; } /* studio msgs: delete only */

/* ===================== 1.0.52 ===================== */
.fn-ring-xs { width: 32px; height: 32px; flex: none; }
.fn-ring-num-xs { font: 700 9.5px var(--fn-body); fill: var(--fn-text); }
.fn-state-chip.is-open { background: rgba(255,197,61,.12); color: #FFD97A; border: 1px solid rgba(255,197,61,.35); }

/* ===================== SILK & INK LOGIN (1.0.54) ===================== */
/* Scorched-earth under body.fn-login-silk: the classic backdrop is fully
   disabled and silk paints its own. Revert: Settings -> Login style, or
   ?login_style=classic. */
.fn-silk, .fn-silkband, .fn-silkbase { display: none; }
body.fn-login-silk .fn-silkbase,
body.fn-login-silk .fn-silk,
body.fn-login-silk .fn-silkband { display: block; position: fixed; inset: -10%; pointer-events: none; z-index: 0; }

/* kill EVERY classic decoration outright */
body.fn-login-silk .fn-circuit,
body.fn-login-silk .fn-circuit::before,
body.fn-login-silk .fn-circuit::after,
body.fn-login-silk .fn-login-orbit,
body.fn-login-silk .fn-ember { display: none !important; background: none !important; animation: none !important; }
/* the giant page rings + old glows live on the BODY's own pseudo-elements */
body.fn-login-silk::before,
body.fn-login-silk::after,
body.fn-login-silk .fn-login-wrap::before,
body.fn-login-silk .fn-login-wrap::after { display: none !important; content: none !important; background: none !important; box-shadow: none !important; animation: none !important; }

/* satin base */
body.fn-login-silk { background: #050507; }
body.fn-login-silk .fn-silkbase {
	background:
		radial-gradient(120% 90% at 28% 16%, rgba(140, 12, 14, .34), transparent 62%),
		radial-gradient(120% 90% at 78% 88%, rgba(105, 8, 10, .30), transparent 62%),
		radial-gradient(80% 80% at 50% 55%, #140809, #050507 80%);
}
body.fn-login-silk .fn-silk {
	background:
		radial-gradient(46% 34% at 20% 76%, rgba(170, 14, 16, .16), transparent 70%),
		radial-gradient(40% 30% at 82% 22%, rgba(170, 14, 16, .14), transparent 70%);
	animation: fnSilkDrift 38s ease-in-out infinite alternate;
}
@keyframes fnSilkDrift {
	from { transform: translate3d(-1.6%, -1%, 0); }
	to   { transform: translate3d(1.6%, 1%, 0); }
}
/* the light gliding across silk - now unmistakable */
body.fn-login-silk .fn-silkband {
	background: linear-gradient(115deg, transparent 40%, rgba(255, 130, 118, .065) 50%, transparent 60%);
	background-size: 260% 260%;
	animation: fnSilk 18s ease-in-out infinite;
	mix-blend-mode: screen;
}
@keyframes fnSilk {
	0%, 100% { background-position: 125% 0; }
	50%      { background-position: -25% 100%; }
}

/* keep grain + vignette ambience on silk via its own layers */
body.fn-login-silk .fn-silkbase::before {
	content: ""; position: absolute; inset: 0;
	background-image: repeating-conic-gradient(rgba(255,255,255,.012) 0% .0004%, transparent .0009% .002%);
	opacity: .5;
}
body.fn-login-silk .fn-silkbase::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(ellipse at 50% 46%, transparent 52%, rgba(0, 0, 0, .58) 100%);
}

/* glass card */
body.fn-login-silk .fn-login-card {
	background: linear-gradient(180deg, rgba(24, 24, 30, .72), rgba(13, 13, 17, .86));
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-color: rgba(255, 255, 255, .12);
	box-shadow: 0 0 0 1px rgba(211, 26, 26, .12), 0 30px 70px rgba(0, 0, 0, .58), 0 0 40px rgba(211, 26, 26, .10);
}

@media (prefers-reduced-motion: reduce) {
	body.fn-login-silk .fn-silkband,
	body.fn-login-silk .fn-silk { animation: none; }
}

/* ===================== 1.0.54: WIDE CANVAS + DASHBOARD MANAGE ===================== */
/* one wider container for everything, still aligned with the topbar */
.fn-topbar-in, .fn-main-in, .fn-main-wide { max-width: 1280px; }
.fn-shell { grid-template-columns: 300px minmax(0, 1fr); }
.fn-shell-admin { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 979px) { .fn-shell, .fn-shell-admin { grid-template-columns: 1fr; } }

.fn-manage { margin: 2px 0 10px; }
.fn-manage > summary {
	cursor: pointer; list-style: none;
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12.5px; font-weight: 600; color: var(--fn-silver);
	border: 1px solid var(--fn-line); border-radius: 999px; padding: 6px 12px;
	transition: border-color .15s ease, color .15s ease;
}
.fn-manage > summary::-webkit-details-marker { display: none; }
.fn-manage > summary:hover, .fn-manage[open] > summary { border-color: rgba(226,34,34,.5); color: #fff; }
.fn-manage-in { margin-top: 12px; border: 1px solid var(--fn-line); border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.02); }
.fn-tracks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.fn-track-input { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; background: var(--fn-panel-2); border: 1px solid var(--fn-line); border-radius: 9px; padding: 7px 10px; }
.fn-track-input input { width: 64px; background: rgba(5,5,8,.7); border: 1px solid var(--fn-line); border-radius: 7px; color: var(--fn-text); padding: 5px 7px; font: 600 12.5px var(--fn-body); }
.fn-logo-mgr { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 12px; }
.fn-logo-mgr-item { display: flex; align-items: center; gap: 9px; background: var(--fn-panel-2); border: 1px solid var(--fn-line); border-radius: 10px; padding: 7px 9px; }
.fn-logo-mgr-thumb { width: 52px; height: 38px; flex: none; border-radius: 7px; overflow: hidden; background: #000; display: grid; place-items: center; border: 1px solid var(--fn-line); }
.fn-logo-mgr-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fn-logo-mgr-label { flex: 1; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-logo-upload .fn-dropzone { padding: 13px; margin-bottom: 8px; }

/* ===================== 1.0.55: TOPBAR LOCKUP ===================== */
.fn-brand-lockimg { display: block; height: 40px; width: auto; filter: drop-shadow(0 3px 12px rgba(211,26,26,.25)); }
@media (max-width: 640px) { .fn-brand-lockimg { height: 32px; } }

/* ===================== 1.0.56 ===================== */
/* 5) softer headline: barely-tinted white */
.fn-h1 { background: linear-gradient(92deg, #FFFFFF 45%, #FFF1EF 80%, #FFE3DF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* 3) big client-style ring on studio cards */
.fn-ring-md { width: 60px; height: 60px; flex: none; filter: drop-shadow(0 0 10px rgba(226,34,34,.18)); }
.fn-ring-num-md { font: 700 13px var(--fn-body); fill: var(--fn-text); }
/* 4) messages view */
body.fn-msgview .fn-statrow, body.fn-msgview .fn-feed, body.fn-msgview .fn-studio-grid-2 { display: none; }
.fn-msgpanel { animation: fnPanelIn .22s ease; }

/* ===================== 1.0.57 ===================== */
/* 3) sidebar client progress: color bar + % */
.fn-side-progress { display: flex; align-items: center; gap: 7px; flex: none; width: 92px; }
.fn-side-barwrap { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.fn-side-barwrap i { display: block; height: 100%; border-radius: 999px; }
.fn-side-progress b { font: 700 10.5px var(--fn-body); color: var(--fn-silver); font-variant-numeric: tabular-nums; }
.fn-side-client { flex-direction: column; align-items: flex-start; gap: 5px; }
.fn-side-client .fn-side-names { width: 100%; }

/* 5) action banner sheen: much less frequent, softer */
@keyframes fnSheen { 0%, 86%, 100% { background-position: 130% 0; } 93% { background-position: -30% 0; } }
.fn-actioncard::before, .fn-feed::before {
	background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.03) 46%, transparent 62%);
	background-size: 240% 100%;
	animation-duration: 16s;
}

/* ===================== 1.0.58 ===================== */
/* 3) sidebar ring, client-style with % centered */
.fn-ring-side { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 0 8px rgba(226,34,34,.15)); }
.fn-ring-num-side { font: 700 10.5px var(--fn-body); fill: var(--fn-text); }
.fn-side-client { flex-direction: row; align-items: center; gap: 10px; }
.fn-side-progress, .fn-side-barwrap { display: none; }

/* 5) bigger site preview on studio cards - client-dashboard sized */
.fn-thumb-lg { width: 380px; aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .fn-thumb-lg { width: 100%; } }

/* ===================== 1.0.59: LOGO BOARD ===================== */
/* 3) locked layouts must let the CONTENT pane scroll: grid rows need minmax(0,1fr) */
body.fn-tabbed .fn-shell { height: 100%; grid-template-rows: minmax(0, 1fr); }
body.fn-tabbed .fn-content { height: 100%; }
body.fn-admin-lock .fn-shell-admin { height: 100%; grid-template-rows: minmax(0, 1fr); }
body.fn-admin-lock .fn-content { height: 100%; }
.fn-panel { padding-bottom: 28px; }

/* 2) bigger, clickable thumbs */
.fn-rank-item { padding: 10px 14px; }
.fn-rank-thumb { position: relative; width: 128px; height: 84px; border: 1px solid var(--fn-line); background: #fff; cursor: zoom-in; padding: 6px; border-radius: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.fn-rank-thumb:hover { transform: scale(1.03); box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.fn-rank-zoom { position: absolute; right: 5px; bottom: 4px; font-size: 12px; color: #555; opacity: 0; transition: opacity .15s ease; }
.fn-rank-thumb:hover .fn-rank-zoom { opacity: 1; }
.fn-rank-item:first-child { border-color: rgba(255,197,61,.5); box-shadow: 0 0 16px rgba(255,197,61,.10); }
.fn-rank-item:first-child .fn-rank-num { background: linear-gradient(180deg, #FFC53D, #E09A00); }
.fn-rank-item:first-child::after { content: "TOP PICK"; font: 700 9px var(--fn-body); letter-spacing: .08em; color: #FFD97A; border: 1px solid rgba(255,197,61,.45); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }

/* 6) eliminate */
.fn-rank-x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--fn-line); background: transparent; color: var(--fn-mute); font-size: 15px; line-height: 1; cursor: pointer; transition: all .15s ease; }
.fn-rank-x:hover { border-color: rgba(226,34,34,.6); background: rgba(226,34,34,.12); color: #FF8B8B; transform: scale(1.08); }
.fn-eliminate-form { display: none; }

/* 5) fancy save */
.fn-btn-save { position: relative; overflow: hidden; padding-left: 22px; padding-right: 22px; }
.fn-btn-save::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 62%); transform: translateX(-130%); transition: transform .5s ease; }
.fn-btn-save:hover::after { transform: translateX(130%); }
.fn-save-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: #FFC53D; box-shadow: 0 0 10px rgba(255,197,61,.9); margin-left: 9px; }
.fn-btn-save.is-dirty .fn-save-dot { display: inline-block; animation: fnDotPulse 1.2s ease-in-out infinite; }
.fn-btn-save.is-dirty { box-shadow: 0 10px 30px rgba(211,26,26,.5), 0 0 22px rgba(255,197,61,.25), inset 0 1px 0 rgba(255,255,255,.25); }
@keyframes fnDotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }

/* lightbox */
.fn-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3,3,5,.92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; animation: fnPanelIn .18s ease; }
.fn-lightbox[hidden] { display: none; }
.fn-lightbox figure { margin: 0; max-width: min(88vw, 980px); max-height: 84vh; text-align: center; }
.fn-lightbox img { max-width: 100%; max-height: 76vh; background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 40px 120px rgba(0,0,0,.8); }
.fn-lightbox figcaption { margin-top: 12px; color: var(--fn-silver); font-size: 13.5px; }
.fn-lb-close { position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(20,20,26,.8); color: #fff; font-size: 22px; cursor: pointer; }
.fn-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(20,20,26,.8); color: #fff; font-size: 26px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.fn-lb-nav:hover, .fn-lb-close:hover { background: rgba(226,34,34,.3); border-color: rgba(226,34,34,.6); }
.fn-lb-prev { left: 22px; } .fn-lb-next { right: 22px; }
body.fn-lb-open { overflow: hidden; }

/* ===================== 1.0.60 ===================== */
/* 2+5) dark scrollbars, everywhere */
* { scrollbar-width: thin; scrollbar-color: rgba(226,34,34,.45) rgba(255,255,255,.05); }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 999px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(226,34,34,.55), rgba(150,10,10,.55)); border-radius: 999px; border: 2px solid #0a0a0d; }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(240,48,48,.75), rgba(180,14,14,.7)); }

/* 1) nav icons */
.fn-nav-ico { width: 16px; height: 16px; flex: none; margin-right: 9px; vertical-align: -3px; color: var(--fn-dim); transition: color .15s ease; }
.fn-side-nav a { display: flex; align-items: center; }
.fn-side-nav a:hover .fn-nav-ico, .fn-side-nav a.is-active .fn-nav-ico { color: #FF6B6B; }
.fn-side-nav a .fn-side-badge { margin-left: auto; }

/* 2) multiple projects: two-up cards on the wide canvas, flexible previews */
.fn-studio-grid-2 { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }
.fn-studio-card.is-solo { grid-column: 1 / -1; }
.fn-thumb-lg { width: clamp(180px, 38%, 380px); }
.fn-studio-card-2 { padding: 14px; }

/* 4) stats: one line, always */
.fn-statrow { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.fn-stat { flex: 1 1 0; min-width: 104px; }

/* 8) client site preview, a size up (lock preserved) */
.fn-phero-visual.has-img { width: min(48%, 460px); }

/* 6) lightbox hardening */
.fn-lightbox { backdrop-filter: none; }
.fn-lightbox figure, .fn-lightbox img { pointer-events: none; }
.fn-lb-nav, .fn-lb-close { z-index: 2; pointer-events: auto; }

/* 7) fancy confirm */
.fn-confirm { position: fixed; inset: 0; z-index: 110; background: rgba(3,3,5,.8); display: flex; align-items: center; justify-content: center; animation: fnPanelIn .16s ease; }
.fn-confirm[hidden] { display: none; }
.fn-confirm-card {
	width: min(92vw, 420px);
	background: linear-gradient(180deg, rgba(24,24,30,.98), rgba(13,13,17,.99));
	border: 1px solid rgba(226,34,34,.35); border-radius: 16px;
	padding: 26px 26px 22px; text-align: center;
	box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 30px rgba(226,34,34,.12);
	animation: fnConfirmPop .22s cubic-bezier(.22,1.4,.36,1) both;
}
@keyframes fnConfirmPop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.fn-confirm-ico {
	display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px;
	border-radius: 50%; font-size: 24px; color: #FF8B8B;
	background: rgba(226,34,34,.12); border: 1px solid rgba(226,34,34,.4);
	box-shadow: 0 0 18px rgba(226,34,34,.25);
}
.fn-confirm-card h4 { margin: 0 0 6px; font-size: 17px; }
.fn-confirm-card p { margin: 0 0 18px; font-size: 13.5px; color: var(--fn-dim); }
.fn-confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ===================== 1.0.61 ===================== */
/* 2+6) icon + label sit together (badge stays right) */
.fn-side-nav a { justify-content: flex-start; gap: 0; }
.fn-side-nav a .fn-nav-ico { margin-right: 10px; }

/* 3) consistent studio cards: fixed zones, truncating titles */
.fn-project-title { flex-wrap: nowrap; min-width: 0; }
.fn-project-title h2 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-project-title .fn-status { flex: none; }
.fn-studio-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fn-studio-line { min-height: 20px; }
.fn-minitracks { min-height: 26px; }
.fn-studio-badges { min-height: 24px; }
.fn-manage { margin-top: auto; }

/* 4) site previews: letterboxed with breathing room - the full page top shows */
.fn-thumb-lg.has-img:not(.is-brand) {
	background-size: contain;
	background-position: center;
	background-color: #0d1017;
	background-clip: content-box;
	padding: 8px;
}
/* 5+7) client preview: properly BIG this time */
.fn-phero-visual { flex: none !important; }
.fn-phero-visual.has-img {
	width: clamp(340px, 46%, 560px) !important;
	aspect-ratio: 4 / 3;
	background-size: contain;
	background-position: center;
	background-color: #0d1017;
	background-clip: content-box;
	padding: 8px;
}
@media (max-width: 900px) { .fn-phero-visual.has-img { width: 100% !important; } }

/* ===================== 1.0.62 ===================== */
/* 2) stat hover: glow only, no movement, no clipping */
.fn-stat:hover { transform: none; }
.fn-statrow { padding-top: 2px; }

/* 3) client hero: strict flex contract - no push, no horizontal scroll */
.fn-phero { display: flex; align-items: flex-start; gap: 24px; flex-wrap: nowrap; }
.fn-phero > *:first-child { flex: 1 1 0; min-width: 0; }
.fn-phero-visual.has-img { width: clamp(320px, 44%, 480px) !important; }
body.fn-tabbed .fn-content { overflow-x: hidden; }
body.fn-admin-lock .fn-content { overflow-x: hidden; }
@media (max-width: 900px) { .fn-phero { flex-wrap: wrap; } }

/* messages nav active state */
.fn-side-nav a.is-active { background: rgba(226,34,34,.10); border-color: rgba(226,34,34,.45); color: #fff; }

/* ===================== 1.0.63 ===================== */
/* 1) compact studio cards: everything actionable in one footer row */
.fn-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.fn-card-foot .fn-conv, .fn-card-foot .fn-manage { margin: 0; }
.fn-card-foot .fn-project-actions { margin: 0; display: flex; gap: 8px; }
.fn-card-foot .fn-conv[open], .fn-card-foot .fn-manage[open] { flex-basis: 100%; }
.fn-thumb-lg { width: clamp(150px, 30%, 280px); }
.fn-ring-md { width: 52px; height: 52px; }
.fn-minitracks { min-height: 22px; height: 22px; margin: 6px 0 8px; }
.fn-studio-badges { min-height: 22px; margin-bottom: 6px; }
.fn-studio-card-2 { padding: 12px; }
.fn-studio-grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 12px; }

/* 2) client overview: guaranteed no scroll */
.fn-phero-visual.has-img { width: clamp(280px, 38%, 400px) !important; max-height: 40vh; }
body.fn-tabbed .fn-panel[data-panel^="overview"] { padding-bottom: 8px; }
body.fn-tabbed .fn-actioncard { margin-bottom: 14px; padding-top: 12px; padding-bottom: 12px; }
body.fn-tabbed .fn-phero { padding-bottom: 8px; }

/* 3) PageSpeed gauges */
.fn-psi-loading { display: flex; align-items: center; gap: 10px; color: var(--fn-dim); font-size: 13.5px; padding: 26px 0; }
.fn-psi-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(226,34,34,.25); border-top-color: #FF3B3B; animation: fnSpin .8s linear infinite; }
@keyframes fnSpin { to { transform: rotate(360deg); } }
.fn-psi-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin: 6px 0 16px; }
.fn-gauge { text-align: center; }
.fn-gauge svg { width: 92px; height: 92px; }
.fn-gauge-num { font: 700 20px var(--fn-body); fill: var(--fn-text); }
.fn-gauge-label { display: block; margin-top: 6px; font-size: 12px; color: var(--fn-dim); }
.fn-psi-metrics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fn-psi-chip { font-size: 12px; color: var(--fn-silver); border: 1px solid var(--fn-line); border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.03); }
.fn-psi-chip b { color: var(--fn-dim); font-weight: 600; margin-right: 4px; }
.fn-psi-foot { font-size: 11.5px; color: var(--fn-mute); margin: 0; }

/* ===================== 1.0.64 ===================== */
/* 1) full-width title */
.fn-project-title h2 { font-size: 17px; }
.fn-studio-line { flex-wrap: wrap; gap: 8px; display: flex; align-items: center; }
/* 2) footer spans the whole card */
.fn-studio-card-2 { flex-wrap: wrap; position: relative; }
.fn-card-foot { flex-basis: 100%; border-top: 1px solid var(--fn-line); margin-top: 12px; }
/* 3) drag grip + drag state */
.fn-card-grip { position: absolute; top: 10px; right: 12px; color: var(--fn-mute); letter-spacing: -2px; font-size: 14px; cursor: grab; padding: 2px 6px; border-radius: 6px; transition: color .15s ease, background .15s ease; }
.fn-card-grip:hover { color: #FF8B8B; background: rgba(226,34,34,.10); }
.fn-studio-card.is-dragging { opacity: .55; border-color: rgba(226,34,34,.7); box-shadow: 0 14px 40px rgba(0,0,0,.6); cursor: grabbing; }
/* 4) sidebar buttons look identical to the old anchors */
.fn-side-nav button { all: unset; box-sizing: border-box; cursor: pointer; }
.fn-side-nav button, .fn-side-nav a { display: flex; align-items: center; width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; color: var(--fn-silver); font: 500 13.5px var(--fn-body); transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease; }
.fn-side-nav button:hover { background: rgba(255,255,255,.04); color: #fff; transform: translateX(2px); }
.fn-side-nav button.is-active { background: rgba(226,34,34,.10); border-color: rgba(226,34,34,.45); color: #fff; }
/* 5) generalized fancy button */
.fn-btn-fancy { position: relative; overflow: hidden; box-shadow: 0 10px 26px rgba(211,26,26,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.fn-btn-fancy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 62%); transform: translateX(-130%); transition: transform .5s ease; }
.fn-btn-fancy:hover::after { transform: translateX(130%); }

/* ===================== 1.0.65 ===================== */
.fn-psi-cols { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .fn-psi-cols { grid-template-columns: 1fr 1fr; } }
.fn-psi-col { border: 1px solid var(--fn-line); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.02); }
.fn-psi-col[data-which="dev"] { border-color: rgba(61,220,151,.25); }
.fn-psi-error { color: #FFB4AE; font-size: 13.5px; padding: 14px; border: 1px solid rgba(226,34,34,.4); border-radius: 10px; background: rgba(226,34,34,.07); }
/* 4) nudge the preview off the right edge */
.fn-phero-visual.has-img { margin-right: 22px; }
/* banner task dismiss */
.fn-actionlist li { display: flex; align-items: center; gap: 10px; }
.fn-actionlist li a { flex: 1; min-width: 0; }
.fn-act-done { margin: 0; }
.fn-act-x { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(61,220,151,.4); background: rgba(61,220,151,.08); color: #6FE3B0; font-size: 13px; line-height: 1; cursor: pointer; transition: all .15s ease; }
.fn-act-x:hover { background: rgba(61,220,151,.2); transform: scale(1.1); }
/* order toast */
.fn-ordertoast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; background: linear-gradient(180deg, rgba(24,24,30,.98), rgba(13,13,17,.99)); border: 1px solid rgba(61,220,151,.45); color: #B8F5D9; border-radius: 999px; padding: 9px 18px; font: 600 13px var(--fn-body); box-shadow: 0 14px 40px rgba(0,0,0,.6); animation: fnPanelIn .2s ease; }
.fn-ordertoast.is-err { border-color: rgba(226,34,34,.55); color: #FFB4AE; }

/* ===================== 1.0.66: OVERVIEW COMPRESSION ===================== */
.fn-phero-visual.has-img { max-height: 34vh; width: clamp(260px, 36%, 380px) !important; }
body.fn-tabbed .fn-actioncard { padding-top: 10px; padding-bottom: 10px; margin-bottom: 12px; }
.fn-actionlist li { padding: 4px 0; }
.fn-actionlist li a { line-height: 1.35; }
body.fn-tabbed .fn-phero { gap: 18px; }
.fn-journey { margin-top: 10px; }
.fn-block-title { margin-bottom: 4px; }
.fn-block-sub { margin-bottom: 10px; }

/* Edit my details modal (1.0.66) */
.fn-profile-card { text-align: left; width: min(94vw, 460px); }
.fn-profile-card h4 { text-align: center; margin-bottom: 14px; }
.fn-confirm-ico.is-user { color: #8FD3FF; background: rgba(70,150,220,.12); border-color: rgba(70,150,220,.4); box-shadow: 0 0 18px rgba(70,150,220,.2); }
.fn-profile-lbl { display: block; font: 600 11.5px var(--fn-body); letter-spacing: .05em; text-transform: uppercase; color: var(--fn-silver); margin-bottom: 12px; }
.fn-profile-lbl input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px; font: 500 14px var(--fn-body); color: var(--fn-text); background: rgba(5,5,8,.72); border: 1px solid rgba(255,255,255,.12); outline: none; caret-color: #E22222; transition: border-color .15s ease, box-shadow .15s ease; }
.fn-profile-lbl input:focus { border-color: rgba(226,34,34,.7); box-shadow: 0 0 0 3px rgba(226,34,34,.14); }
.fn-profile-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fn-profile .fn-confirm-actions { margin-top: 6px; justify-content: flex-end; }
.fn-toast.is-err { border-color: rgba(226,34,34,.55); color: #FFB4AE; }

/* ===================== 1.0.67: FANCY STATS ===================== */
.fn-psi-loading { padding: 20px 0; gap: 14px; }
.fn-psi-spin[hidden], .fn-psi-count[hidden], .fn-psi-fail[hidden] { display: none; }
.fn-psi-spin { width: 22px; height: 22px; border-width: 3px;
	border-color: rgba(226,34,34,.2); border-top-color: #FF3B3B; border-right-color: #FFC53D; }
.fn-psi-count { width: 54px; height: 54px; flex: none; }
.fn-psi-count-arc { transition: stroke-dashoffset .9s linear; filter: drop-shadow(0 0 6px rgba(255,197,61,.5)); }
.fn-psi-count-num { font: 700 16px var(--fn-body); fill: #FFD97A; }
.fn-psi-fail { font-size: 22px; color: #FFB74D; }
.fn-gauge { background: rgba(255,255,255,.025); border: 1px solid var(--fn-line); border-radius: 14px; padding: 12px 8px 10px; transition: transform .15s ease, box-shadow .15s ease; }
.fn-gauge:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.fn-gauge svg { filter: drop-shadow(0 0 8px rgba(0,0,0,.4)); }
.fn-psi-grade { display: flex; align-items: center; gap: 12px; border: 1px solid var(--fn-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.fn-psi-grade b { font: 800 26px var(--fn-body); }
.fn-psi-grade span { font-size: 13.5px; color: var(--fn-silver); }
.fn-psi-col[data-which="live"] { border-color: rgba(255,140,66,.25); }
.fn-psi-error b { color: #FFD3CE; }

/* Preview refresh button (1.0.68) */
.fn-phero-visual { position: relative; }
.fn-preview-refresh { position: absolute; right: 14px; bottom: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(10,10,14,.82); color: var(--fn-silver); cursor: pointer; transition: all .15s ease; z-index: 2; }
.fn-preview-refresh svg { width: 15px; height: 15px; }
.fn-preview-refresh:hover { color: #fff; border-color: rgba(226,34,34,.6); background: rgba(226,34,34,.25); transform: rotate(40deg); }
.fn-preview-refresh.is-busy { pointer-events: none; color: #FFC53D; border-color: rgba(255,197,61,.5); }
.fn-preview-refresh.is-busy svg { animation: fnSpin 1s linear infinite; }

/* ===================== 1.0.69: FULL-FRAME PREVIEWS ===================== */
/* frames now share the capture's exact ratio (760:713) - the whole shot
   displays with a uniform padded border, nothing cropped */
.fn-phero-visual.has-img { aspect-ratio: 760 / 713; max-height: 44vh; padding: 10px; }
.fn-thumb-lg.has-img:not(.is-brand) { aspect-ratio: 440 / 413; padding: 10px; }

/* ===================== 1.0.70 ===================== */
/* 1) previews: natural full-viewport shots in 4:3 frames, no crop, no scroll */
.fn-phero-visual.has-img { aspect-ratio: 4 / 3; max-height: 34vh; padding: 10px; }
.fn-thumb-lg.has-img:not(.is-brand) { aspect-ratio: 4 / 3; padding: 10px; }

/* 3) solo focus: one project, full attention */
body.fn-solo .fn-statrow, body.fn-solo .fn-feed { display: none; }
.fn-studio-card.is-focus { grid-column: 1 / -1; padding: 20px; }
.fn-studio-card.is-focus .fn-thumb-lg { width: clamp(300px, 44%, 520px); }
.fn-studio-card.is-focus .fn-project-title h2 { font-size: 22px; }
.fn-studio-card.is-focus .fn-ring-md { width: 64px; height: 64px; }
.fn-studio-card.is-focus .fn-card-grip { display: none; }

/* 4) admin stats panel inside the details row */
.fn-stats-det .fn-manage-in { max-height: none; }
.fn-statspanel .fn-psi-cols { gap: 14px; }

/* ===================== 1.0.71 ===================== */
/* 2) hero preview: taller 4:5 capture shows more page */
.fn-phero-visual.has-img { aspect-ratio: 4 / 5; max-height: 38vh; padding: 10px; }

/* 3) login button hover glow, dialed back */
body.fn-login-body .fn-login-card .fn-btn-red:hover,
body.fn-login-body .fn-login-card button[type="submit"]:hover {
	box-shadow: 0 8px 18px rgba(211, 26, 26, .30), inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* 4) stats idle + stop */
.fn-psi-idle { display: flex; align-items: center; gap: 14px; padding: 18px 0; flex-wrap: wrap; }
.fn-psi-idle[hidden] { display: none; }
.fn-psi-idle-note { font-size: 12.5px; color: var(--fn-dim); }
.fn-psi-loading [data-psi-stop] { margin-left: 10px; }

/* 6) card footer: ONE row, compact */
.fn-card-foot { flex-wrap: nowrap; gap: 6px; }
.fn-card-foot > details > summary { padding: 5px 10px; font-size: 11.5px; white-space: nowrap; }
.fn-card-foot .fn-project-actions { gap: 6px; flex: none; margin-left: auto; }
.fn-card-foot .fn-project-actions .fn-btn { padding: 6px 10px; font-size: 11.5px; white-space: nowrap; }
.fn-card-foot .fn-conv[open], .fn-card-foot .fn-manage[open] { flex-basis: auto; }
.fn-card-foot > details[open] { position: relative; }
.fn-card-foot > details[open] > .fn-manage-in,
.fn-card-foot > details[open] > .fn-conv-in { position: absolute; left: 0; top: calc(100% + 8px); width: 560px; max-width: 74vw; z-index: 20; background: linear-gradient(180deg, rgba(22,22,27,.99), rgba(13,13,17,.99)); box-shadow: 0 24px 60px rgba(0,0,0,.7); }

/* ===================== 1.0.72 ===================== */
/* 2) client hero preview: compact 4:5, overview locked scroll-free again */
.fn-phero-visual.has-img { aspect-ratio: 4 / 5; max-height: 30vh; width: auto !important; padding: 8px; }

/* ===================== 1.0.73 ===================== */
/* client hero preview back: height-driven so the box can never collapse */
.fn-phero-visual.has-img {
	height: min(30vh, 400px);
	max-height: none;
	width: auto !important;
	aspect-ratio: 4 / 5;
	flex: none !important;
}
/* previews can never crop: contain wins everywhere */
.fn-thumb.has-img:not(.is-brand), .fn-phero-visual.has-img {
	background-size: contain !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}
/* softer red glows on the hero buttons */
.fn-btn-block, .fn-btn-fancy, .fn-btn-red.fn-btn-fancy {
	box-shadow: 0 8px 18px rgba(211, 26, 26, .26), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.fn-btn-block:hover, .fn-btn-fancy:hover {
	box-shadow: 0 9px 20px rgba(211, 26, 26, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
}
/* grip affordance */
.fn-card-grip { cursor: grab; }
.fn-card-grip:active { cursor: grabbing; }

/* ===================== 1.0.74: THE PREVIEW, SOLVED ===================== */
/* a real <img> IS the box: no background sizing, no letterbox, no collapse */
.fn-phero-visual { position: relative; }
.fn-phero-visual.has-img {
	height: auto !important; width: auto !important; max-height: none !important;
	aspect-ratio: auto !important; padding: 6px !important; background: #0d1017 !important;
	flex: none !important; display: block;
}
.fn-phero-img {
	display: block;
	height: min(33vh, 410px);
	width: auto;
	max-width: 100%;
	border-radius: 10px;
	background: #0d1017;
}
/* tighten overview chrome so the bigger image still locks scroll-free */
body.fn-tabbed .fn-actioncard { margin-bottom: 10px; }
body.fn-tabbed .fn-phero { gap: 20px; padding-bottom: 4px; }
.fn-journey { margin-top: 6px; }
body.fn-tabbed .fn-panel[data-panel^="overview"] .fn-block-title { margin-bottom: 2px; }

/* logo race widget */
.fn-logorace { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 10px 12px; border: 1px solid rgba(255,197,61,.28); border-radius: 12px; background: linear-gradient(90deg, rgba(255,197,61,.06), transparent 70%); max-width: 420px; }
.fn-logorace-thumb { position: relative; flex: none; width: 74px; height: 50px; background: #fff; border-radius: 8px; display: grid; place-items: center; padding: 5px; border: 1px solid rgba(255,197,61,.4); }
.fn-logorace-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fn-logorace-crown { position: absolute; top: -9px; right: -7px; font-size: 14px; color: #FFC53D; filter: drop-shadow(0 0 6px rgba(255,197,61,.7)); }
.fn-logorace-info b { display: block; font-size: 12.5px; color: #FFD97A; }
.fn-logorace-info span { font-size: 12px; color: var(--fn-silver); }

/* ===================== 1.0.75 ===================== */
/* preview trimmed a notch: the single-page lock closes */
.fn-phero-img { height: min(29vh, 356px); }
body.fn-tabbed .fn-actioncard { padding-top: 9px; padding-bottom: 9px; margin-bottom: 9px; }
body.fn-tabbed .fn-panel[data-panel^="overview"] { padding-bottom: 2px; }
.fn-nextstep { margin-top: 8px; }

/* subtle corporate signature - fixed, so it can never create scroll */
.fn-copyright {
	position: fixed; right: 16px; bottom: 7px; z-index: 5; margin: 0;
	font: 500 10.5px var(--fn-body); color: rgba(155, 160, 168, .45);
	letter-spacing: .02em; pointer-events: none;
}
.fn-copyright a { color: rgba(155, 160, 168, .55); text-decoration: none; pointer-events: auto; transition: color .15s ease; }
.fn-copyright a:hover { color: #FF6B6B; }

/* ===================== 1.0.76 ===================== */
/* 3) overview never shows a scrollbar: pane locks while overview is active */
body.fn-tabbed .fn-content:has(.fn-panel[data-panel^="overview"].is-active) { overflow-y: hidden; }
.fn-nextstep { margin-bottom: 0; }

/* 1) notification bell */
.fn-notify { margin-right: 10px; }
.fn-notify-toggle { position: relative; padding: 9px 11px; }
.fn-notify-bell { width: 17px; height: 17px; color: var(--fn-silver); transition: color .15s ease; }
.fn-notify-toggle:hover .fn-notify-bell, .fn-notify[open] .fn-notify-bell { color: #FF6B6B; animation: fnBellRing .5s ease; }
@keyframes fnBellRing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(12deg); } 60% { transform: rotate(-9deg); } }
.fn-notify-badge {
	position: absolute; top: 2px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px;
	display: grid; place-items: center; border-radius: 999px;
	background: linear-gradient(180deg, #F03030, #C11414); color: #fff;
	font: 700 10px var(--fn-body); box-shadow: 0 0 8px rgba(226, 34, 34, .6);
}
.fn-notify-menu { min-width: 300px; padding: 8px; }
.fn-notify-title { display: block; font: 700 11px var(--fn-body); letter-spacing: .07em; text-transform: uppercase; color: var(--fn-dim); padding: 6px 10px 8px; }
.fn-notify-menu a { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.35; }
.fn-notify-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 7px rgba(255, 59, 59, .8); }

/* ===================== 1.0.77 ===================== */
/* 1) admin previews: real <img>, box shrink-wraps it - cropping impossible */
.fn-thumb-lg.has-img, .fn-thumb-lg.has-img:not(.is-brand) {
	width: auto !important; height: auto !important;
	aspect-ratio: auto !important; padding: 6px !important;
	background: #0d1017 !important; display: block; flex: none;
}
.fn-thumb-img { display: block; height: 128px; width: auto; max-width: 100%; border-radius: 8px; }
.fn-studio-card.is-focus .fn-thumb-img { height: 300px; }

/* 2) overview breathing room: nothing may be clipped by the pane lock */
.fn-phero-img { height: min(26vh, 330px); }
.fn-journey { margin-top: 4px; }
.fn-nextstep { padding-top: 8px; padding-bottom: 8px; margin-top: 6px; }
body.fn-tabbed .fn-phero { padding-bottom: 0; }

/* ===================== 1.0.78 ===================== */
/* 4) overview: scrollable but the scrollbar is INVISIBLE - nothing can be
   clipped, nothing can render a track. Supersedes the hidden-overflow lock. */
body.fn-tabbed .fn-content:has(.fn-panel[data-panel^="overview"].is-active) {
	overflow-y: auto;
	scrollbar-width: none;
}
body.fn-tabbed .fn-content:has(.fn-panel[data-panel^="overview"].is-active)::-webkit-scrollbar {
	display: none; width: 0; height: 0;
}

/* 1.0.80: amber bell experiment reverted - original silver/red restored (1.0.76 rules stand) */

/* ===================== 1.0.81 ===================== */
/* 2) wider canvas: 1360px, everything aligned */
.fn-topbar-in, .fn-main-in, .fn-main-wide { max-width: 1360px; }

/* 3) the crown earns its size */
.fn-logorace-crown { font-size: 21px; top: -14px; right: -10px; filter: drop-shadow(0 0 9px rgba(255, 197, 61, .85)); }
.fn-logorace-thumb { overflow: visible; }

/* ===================== 1.0.82 ===================== */
/* 1) canvas: one more notch */
.fn-topbar-in, .fn-main-in, .fn-main-wide { max-width: 1440px; }

/* 2) the CTA row: strip and button side by side, centered - button back to human size */
.fn-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 4px 0 10px; }
.fn-cta-row .fn-logorace { margin: 0; }
.fn-cta-row .fn-btn-fancy {
	flex: none; align-self: center; display: inline-flex; align-items: center;
	padding: 13px 24px !important; font-size: 14px !important; height: auto !important; line-height: 1.2;
}

/* 3) breathing room between the journey and the status line */
.fn-nextstep { margin-top: 16px; }

/* ===================== 1.0.83 ===================== */
/* 1) compact studio header: title floats beside the stat chips */
.fn-studio-head { float: left; margin: 4px 28px 14px 0; }
.fn-studio-head .fn-h1 { font-size: 21px; margin: 8px 0 0; }
.fn-statrow { overflow: hidden; }
.fn-studio-body, .fn-studio-layout { clear: both; }

/* 2) cards fill the full canvas */
.fn-studio-grid-2 { grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); }

/* 3b) status switcher */
.fn-statuspick { position: relative; display: inline-block; }
.fn-statuspick summary { list-style: none; cursor: pointer; }
.fn-statuspick summary::-webkit-details-marker { display: none; }
.fn-statuspick-caret { font-style: normal; font-size: 9px; opacity: .6; }
.fn-statuspick-menu {
	position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px;
	display: flex; flex-direction: column; gap: 4px; padding: 8px;
	background: linear-gradient(180deg, rgba(22,22,27,.99), rgba(13,13,17,.99));
	border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.65);
}
.fn-statuspick-menu button { all: unset; cursor: pointer; padding: 3px 4px; border-radius: 8px; }
.fn-statuspick-menu button:hover { background: rgba(255,255,255,.06); }
.fn-statuspick-menu button.is-now { outline: 1px solid rgba(226,34,34,.5); }

/* 3a) notes */
.fn-lognote { margin: 14px 0 4px; }
.fn-lognote > summary { cursor: pointer; font-size: 13px; color: var(--fn-silver); }
.fn-lognote[open] > summary { color: #fff; }
.fn-lognote-row { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.fn-lognote-row select.fn-input { flex: 0 0 170px; }
.fn-lognote-row input.fn-input { flex: 1 1 240px; }
.fn-notes-list { list-style: none; margin: 8px 0 0; padding: 0; }
.fn-notes-list li { font-size: 12.5px; color: var(--fn-silver); padding: 7px 2px; border-top: 1px solid rgba(255,255,255,.06); }
.fn-notes-list li b { color: #FFD97A; font-weight: 600; }
.fn-notes-meta { display: block; font-size: 11px; color: var(--fn-dim); margin-top: 2px; }

/* ===================== 1.0.84 ===================== */
/* the status line is a real flex row again (details had force-closed the old <p>) */
.fn-studio-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; font-size: 13px; color: var(--fn-silver); }
.fn-studio-line .fn-i-user { margin: 0; }
/* cards: compact and top-aligned - rows don't stretch to the tallest sibling */
.fn-studio-grid-2 { align-items: start; }
.fn-studio-badges { margin-top: 6px; }
.fn-minitracks { margin-top: 8px; }

/* ===================== 1.0.85 ===================== */
/* 1) pull the page up toward the topbar */
.fn-main { padding-top: 16px; }
.fn-main-in > .fn-h1:first-child, .fn-studio-head .fn-h1 { margin-top: 0; }
.fn-studio-head { margin-top: 0; }

/* win: client presence pulse */
.fn-seen { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fn-dim); }
.fn-seen-dot { width: 7px; height: 7px; border-radius: 50%; background: #666; }
.fn-seen.is-fresh { color: #7ED9A0; }
.fn-seen.is-fresh .fn-seen-dot { background: #22C55E; box-shadow: 0 0 7px rgba(34, 197, 94, .8); }
.fn-seen.is-stale { color: #E8B65A; }
.fn-seen.is-stale .fn-seen-dot { background: #FFC53D; box-shadow: 0 0 6px rgba(255, 197, 61, .6); }
.fn-seen.is-never .fn-seen-dot { background: #777; }

/* win: compare top two */
.fn-compare { position: fixed; inset: 0; z-index: 240; background: rgba(5, 5, 8, .88); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 4vh 4vw; }
.fn-compare-in { position: relative; width: min(980px, 94vw); background: linear-gradient(180deg, rgba(24,24,30,.99), rgba(12,12,16,.99)); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.75); }
.fn-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.fn-compare-cell { position: relative; margin: 0; background: #fff; border-radius: 12px; padding: 26px; display: grid; place-items: center; min-height: 260px; }
.fn-compare-cell.is-first { outline: 2px solid rgba(255, 197, 61, .65); outline-offset: 3px; }
.fn-compare-cell .fn-logorace-crown { top: -13px; right: -9px; }
.fn-compare-cell img { max-width: 100%; max-height: 300px; object-fit: contain; }
.fn-compare-cell figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #333; background: rgba(255,255,255,.85); padding: 3px 9px; border-radius: 999px; }
body.fn-noscroll { overflow: hidden; }

/* ===================== 3) FULL MOBILE SWEEP ===================== */
@media (max-width: 1020px) {
	.fn-shell, .fn-shell-admin { grid-template-columns: 1fr; gap: 18px; }
	.fn-side { position: static; }
	body.fn-tabbed .fn-shell { height: auto; grid-template-rows: none; }
	body.fn-tabbed .fn-content, body.fn-tabbed .fn-content:has(.fn-panel[data-panel^="overview"].is-active) { overflow: visible; height: auto; }
	body.fn-tabbed, body.fn-tabbed .fn-main { height: auto; overflow: auto; }
	.fn-side-nav { display: flex; flex-wrap: wrap; gap: 6px; }
	.fn-side-nav a, .fn-side-nav button { flex: 0 0 auto; }
	.fn-statrow { display: flex; flex-wrap: wrap; gap: 8px; }
	.fn-studio-head { float: none; margin: 0 0 10px; }
}
@media (max-width: 760px) {
	.fn-topbar-in, .fn-main-in { padding-left: 14px; padding-right: 14px; }
	.fn-phero { flex-direction: column-reverse; gap: 14px; }
	.fn-phero-img { height: auto; width: 100%; max-height: 44vh; object-fit: contain; }
	.fn-phero-visual.has-img { width: 100% !important; }
	.fn-cta-row { gap: 12px; }
	.fn-logorace { max-width: 100%; }
	.fn-journey { overflow-x: auto; padding-bottom: 6px; }
	.fn-logo-grid { grid-template-columns: repeat(2, 1fr); }
	.fn-compare-grid { grid-template-columns: 1fr; }
	.fn-card-foot { flex-wrap: wrap; }
	.fn-card-foot .fn-project-actions { margin-left: 0; }
	.fn-card-foot > details[open] > .fn-manage-in,
	.fn-card-foot > details[open] > .fn-conv-in { width: 92vw; max-width: 92vw; }
	.fn-thumb-lg.has-img { width: 100% !important; }
	.fn-thumb-img { height: auto; width: 100%; max-height: 240px; object-fit: contain; }
	.fn-psi-cols { grid-template-columns: 1fr !important; }
	.fn-notify-menu { min-width: 260px; right: -60px; }
	.fn-copyright { position: static; text-align: right; padding: 10px 14px 6px; }
}

/* ===================== 1.0.86 ===================== */
/* the sidebar obeys the same law as the overview pane: scrollable if it must,
   but the scrollbar itself can never render - plus a light compaction so the
   full menu fits outright at desktop heights */
body.fn-tabbed .fn-side, body.fn-admin-lock .fn-shell-admin .fn-side { scrollbar-width: none; }
body.fn-tabbed .fn-side::-webkit-scrollbar,
body.fn-admin-lock .fn-shell-admin .fn-side::-webkit-scrollbar { display: none; width: 0; height: 0; }
.fn-side-track { margin-bottom: 5px; }
.fn-side-card { padding-top: 16px; padding-bottom: 14px; }
.fn-side-nav a, .fn-side-nav button { padding-top: 9px; padding-bottom: 9px; }

/* ===================== 1.0.87 ===================== */
/* the REAL gap: .fn-main-in carried 34px top padding (1.0.85 trimmed the
   outer .fn-main, which never had any). Both dashboards pull up ~22px. */
.fn-main-in { padding-top: 12px; }
.fn-copyright-v { opacity: .85; }

/* ===================== 1.0.88 ===================== */
/* pull-up, round two */
.fn-main-in { padding-top: 4px; }

/* "Since your last visit" recap */
.fn-recap {
	display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 11px 14px;
	border: 1px solid rgba(61, 220, 151, .3); border-radius: 12px;
	background: linear-gradient(90deg, rgba(61, 220, 151, .08), transparent 70%);
	font-size: 13.5px; color: var(--fn-silver); transition: opacity .25s ease;
}
.fn-recap b { color: #7ED9A0; font-weight: 600; }
.fn-recap-spark { font-size: 15px; }
.fn-recap-x { all: unset; cursor: pointer; margin-left: auto; color: var(--fn-dim); font-size: 17px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.fn-recap-x:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ===================== 1.0.90: SITE STATS POLISH ===================== */
/* 1+4) THE SPINNER BUG: display rules beat the hidden attribute - never again */
.fn-psi-loading[hidden], .fn-psi-idle[hidden], .fn-psi[hidden],
.fn-psi-spin[hidden], .fn-psi-count[hidden], .fn-psi-fail[hidden],
.fn-psi-error[hidden], .fn-psi-grade[hidden], .fn-psi-col[hidden] { display: none !important; }

/* 2+6) compact single-row gauges - four dials across, everywhere */
.fn-psi-gauges { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 8px; }
.fn-gauge svg { width: 64px; height: 64px; }
.fn-gauge { padding: 10px 6px; }
.fn-gauge-label { font-size: 10.5px; }
.fn-gauge-delta { display: block; font-size: 10.5px; font-weight: 700; margin-top: 3px; }
.fn-gauge-delta.is-up { color: #22C55E; }
.fn-gauge-delta.is-down { color: #FF6B6B; }
.fn-psi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.fn-psi-col { min-width: 0; }
.fn-statspanel { container-type: normal; }

/* 5) admin stats: a full-width elevated sheet instead of a cramped popover */
.fn-studio-card { position: relative; }
.fn-card-foot > details.fn-stats-det[open] > .fn-manage-in {
	position: absolute; left: 10px; right: 10px; top: calc(100% + 8px); width: auto; max-width: none;
	padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
	background: linear-gradient(180deg, rgba(20,20,26,.995), rgba(11,11,15,.995));
	box-shadow: 0 26px 70px rgba(0,0,0,.8); z-index: 40;
	max-height: 480px; overflow-y: auto; scrollbar-width: none;
}
.fn-card-foot > details.fn-stats-det[open] > .fn-manage-in::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
	.fn-psi-gauges { grid-template-columns: repeat(4, minmax(58px, 1fr)); }
	.fn-gauge svg { width: 52px; height: 52px; }
}

/* ===================== 1.0.91: SITE STATS, FANCY & FUNCTIONAL ===================== */
/* 1) client content pane: invisible scrollbar everywhere (scroll works, track never shows) */
body.fn-tabbed .fn-content { scrollbar-width: none; }
body.fn-tabbed .fn-content::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* stats tab tightened */
.fn-statspanel { margin-top: 2px; }
.fn-psi-grade { padding: 8px 14px; }
.fn-psi-grade b { font-size: 20px; }
.fn-psi-foot { margin-top: 8px; }

/* 2) column identity: swatches + urls */
.fn-psi-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }
.fn-psi-swatch.is-dev { background: #E22222; box-shadow: 0 0 7px rgba(226, 34, 34, .7); }
.fn-psi-swatch.is-live { background: #3DA9FF; box-shadow: 0 0 7px rgba(61, 169, 255, .6); }
.fn-psi-url { margin: 2px 0 10px; font-size: 11.5px; color: var(--fn-dim); font-family: ui-monospace, monospace; }
.fn-psi-col.is-live .fn-gauge-arc { opacity: .95; }
.fn-psi-livenote { font-size: 12px; color: var(--fn-dim); margin: 6px 0; }
.fn-psi-livenote[hidden] { display: none !important; }

/* verdict banner */
.fn-psi-verdict { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 11px 16px; border-radius: 12px; font-size: 14px; color: var(--fn-silver); }
.fn-psi-verdict[hidden] { display: none !important; }
.fn-psi-verdict b { color: #fff; }
.fn-psi-verdict span { color: var(--fn-dim); font-size: 12.5px; }
.fn-psi-verdict.is-win { border: 1px solid rgba(34, 197, 94, .4); background: linear-gradient(90deg, rgba(34, 197, 94, .1), transparent 75%); }
.fn-psi-verdict.is-behind { border: 1px solid rgba(255, 197, 61, .35); background: linear-gradient(90deg, rgba(255, 197, 61, .08), transparent 75%); }

/* history sparkline */
.fn-psi-spark { display: block; width: 130px; height: 30px; margin: 8px 0 2px; opacity: .9; }
.fn-psi-spark[hidden] { display: none !important; }

/* 3) admin card panels: real in-flow tabs, never popovers, never touching */
.fn-card-foot { flex-wrap: wrap; }
.fn-card-foot > details[open] { flex-basis: 100%; position: static; }
.fn-card-foot > details[open] > .fn-manage-in,
.fn-card-foot > details[open] > .fn-conv-in,
.fn-card-foot > details.fn-stats-det[open] > .fn-manage-in {
	position: static !important; width: 100% !important; max-width: none !important;
	left: auto; right: auto; top: auto; margin-top: 12px;
	padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
	background: linear-gradient(180deg, rgba(20, 20, 26, .99), rgba(12, 12, 16, .99));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
	max-height: none; overflow: visible;
}
.fn-card-foot > details > summary { white-space: nowrap; }

/* ===================== 1.0.92 ===================== */
/* 1) card tab mode: an open panel takes over the card - other buttons vanish,
   the open summary becomes the tab header with a close hint */
.fn-card-foot:has(> details[open]) > *:not(details[open]) { display: none; }
.fn-card-foot > details[open] > summary {
	display: flex; align-items: center; width: 100%;
	padding: 8px 12px; font-size: 13px; font-weight: 600; color: #fff;
	border-bottom: 2px solid rgba(226, 34, 34, .7); border-radius: 8px 8px 0 0;
	background: rgba(255, 255, 255, .04);
}
.fn-card-foot > details[open] > summary::after { content: '✕ close'; margin-left: auto; font-size: 11px; font-weight: 500; color: var(--fn-dim); }
.fn-card-foot > details[open] > summary:hover::after { color: #FF6B6B; }

/* 4) stats columns: fully rounded, bottom included */
.fn-psi-col { border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 14px 14px 12px; background: rgba(255, 255, 255, .015); overflow: hidden; }
.fn-psi-col.is-dev { border-color: rgba(34, 197, 94, .25); }

/* 6) device toggle */
.fn-psi-topbar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.fn-psi-strat { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(0, 0, 0, .3); }
.fn-psi-strat button { all: unset; cursor: pointer; padding: 5px 12px; border-radius: 7px; font-size: 12px; color: var(--fn-silver); }
.fn-psi-strat button:hover { color: #fff; }
.fn-psi-strat button.is-active { background: linear-gradient(180deg, #E22222, #B31414); color: #fff; font-weight: 600; }

/* 7) top opportunities */
.fn-psi-tips { margin-top: 10px; padding: 10px 12px; border: 1px dashed rgba(255, 197, 61, .3); border-radius: 10px; }
.fn-psi-tips[hidden] { display: none !important; }
.fn-psi-tips b { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #FFD97A; margin-bottom: 6px; }
.fn-psi-tip { display: block; font-size: 12.5px; color: var(--fn-silver); padding: 3px 0; }
.fn-psi-tip i { color: var(--fn-dim); font-style: normal; }

/* ===================== 1.0.93 ===================== */
/* 2+3) stats tab: zero wasted space, separator gone, everything tighter */
.fn-panel[data-panel^="stats"] { border-top: 0 !important; padding-top: 4px !important; margin-top: 0 !important; }
.fn-panel[data-panel^="stats"] hr { display: none; }
.fn-panel[data-panel^="stats"] .fn-block-title { margin: 0 0 2px; }
.fn-panel[data-panel^="stats"] .fn-block-sub { margin: 0 0 8px; }
.fn-psi-topbar { margin: 0 0 8px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.fn-gauge svg { width: 56px; height: 56px; }
.fn-gauge { padding: 8px 4px; }
.fn-psi-col { padding: 12px 12px 10px; }
.fn-psi-verdict { padding: 9px 14px; margin-bottom: 10px; }
.fn-psi-grade { padding: 6px 12px; }
.fn-psi-grade b { font-size: 18px; }
.fn-psi-metrics { margin-top: 6px; }
.fn-psi-chip { font-size: 11.5px; padding: 4px 8px; }
.fn-psi-foot { margin-top: 6px; font-size: 11px; }
.fn-psi-tips { margin-top: 8px; padding: 8px 10px; }

/* 5) scan-again beside the device toggle */
.fn-psi-rescan {
	all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
	font-size: 12px; color: var(--fn-silver); transition: all .15s ease;
}
.fn-psi-rescan svg { width: 12px; height: 12px; }
.fn-psi-rescan:hover { color: #fff; border-color: rgba(226, 34, 34, .55); background: rgba(226, 34, 34, .15); }

/* 6) missing-URL notice */
.fn-psi-nourl { margin: 12px 0; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 12px; font-size: 13.5px; color: var(--fn-silver); }

/* ===================== 1.0.94 ===================== */
/* THE UNIVERSAL HIDDEN LAW: the hidden attribute now beats every display rule,
   everywhere, forever. This single rule retires the phantom-spinner /
   always-on-compare-overlay class of bug for good. */
[hidden] { display: none !important; }

/* 2) stats title flush to the top - final squeeze */
.fn-panel[data-panel^="stats"] { padding-top: 0 !important; }
.fn-panel[data-panel^="stats"].fn-block { padding: 8px 20px 14px !important; }

/* ===================== 1.0.95 ===================== */
/* 1+3) THE REAL WASTED SPACE, EVERY TAB: .fn-block ships border-top + 22px
   margin + 22px padding. Inside the tabbed view the tab IS the context -
   top-level panels drop all three. Inner blocks keep their dividers. */
body.fn-tabbed .fn-panel.fn-block { border-top: 0; margin-top: 0; padding-top: 10px; }
body.fn-tabbed .fn-panel.fn-block > .fn-block-title:first-child { margin-top: 0; }

/* sidebar live-score chip */
.fn-side-score { margin-left: auto; min-width: 26px; text-align: center; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* ===================== 1.0.96 ===================== */
/* 1+2) device toggle + scan-again dock beside the Site stats title */
.fn-panel[data-panel^="stats"] { position: relative; }
.fn-panel[data-panel^="stats"] .fn-psi-topbar { position: absolute; top: 6px; right: 20px; margin: 0; z-index: 3; }
.fn-panel[data-panel^="stats"] .fn-block-sub { margin-bottom: 6px; }
.fn-panel[data-panel^="stats"] .fn-statspanel { margin-top: 0; }
.fn-psi-verdict { margin-bottom: 8px; }
.fn-psi-cols { gap: 12px; }
@media (max-width: 900px) {
	.fn-panel[data-panel^="stats"] .fn-psi-topbar { position: static; margin: 0 0 8px; }
}

/* 3) the honest dev-build note */
.fn-psi-devnote {
	margin: 8px 0 2px; padding: 9px 12px; border-radius: 10px; font-size: 12px; line-height: 1.5;
	color: var(--fn-silver); border: 1px solid rgba(61, 169, 255, .3);
	background: linear-gradient(90deg, rgba(61, 169, 255, .08), transparent 80%);
}
.fn-psi-devnote b { color: #8EC9FF; }

/* ===================== 1.0.97 ===================== */
/* 2) Files: two-column layout - dropzone left, lists right */
.fn-files-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 26px; align-items: start; }
.fn-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 34px 18px; text-align: center; }
.fn-dz-ico { width: 30px; height: 30px; color: var(--fn-dim); transition: color .2s ease, transform .2s ease; }
.fn-dropzone:hover .fn-dz-ico, .fn-dropzone.is-drag .fn-dz-ico { color: #FF6B6B; transform: translateY(-2px); }
.fn-dropzone.is-drag { border-color: rgba(226, 34, 34, .7); background: rgba(226, 34, 34, .07); }
.fn-dz-hint { font-size: 11.5px; color: var(--fn-dim); }
.fn-upload-form .fn-btn-red { margin-top: 12px; width: 100%; }
.fn-file-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; background: rgba(255,255,255,.06); margin-right: 10px; }
.fn-file-ico.is-img { background: rgba(61, 220, 151, .12); }
.fn-file-ico.is-pdf { background: rgba(226, 34, 34, .14); }
.fn-file-ico.is-doc { background: rgba(61, 169, 255, .12); }
.fn-file-ico.is-xls { background: rgba(255, 197, 61, .12); }
.fn-file-ico.is-zip { background: rgba(167, 139, 250, .12); }
.fn-file { display: flex; align-items: center; }
.fn-files-empty { display: flex; align-items: center; gap: 10px; padding: 18px 14px; border: 1px dashed rgba(255,255,255,.14); border-radius: 12px; color: var(--fn-dim); font-size: 13px; }
.fn-files-empty span { font-size: 18px; }
.fn-files-empty p { margin: 0; }
@media (max-width: 900px) { .fn-files-grid { grid-template-columns: 1fr; } }

/* 3) Brand kit: business cards */
.fn-bizcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fn-bizcard { display: block; aspect-ratio: 3.5 / 2; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 34px rgba(0,0,0,.5); transition: transform .18s ease, box-shadow .18s ease; }
.fn-bizcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fn-bizcard:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 22px 48px rgba(0,0,0,.65); }

/* ===================== 1.0.98: BRAND KIT REDESIGN ===================== */
/* (the 1.0.97 white-box disaster: the legacy placeholder shared the .fn-bizcard
   class the new tiles restyled - section rebuilt, display class renamed) */
.fn-brandgrid { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 28px; align-items: start; }
.fn-brandlogo-card { background: #fff; border-radius: 14px; padding: 34px 26px; display: grid; place-items: center; min-height: 190px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 40px rgba(0,0,0,.5); margin-bottom: 14px; }
.fn-brandlogo-card img { max-width: 100%; max-height: 170px; object-fit: contain; }
.fn-brand-placeholder { display: grid; place-items: center; gap: 8px; text-align: center; padding: 30px 18px; border: 1px dashed rgba(255,255,255,.18); border-radius: 14px; color: var(--fn-dim); }
.fn-brand-placeholder span { font-size: 26px; }
.fn-brand-placeholder p { margin: 0; font-size: 13px; }
.fn-bizcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.fn-bizcard-tile { margin: 0; }
.fn-bizcard-tile a { display: block; aspect-ratio: 3.5 / 2; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 34px rgba(0,0,0,.5); transition: transform .18s ease, box-shadow .18s ease; }
.fn-bizcard-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fn-bizcard-tile a:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 22px 48px rgba(0,0,0,.65); }
.fn-bizcard-tile figcaption { margin-top: 7px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--fn-dim); text-align: center; }
.fn-bizcard-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 900px) { .fn-brandgrid { grid-template-columns: 1fr; } }

/* ===================== 1.0.99 ===================== */
.fn-bizconcept { margin-bottom: 16px; }
.fn-bizconcept-h { margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #FFD97A; }
.fn-bizhint { font-size: 12.5px; color: var(--fn-silver); margin: 4px 0 10px; }

/* ===================== 1.1.0: THE CARD STAGE ===================== */
.fn-brandcell-cards { min-width: 0; }
.fn-cardstage-sub { margin: 0 0 14px; font-size: 13px; color: var(--fn-silver); }
.fn-cardstage {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px;
	padding: 26px 22px 20px; border-radius: 16px;
	background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .05), transparent 65%), linear-gradient(180deg, rgba(16, 16, 22, .9), rgba(9, 9, 13, .95));
	border: 1px solid rgba(255, 255, 255, .08);
}
.fn-card3d-wrap { text-align: center; transition: opacity .25s ease, filter .25s ease; }
.fn-card3d-wrap:first-child .fn-card3d { transform: rotate(-1.2deg); }
.fn-card3d-wrap:last-child .fn-card3d { transform: rotate(1.2deg); }
.fn-card3d-wrap.is-passed { opacity: .55; filter: saturate(.7); }
.fn-card3d {
	all: unset; cursor: pointer; position: relative; display: block; width: 100%;
	aspect-ratio: 3.5 / 2; perspective: 1200px; transition: transform .2s ease;
}
.fn-card3d:hover { transform: translateY(-4px) rotate(0deg) !important; }
.fn-card3d-in {
	position: absolute; inset: 0; transform-style: preserve-3d;
	transition: transform .65s cubic-bezier(.3, 1.2, .4, 1);
}
.fn-card3d.is-flipped .fn-card3d-in { transform: rotateY(180deg); }
.fn-card3d-face {
	position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
	border-radius: 13px; overflow: hidden; background: #fff;
	border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 20px 46px rgba(0, 0, 0, .6);
}
.fn-card3d-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fn-card3d-face.is-back { transform: rotateY(180deg); }
.fn-card3d-hint {
	position: absolute; right: 9px; bottom: 7px; z-index: 2; padding: 3px 9px; border-radius: 999px;
	font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: #fff;
	background: rgba(10, 10, 14, .72); border: 1px solid rgba(255, 255, 255, .2);
	opacity: 0; transition: opacity .18s ease;
}
.fn-card3d:hover .fn-card3d-hint { opacity: 1; }
.fn-card3d-crown { position: absolute; top: -13px; right: -8px; z-index: 3; font-size: 22px; }
.fn-card3d-wrap.is-chosen .fn-card3d-face { outline: 2px solid rgba(255, 197, 61, .75); outline-offset: 2px; }
.fn-card3d-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.fn-card3d-meta b { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #FFD97A; }
.fn-btn-gold { background: linear-gradient(180deg, #FFC53D, #E5A81F) !important; color: #221a00 !important; border-color: transparent !important; font-weight: 700; }
.fn-cardpick-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #FFD97A; padding: 3px 9px; border: 1px solid rgba(255, 197, 61, .35); border-radius: 999px; background: rgba(255, 197, 61, .07); }
@media (max-width: 760px) { .fn-cardstage { grid-template-columns: 1fr; } }

/* ===================== 1.1.1 ===================== */
/* Card stage: both concepts side by side (WebP previews keep this instant). */
.fn-cardstage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 20px 18px 16px; }
.fn-cardstage.cols-1 { grid-template-columns: minmax(0, 460px); justify-content: center; }
.fn-cardstage .fn-card3d-hint { bottom: 6px; right: 7px; }
.fn-card3d-crown { font-size: 20px; top: -12px; right: -7px; }
@media (max-width: 760px) { .fn-cardstage { grid-template-columns: 1fr; } }

/* "Our choice" — the studio's starred favourite, visible to the client. */
.fn-ourpick-flag {
	position: absolute; top: 8px; left: 8px; z-index: 3;
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 9px; border-radius: 999px;
	font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	color: #221a00; background: linear-gradient(180deg, #FFC53D, #E5A81F);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .45); pointer-events: none; white-space: nowrap;
}
.fn-ourpick-chip {
	display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
	margin-left: 6px; padding: 2px 8px; border-radius: 999px;
	font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
	color: #FFD97A; background: rgba(255, 197, 61, .09); border: 1px solid rgba(255, 197, 61, .4);
	white-space: nowrap;
}
/* Studio-side star toggle in the logo manager */
.fn-ourpick-btn {
	all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 15px; color: var(--fn-silver); border: 1px solid rgba(255, 255, 255, .14);
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.fn-ourpick-btn:hover { color: #FFD97A; border-color: rgba(255, 197, 61, .5); }
.fn-ourpick-btn.is-on { color: #221a00; background: linear-gradient(180deg, #FFC53D, #E5A81F); border-color: transparent; }
.fn-ourpick-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ===================== 1.1.2 ===================== */
/* Overview absorbs "To review": the banner is now THE checklist. Secure
   (?-prefixed) requests expand their private textarea in place. */
.fn-actionlist li { flex-wrap: wrap; }
.fn-act-label { flex: 1; min-width: 0; line-height: 1.35; }
.fn-act-label::before, .fn-act-req::before { content: "\2192"; color: var(--fn-red-bright); margin-right: 8px; }
.fn-act-req { all: unset; cursor: pointer; flex: 1; min-width: 0; line-height: 1.35; font-size: 13.5px; color: var(--fn-text); }
.fn-act-req:hover { color: var(--fn-red-bright); }
.fn-act-caret { color: var(--fn-dim); font-size: 11px; margin-left: 4px; }
.fn-act-reqform { width: 100%; margin: 8px 0 4px; display: grid; gap: 8px; justify-items: start; }
.fn-act-reqform[hidden] { display: none !important; }

/* ---- Mobile sweep, round 2: touch affordances + small-screen fixes ---- */
/* Touch devices have no hover: keep hover-revealed hints visible */
@media (hover: none) {
	.fn-card3d-hint { opacity: .85; }
	.fn-rank-zoom { opacity: .7; }
}
@media (max-width: 760px) {
	/* iOS Safari zooms any focused field under 16px — never let it */
	.fn-input, .fn-textarea, select.fn-input { font-size: 16px; }
	/* Rank rows: smaller thumbs, wrapping labels, fatter tap targets */
	.fn-rank-item { gap: 8px; padding: 8px 10px; }
	.fn-rank-thumb { width: 96px; height: 64px; }
	.fn-rank-label { white-space: normal; line-height: 1.3; }
	.fn-rank-x { font-size: 20px; padding: 6px 8px; }
	.fn-heart span { font-size: 18px; padding: 4px; }
	/* Compare overlay: scrollable sheet, images capped so both fit a phone */
	.fn-compare-in { padding: 16px 14px; max-height: 88vh; overflow-y: auto; scrollbar-width: none; }
	.fn-compare-in::-webkit-scrollbar { display: none; }
	.fn-compare-grid img { max-height: 34vh; object-fit: contain; }
	/* CTA rows: full-width buttons stack cleanly */
	.fn-logo-cta .fn-btn, .fn-bizcard-actions .fn-btn { flex: 1 1 auto; justify-content: center; text-align: center; }
	.fn-actioncard-title { font-size: 15px; }
	.fn-usermenu { right: -6px; }
	.fn-confirm-card { width: min(440px, 94vw); }
	.fn-brandlogo-card img { max-height: 180px; }
	.fn-ourpick-flag { top: 6px; left: 6px; font-size: 9.5px; padding: 2px 7px; }
}
@media (max-width: 560px) {
	/* Topbar breathing room on small phones */
	.fn-user-name { display: none; }
	.fn-gauge svg { width: 48px; height: 48px; }
	.fn-psi-gauges { gap: 6px; }
}

/* ===================== 1.1.4 ===================== */
/* Site stats: reclaim ~2 lines of vertical so the tab never scrolls.
   Title up (block padding), sub tighter, verdict slimmer, column headers
   pulled to the top edge of their cards. */
.fn-panel[data-panel^="stats"].fn-block { padding-top: 3px !important; }
.fn-panel[data-panel^="stats"] .fn-block-sub { margin-bottom: 6px; }
.fn-panel[data-panel^="stats"] .fn-psi-verdict { margin-bottom: 8px; padding: 8px 14px; }
.fn-psi-col { padding: 9px 16px 12px; }
.fn-psi-col .fn-files-h { margin: 0 0 2px; }
.fn-psi-url { margin: 1px 0 7px; }
.fn-psi-foot { margin-top: 8px; }
.fn-panel[data-panel^="stats"] .fn-psi-idle { margin-top: 4px; }

/* The hero's official-logo widget: the crown goes gold */
.fn-logorace.is-official .fn-logorace-crown { color: #FFC53D; text-shadow: 0 2px 10px rgba(255, 197, 61, .45); }
.fn-logorace.is-official .fn-logorace-thumb { border-color: rgba(255, 197, 61, .45); }

/* Journey glow-up: energy flows along the trail, done steps pop in,
   the current step breathes, the road ahead is dashed */
.fn-step.is-done::before, .fn-step.is-current::before {
	background: linear-gradient(90deg, var(--fn-red) 0%, #FF7A52 40%, var(--fn-red) 80%) 0 0 / 200% 100%;
	animation: fnFlow 3s linear infinite;
}
@keyframes fnFlow { to { background-position: -200% 0; } }
.fn-step.is-upcoming::before { background: repeating-linear-gradient(90deg, var(--fn-line) 0 6px, transparent 6px 12px); }
.fn-step.is-done .fn-step-dot { animation: fnStepPop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.fn-step:nth-child(2).is-done .fn-step-dot { animation-delay: .08s; }
.fn-step:nth-child(3).is-done .fn-step-dot { animation-delay: .16s; }
.fn-step:nth-child(4).is-done .fn-step-dot { animation-delay: .24s; }
.fn-step:nth-child(5).is-done .fn-step-dot { animation-delay: .32s; }
@keyframes fnStepPop { 0% { transform: translateX(-50%) scale(.4); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
.fn-step.is-current .fn-step-dot { animation: fnStepPulse 2.6s ease-in-out infinite; }
@keyframes fnStepPulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(211, 26, 26, .22); }
	50% { box-shadow: 0 0 0 9px rgba(211, 26, 26, .07), 0 0 18px rgba(226, 34, 34, .5); }
}
/* the grand finale: Launched turns gold */
.fn-step.is-current:last-child .fn-step-dot {
	background: linear-gradient(180deg, #FFC53D, #E5A81F); color: #221a00;
	animation: fnStepPulseGold 2.6s ease-in-out infinite;
}
@keyframes fnStepPulseGold {
	0%, 100% { box-shadow: 0 0 0 4px rgba(255, 197, 61, .25); }
	50% { box-shadow: 0 0 0 10px rgba(255, 197, 61, .08), 0 0 22px rgba(255, 197, 61, .5); }
}
.fn-step-date { display: block; font-size: 10.5px; color: var(--fn-dim); margin-top: 2px; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) {
	.fn-step-dot, .fn-step::before { animation: none !important; }
}

/* ===================== 1.1.5 ===================== */
/* Leave-a-note row: concept picker gets room to breathe + a dark native menu */
.fn-lognote-row select.fn-input { flex: 1 1 230px; max-width: 300px; min-width: 0; color-scheme: dark; text-overflow: ellipsis; padding-right: 30px; }
.fn-lognote-row input.fn-input { flex: 2 1 240px; }
select.fn-input { color-scheme: dark; }
select.fn-input option { background: #17171B; color: var(--fn-text); }

/* Admin card conversation: full-width rows instead of chat bubbles */
.fn-stream-mini { margin-top: 10px; }
.fn-stream-mini .fn-stream-item { max-width: none; width: 100%; align-self: stretch; }

/* ===================== 1.1.6 ===================== */
/* Approve grid doubles as a gallery: zoom-in cursor + corner glass */
.fn-logo-img { position: relative; cursor: zoom-in; }
.fn-grid-zoom {
	position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 8px; font-size: 14px; color: #333;
	background: rgba(255, 255, 255, .88); border: 1px solid rgba(0, 0, 0, .08);
	opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.fn-logo-opt:hover .fn-grid-zoom { opacity: .92; }
@media (hover: none) { .fn-grid-zoom { opacity: .8; } }

/* Business cards: print spec line */
.fn-bizdims { margin: -4px 0 12px; font-size: 11.5px; color: var(--fn-dim); letter-spacing: .01em; }

/* ===================== 1.1.7 ===================== */
/* Logo tab: concepts fill their white windows properly */
.fn-logo-img { padding: 12px; min-height: 132px; }
.fn-logo-img img { max-height: 128px; max-width: 94%; }

/* Brand kit: the crowned logo gets the stage it earned */
.fn-brandlogo-card { padding: 22px 20px; min-height: 230px; }
.fn-brandlogo-card img { max-height: 240px; }

/* Print spec: one quiet line, ellipsis before it ever wraps */
.fn-bizdims { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .fn-bizdims { white-space: normal; } }

/* ===================== 1.1.8 ===================== */
/* Toasts: room for the dismiss x + graceful exit */
.fn-toast { position: relative; padding-right: 42px; }
.fn-toast-x {
	all: unset; cursor: pointer; position: absolute; top: 50%; right: 12px;
	transform: translateY(-50%); width: 24px; height: 24px; border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
	font-size: 16px; line-height: 1; color: inherit; opacity: .65;
}
.fn-toast-x:hover { opacity: 1; }
.fn-toast.is-hiding { animation: none; transition: opacity .3s ease, transform .3s ease; opacity: 0; transform: translateY(-6px); }

/* ===================== 1.1.9 ===================== */
/* The greeting slims down: everything below inherits the room */
body.fn-tabbed .fn-main-in, body.fn-admin-lock .fn-main-in { padding-top: 8px; }
body.fn-tabbed .fn-h1, body.fn-admin-lock .fn-h1 { font-size: clamp(14px, 1.8vh, 17px); font-weight: 500; letter-spacing: .02em; margin-bottom: 2px; }
body.fn-tabbed .fn-intro, body.fn-admin-lock .fn-intro { margin-bottom: 10px; }

/* ---- Marketing tab ---- */
.fn-mkt-hero { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--fn-line); border-radius: 14px; background: linear-gradient(120deg, rgba(226, 34, 34, .10), rgba(255, 255, 255, .02) 55%); margin-bottom: 18px; }
.fn-mkt-logochip { flex: none; width: 74px; height: 54px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 6px; }
.fn-mkt-logochip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fn-mkt-hero-txt { display: grid; gap: 2px; min-width: 0; }
.fn-mkt-hero-txt b { font-size: 14.5px; }
.fn-mkt-hero-txt span { font-size: 12.5px; color: var(--fn-dim); line-height: 1.45; }
.fn-mkt-note { margin: -2px 0 10px; font-size: 12px; color: var(--fn-dim); }

.fn-mkt-socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 20px; }
.fn-mkt-soc { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--fn-line); border-radius: 12px; background: rgba(255, 255, 255, .02); transition: transform .16s ease, border-color .16s ease; }
.fn-mkt-soc:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }
.fn-mkt-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.fn-mkt-ico svg { width: 22px; height: 22px; }
.fn-mkt-ico.is-gbp { background: #4285F4; }
.fn-mkt-ico.is-fb { background: #1877F2; }
.fn-mkt-ico.is-ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.fn-mkt-ico.is-yt { background: #E62117; }
.fn-mkt-ico.is-tk { background: #111114; border: 1px solid rgba(255, 255, 255, .18); }
.fn-mkt-ico.is-x { background: #000; border: 1px solid rgba(255, 255, 255, .18); }
.fn-mkt-soc-t { display: grid; gap: 2px; min-width: 0; }
.fn-mkt-soc-t b { font-size: 13px; }
.fn-mkt-soc-t span { font-size: 11.5px; color: var(--fn-dim); line-height: 1.45; }
.fn-fit { justify-self: start; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.fn-fit.is-best { color: #7BD4A8; background: rgba(34, 197, 94, .10); border: 1px solid rgba(34, 197, 94, .35); }
.fn-fit.is-strong { color: #FFD97A; background: rgba(255, 197, 61, .08); border: 1px solid rgba(255, 197, 61, .35); }
.fn-fit.is-opt { color: var(--fn-silver); background: rgba(255, 255, 255, .05); border: 1px solid var(--fn-line); }

.fn-mkt-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 20px; }
.fn-mkt-post { border: 1px solid var(--fn-line); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; }
.fn-mkt-post-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--fn-line-soft); }
.fn-mkt-post-head img { width: 26px; height: 26px; border-radius: 6px; background: #fff; object-fit: contain; padding: 2px; }
.fn-mkt-post-head b { font-size: 12px; }
.fn-mkt-post-head span { font-size: 11px; color: var(--fn-dim); }
.fn-mkt-post-visual { min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px; font-family: var(--fn-display); }
.fn-mkt-post-visual.is-ba { flex-direction: row; background: linear-gradient(100deg, #1E3A5F 49.5%, #F26B1D 50.5%); color: #fff; font-weight: 700; letter-spacing: .08em; font-size: 13px; }
.fn-mkt-post-visual.is-ba i { font-style: normal; font-size: 17px; }
.fn-mkt-post-visual.is-review { background: #1E3A5F; color: #fff; font-size: 12.5px; }
.fn-mkt-stars { color: #FFC53D; font-size: 17px; letter-spacing: 3px; }
.fn-mkt-post-visual.is-promo { background: linear-gradient(160deg, #F26B1D, #C24E0D); color: #fff; }
.fn-mkt-post-visual.is-promo span { font-weight: 800; letter-spacing: .1em; font-size: 15px; }
.fn-mkt-post-visual.is-promo em { font-style: normal; font-size: 11.5px; opacity: .9; }
.fn-mkt-post p { margin: 0; padding: 10px 12px 12px; font-size: 11.5px; color: var(--fn-dim); line-height: 1.5; }

.fn-mkt-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 20px; }
.fn-mkt-mcard { display: grid; gap: 5px; padding: 12px 13px; border: 1px solid var(--fn-line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.fn-mkt-mcard b { font-size: 13px; }
.fn-mkt-mcard span { font-size: 11.5px; color: var(--fn-dim); line-height: 1.5; }
.fn-mkt-mcard em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #FF8B8B; }

.fn-mkt-cta { border: 1px solid rgba(226, 34, 34, .4); border-radius: 14px; padding: 14px 16px; background: rgba(226, 34, 34, .06); display: grid; gap: 8px; justify-items: start; }
.fn-mkt-cta b { font-size: 14px; }
.fn-mkt-cta ol { margin: 0; padding-left: 20px; font-size: 12.5px; color: var(--fn-silver); line-height: 1.7; }
@media (max-width: 560px) { .fn-mkt-hero { flex-direction: column; align-items: flex-start; } }

/* ===================== 1.2.0 ===================== */
/* Grid = the board now: numbered, draggable, prunable */
.fn-logo-opt { user-select: none; }
.fn-logo-opt.is-dragging { opacity: .45; }
.fn-grid-num {
	position: absolute; top: 8px; left: 8px; z-index: 3; width: 22px; height: 22px;
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-size: 11.5px; font-weight: 700; color: #fff;
	background: rgba(18, 18, 22, .85); border: 1px solid rgba(255, 255, 255, .28);
}
.fn-logo-opt .fn-ourpick-flag { left: 36px; }
.fn-grid-x {
	all: unset; cursor: pointer; position: absolute; top: 7px; right: 7px; z-index: 4;
	width: 24px; height: 24px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; color: #fff; background: rgba(18, 18, 22, .78);
	border: 1px solid rgba(255, 255, 255, .22); opacity: 0; transition: opacity .15s ease, background .15s ease;
}
.fn-logo-opt:hover .fn-grid-x { opacity: .9; }
.fn-grid-x:hover { background: rgba(226, 34, 34, .85); }
@media (hover: none) { .fn-grid-x { opacity: .75; } }
.fn-logo-opt.is-picked .fn-grid-x { display: none; }

/* Selected = unmistakable */
.fn-logo-opt.is-picked { border-color: var(--fn-red); box-shadow: 0 0 0 3px rgba(226, 34, 34, .28), 0 12px 28px rgba(226, 34, 34, .16); }
.fn-grid-sel {
	display: none; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
	font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	color: #fff; background: var(--fn-red); vertical-align: middle;
}
.fn-logo-opt.is-picked .fn-grid-sel { display: inline-block; }

/* Messages: quiet per-message delete */
.fn-msg-delform { margin-left: auto; }
.fn-msg-x {
	all: unset; cursor: pointer; width: 22px; height: 22px; border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; color: var(--fn-mute); transition: color .15s ease, background .15s ease;
}
.fn-msg-x:hover { color: #FF8B8B; background: rgba(226, 34, 34, .12); }

/* ===================== 1.2.1 ===================== */
.fn-grid-hint { margin: 0 0 10px; font-size: 12px; color: var(--fn-dim); }
.fn-toast-why { margin-left: 8px; font-size: 10.5px; opacity: .7; }

/* Tools */
.fn-tool-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.fn-tool-tab { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fn-silver); border: 1px solid var(--fn-line); transition: all .15s ease; }
.fn-tool-tab:hover { border-color: rgba(255, 255, 255, .3); }
.fn-tool-tab.is-active { color: #fff; background: var(--fn-red); border-color: var(--fn-red); }
.fn-tool-note { margin: 0 0 12px; font-size: 12.5px; color: var(--fn-dim); }
.fn-domrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fn-domrow .fn-input { flex: 1 1 260px; }
.fn-domres { border-radius: 12px; padding: 13px 15px; font-size: 13px; display: grid; gap: 3px; }
.fn-domres b { font-size: 14px; }
.fn-domres span { color: var(--fn-silver); font-size: 12.5px; }
.fn-domres a { color: inherit; }
.fn-domres.is-wait { border: 1px solid var(--fn-line); color: var(--fn-dim); }
.fn-domres.is-free { border: 1px solid rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .08); color: #7BD4A8; }
.fn-domres.is-taken { border: 1px solid rgba(226, 34, 34, .5); background: rgba(226, 34, 34, .07); color: #F5B5AC; }
.fn-domres.is-unknown { border: 1px solid rgba(255, 197, 61, .5); background: rgba(255, 197, 61, .06); color: #FFD97A; }

.fn-speed { display: grid; justify-items: center; gap: 10px; padding: 6px 0 4px; }
.fn-speed-gauge { width: min(340px, 80vw); height: auto; }
.fn-speed-num { font-family: var(--fn-display); font-size: 34px; font-weight: 800; fill: #fff; }
.fn-speed-unit { font-size: 11px; fill: var(--fn-dim); letter-spacing: .12em; text-transform: uppercase; }
[data-speed-arc] { transition: stroke-dashoffset .25s ease; }
.fn-speed-phase { font-size: 12.5px; color: var(--fn-dim); min-height: 18px; }
.fn-speed-results { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.fn-speed-chip { display: grid; gap: 2px; justify-items: center; min-width: 96px; padding: 10px 14px; border: 1px solid var(--fn-line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.fn-speed-chip b { font-size: 17px; font-family: var(--fn-display); }
.fn-speed-chip span { font-size: 10px; color: var(--fn-dim); letter-spacing: .06em; text-transform: uppercase; }
.fn-speed-chip.is-wide { min-width: 160px; }

/* ===================== 1.2.2 ===================== */
/* Save-my-order demands attention until clicked */
@keyframes fnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 34, 34, .45); } 50% { box-shadow: 0 0 0 9px rgba(226, 34, 34, 0); } }
[data-order-save].is-pulse { border-color: var(--fn-red); color: #fff; animation: fnPulse 1.6s ease-in-out infinite; }

/* Marketing links */
.fn-mkt-link { color: inherit; text-decoration: none; }
.fn-mkt-link:hover { color: #FF8B8B; }
.fn-mkt-cta ol a { color: #FF8B8B; text-decoration: none; }
.fn-mkt-cta ol a:hover { text-decoration: underline; }

/* Tools v2 */
.fn-tool-tabs { justify-content: center; margin-bottom: 20px; }
.fn-tool-tab { display: inline-flex; align-items: center; gap: 7px; }
.fn-tool-tab svg { width: 15px; height: 15px; }
.fn-dom-hero { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.fn-dom-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--fn-line); border-radius: 999px; background: rgba(255, 255, 255, .03); transition: border-color .15s ease, box-shadow .15s ease; }
.fn-dom-bar:focus-within { border-color: rgba(226, 34, 34, .6); box-shadow: 0 0 0 3px rgba(226, 34, 34, .15); }
.fn-dom-bar svg { width: 18px; height: 18px; color: var(--fn-dim); flex: none; }
.fn-dom-bar input { all: unset; flex: 1; min-width: 0; font-size: 15px; color: var(--fn-text); }
.fn-dom-bar input::placeholder { color: var(--fn-mute); }
.fn-dom-bar .fn-btn { border-radius: 999px; }
.fn-dom-scan { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 6px 0; }
.fn-dom-radar { position: relative; width: 34px; height: 34px; flex: none; }
.fn-dom-radar i { position: absolute; inset: 0; border: 2px solid rgba(226, 34, 34, .55); border-radius: 50%; animation: fnRadar 1.8s ease-out infinite; }
.fn-dom-radar i:nth-child(2) { animation-delay: .6s; }
.fn-dom-radar i:nth-child(3) { animation-delay: 1.2s; }
@keyframes fnRadar { 0% { transform: scale(.25); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.fn-dom-scanline { font-size: 13px; color: var(--fn-silver); }
.fn-domres { display: flex; gap: 12px; align-items: flex-start; }
.fn-domres-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; background: rgba(255, 255, 255, .1); }
.fn-domres.is-free .fn-domres-badge { background: rgba(34, 197, 94, .2); }
.fn-domres.is-taken .fn-domres-badge { background: rgba(226, 34, 34, .22); }
.fn-domres > div { display: grid; gap: 3px; }
.fn-dom-alts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fn-dom-alts-label { font-size: 12px; color: var(--fn-dim); }
.fn-dom-chip { all: unset; cursor: pointer; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--fn-silver); border: 1px solid var(--fn-line); transition: all .15s ease; }
.fn-dom-chip:hover { color: #fff; border-color: rgba(226, 34, 34, .6); background: rgba(226, 34, 34, .1); }

.fn-speed-tick { font-size: 8px; fill: var(--fn-dim); }
[data-speed-needle] { transform-origin: 110px 120px; transform: rotate(-90deg); transition: transform .22s cubic-bezier(.3, .9, .4, 1); will-change: transform; }
[data-speed-needle] path { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.fn-speed-num { font-size: 22px; }
.fn-speed-chip.is-hero b { font-size: 21px; color: #7BD4A8; }
.fn-speed-foot { margin: 2px 0 0; font-size: 10.5px; color: var(--fn-mute); text-align: center; }

/* ===================== 1.2.3 ===================== */
/* The gauge earns its stage */
.fn-speed-gauge { width: min(470px, 92vw); }
.fn-speed-num { font-size: 24px; }
.fn-speed-tick { font-size: 8.5px; }
[data-speed-needle] path { filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); }

/* Post-test grade */
.fn-speed-grade { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 14px; border: 1px solid var(--fn-line); background: rgba(255, 255, 255, .02); max-width: 560px; }
.fn-speed-grade b { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--fn-display); font-size: 21px; font-weight: 800; }
.fn-speed-grade > div { display: grid; gap: 2px; }
.fn-speed-grade i { font-style: normal; font-size: 14px; font-weight: 700; }
.fn-speed-grade span { font-size: 12px; color: var(--fn-silver); line-height: 1.45; }
.fn-speed-grade.is-s b { background: linear-gradient(180deg, #FFC53D, #E5A81F); color: #221a00; box-shadow: 0 6px 18px rgba(255, 197, 61, .3); }
.fn-speed-grade.is-s { border-color: rgba(255, 197, 61, .5); }
.fn-speed-grade.is-a b { background: rgba(34, 197, 94, .18); color: #7BD4A8; }
.fn-speed-grade.is-a { border-color: rgba(34, 197, 94, .45); }
.fn-speed-grade.is-b b { background: rgba(61, 169, 255, .16); color: #8CC8FF; }
.fn-speed-grade.is-c b { background: rgba(255, 197, 61, .14); color: #FFD97A; }
.fn-speed-grade.is-d b, .fn-speed-grade.is-e b { background: rgba(226, 34, 34, .16); color: #FF8B8B; }
.fn-speed-grade.is-e { border-color: rgba(226, 34, 34, .45); }

/* ===================== 1.2.4 ===================== */
/* Tool launcher cards */
.fn-tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.fn-tool-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 10px 12px; border-radius: 14px; border: 1px solid var(--fn-line); background: rgba(255, 255, 255, .02); transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.fn-tool-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }
.fn-tool-card.is-active { border-color: var(--fn-red); background: rgba(226, 34, 34, .07); box-shadow: 0 0 0 3px rgba(226, 34, 34, .12); }
.fn-tool-card-ico { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--fn-line); color: var(--fn-silver); }
.fn-tool-card.is-active .fn-tool-card-ico { background: var(--fn-red); border-color: var(--fn-red); color: #fff; box-shadow: 0 6px 16px rgba(226, 34, 34, .35); }
.fn-tool-card-ico svg { width: 19px; height: 19px; }
.fn-tool-card b { font-size: 13px; }
.fn-tool-card > span:not(.fn-tool-card-ico) { font-size: 10.5px; color: var(--fn-dim); }

/* Email + SSL results */
.fn-emailres, .fn-sslres { border-radius: 12px; padding: 13px 15px; font-size: 13px; display: grid; gap: 8px; border: 1px solid var(--fn-line); }
.fn-emailres.is-wait, .fn-sslres.is-wait { color: var(--fn-dim); }
.fn-emailres.is-good, .fn-sslres.is-good { border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .06); }
.fn-emailres.is-mixed, .fn-sslres.is-mixed { border-color: rgba(255, 197, 61, .5); background: rgba(255, 197, 61, .05); }
.fn-emailres.is-bad, .fn-sslres.is-bad { border-color: rgba(226, 34, 34, .5); background: rgba(226, 34, 34, .06); color: #F5B5AC; }
.fn-email-head { font-size: 14px; }
.fn-email-row { display: grid; grid-template-columns: 20px 130px 1fr; gap: 8px; align-items: baseline; font-size: 12.5px; }
.fn-email-row i { font-style: normal; text-align: center; }
.fn-email-row.is-ok i { color: #7BD4A8; }
.fn-email-row.is-warn i { color: #FFD97A; }
.fn-email-row span { color: var(--fn-silver); }
.fn-email-foot { font-size: 11.5px; color: var(--fn-dim); }
.fn-sslres b { font-size: 14px; }
.fn-sslres span { color: var(--fn-silver); font-size: 12.5px; }
@media (max-width: 560px) { .fn-email-row { grid-template-columns: 18px 1fr; } .fn-email-row span { grid-column: 2; } }

/* Admin: reset approval */
.fn-reset-form { margin: -4px 0 10px; }

/* ===================== 1.2.5 ===================== */
/* Greeting lives in the topbar now - every page rises ~40px */
.fn-topbar-hello { margin-left: 4px; margin-right: auto; font-size: 14px; font-weight: 500; letter-spacing: .02em; background: linear-gradient(92deg, #fff 30%, #FFD1CB 70%, #FF8B8B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .fn-topbar-hello { display: none; } }
body.fn-tabbed .fn-main-in, body.fn-admin-lock .fn-main-in { padding-top: 14px; }

/* Speed focus mode: launcher collapses, everything fits one screen */
.fn-tools-focus .fn-tool-cards { display: none; }
.fn-tools-back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fn-dim); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--fn-line); margin-bottom: 10px; transition: color .15s ease, border-color .15s ease; }
.fn-tools-back:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ===================== 1.2.6 ===================== */
/* Focus mode v2: the cockpit */
.fn-panel-toolfocus { position: relative; }
.fn-panel-toolfocus > .fn-block-title { display: none; }
.fn-tools-focus { position: relative; padding-top: 4px; }
.fn-tools-focus .fn-tools-back { position: absolute; top: 0; left: 0; margin: 0; z-index: 5; }
.fn-tools-focus .fn-speed-gauge { width: min(560px, 92vw); }
.fn-tools-focus .fn-speed { padding-top: 10px; }

/* while running: the machine glows */
.fn-speed.is-running .fn-speed-gauge { filter: drop-shadow(0 0 22px rgba(226, 34, 34, .22)); }
.fn-speed.is-running .fn-speed-phase { color: var(--fn-silver); }

/* done: grade left, gauge centre, chips right - one screen, no scroll */
@media (min-width: 1020px) {
	.fn-tools-focus .fn-speed.is-done {
		grid-template-areas: "grade gauge chips";
		grid-template-columns: minmax(220px, 290px) auto minmax(240px, 330px);
		column-gap: 26px; align-items: center;
	}
	.fn-tools-focus .fn-speed.is-done .fn-speed-grade { grid-area: grade; flex-direction: column; align-items: flex-start; text-align: left; max-width: none; }
	.fn-tools-focus .fn-speed.is-done .fn-speed-gauge { grid-area: gauge; width: min(500px, 46vw); }
	.fn-tools-focus .fn-speed.is-done .fn-speed-results { grid-area: chips; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.fn-tools-focus .fn-speed.is-done .fn-speed-chip { min-width: 0; padding: 8px 10px; }
	.fn-tools-focus .fn-speed.is-done .fn-speed-chip b { font-size: 15px; }
	.fn-tools-focus .fn-speed.is-done .fn-speed-chip.is-hero b { font-size: 18px; }
	.fn-tools-focus .fn-speed.is-done .fn-speed-chip.is-wide { grid-column: 1 / -1; }
	.fn-tools-focus .fn-speed.is-done > .fn-speed-phase,
	.fn-tools-focus .fn-speed.is-done > [data-speed-go],
	.fn-tools-focus .fn-speed.is-done > [data-speed-copy],
	.fn-tools-focus .fn-speed.is-done > .fn-speed-foot { grid-column: 1 / -1; justify-self: center; }
}

/* ===================== 1.2.7 ===================== */
/* Focus mode breathes: the cockpit centres itself in the viewport */
@media (min-width: 760px) {
	.fn-tools-focus { min-height: calc(100vh - 240px); display: flex; flex-direction: column; justify-content: center; }
}

/* Hero chips wear their direction */
.fn-speed-chip.is-downchip b::before { content: "\2193 "; color: #7BD4A8; font-size: .85em; }
.fn-speed-chip.is-upchip b::before { content: "\2191 "; color: #8CC8FF; font-size: .85em; }

/* Pass dots: two little heartbeats under the gauge */
.fn-pass-dots { display: inline-flex; gap: 7px; }
.fn-pass-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background .2s ease, box-shadow .2s ease; }
.fn-pass-dots i.is-run { background: var(--fn-red); animation: fnDotPulse 1s ease-in-out infinite; }
.fn-pass-dots i.is-done { background: #22C55E; }
@keyframes fnDotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 34, 34, .5); } 50% { box-shadow: 0 0 0 5px rgba(226, 34, 34, 0); } }

/* Studio: the reset button wears amber so it can't hide */
.fn-reset-form .fn-btn { border-color: rgba(255, 197, 61, .55); color: #FFD97A; }
.fn-reset-form .fn-btn:hover { background: rgba(255, 197, 61, .1); }

/* ===================== 1.2.9 ===================== */
/* Studio cards: equal height per row, footer buttons pinned to the floor.
   Root cause: a 1.0.4x-era `align-items: start` on the grid let short cards
   shrink, and the card-foot line floated wherever content ended. */
.fn-studio-grid-2 { align-items: stretch; }
.fn-studio-card-2 { flex-wrap: wrap; align-content: space-between; }
.fn-studio-card-2 .fn-card-foot { width: 100%; margin-top: auto; }

/* Brand-logo fallback thumbs (e.g. Demo Site): contained mark with breathing
   room. NOTE: the box shrink-wraps its img (width/height auto !important in the
   newest shell block), so percentage sizing here is circular and resolves to the
   PNG's intrinsic 1000x700 - the 1.2.9 blow-up. Keep the base 128px img sizing
   and add only the cosmetics. */
.fn-thumb-lg.is-brand .fn-thumb-img { object-fit: contain; padding: 10px; box-sizing: border-box; background: #fff; }

/* ===================== 1.2.11 ===================== */
/* My details: a page, not a popup */
.fn-profilepage { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 700px) { .fn-profilepage { grid-template-columns: 1fr; } }
.fn-profile-idcard {
	display: grid; justify-items: center; text-align: center; gap: 5px;
	padding: 24px 16px 18px; border: 1px solid var(--fn-line); border-radius: 16px;
	background: linear-gradient(165deg, rgba(226, 34, 34, .09), rgba(255, 255, 255, .02) 60%);
}
.fn-avatar-xl {
	width: 74px; height: 74px; border-radius: 50%; margin-bottom: 4px;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--fn-display); font-size: 24px; font-weight: 800; letter-spacing: .04em; color: #fff;
	background: linear-gradient(140deg, #E22222, #7A1010);
	box-shadow: 0 10px 26px rgba(226, 34, 34, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.fn-profile-idcard b { font-size: 15px; }
.fn-profile-idcard > span { font-size: 12px; color: var(--fn-dim); word-break: break-all; }
.fn-profile-idcard em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fn-mute); margin-top: 4px; }
.fn-profile-proj { font-style: normal; margin-top: 6px; font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--fn-line); color: var(--fn-silver); }
.fn-profile-editor { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--fn-line); border-radius: 16px; background: rgba(255, 255, 255, .02); }
.fn-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fn-profile-grid { grid-template-columns: 1fr; } }
.fn-profile-editor label { display: grid; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--fn-dim); }
.fn-profile-editor .fn-input { font-size: 14px; }
.fn-profile-sect { border-top: 1px solid var(--fn-line-soft); padding-top: 12px; display: grid; gap: 2px; }
.fn-profile-sect b { font-size: 13px; }
.fn-profile-sect span { font-size: 11.5px; color: var(--fn-dim); text-transform: none; letter-spacing: 0; }
.fn-profile-editor > .fn-btn { justify-self: start; }

/* ===================== 1.2.12 ===================== */
/* Profile inputs: no login-icon indent, honest left alignment */
.fn-profile-editor .fn-input { padding-left: 14px; text-align: left; }

/* Show-password eyes */
.fn-passwrap { position: relative; display: block; }
.fn-passwrap .fn-input { padding-right: 44px; }
.fn-eye {
	all: unset; cursor: pointer; position: absolute; right: 10px; top: 50%;
	transform: translateY(-50%); width: 26px; height: 26px; border-radius: 6px;
	display: flex; align-items: center; justify-content: center; color: var(--fn-mute);
	transition: color .15s ease;
}
.fn-eye:hover { color: #fff; }
.fn-eye.is-on { color: #FF8B8B; }
.fn-eye svg { width: 17px; height: 17px; }

/* ===================== 1.2.14 (mobile-only pass) ===================== */
/* Burger + backdrop + drawer user card exist only on phones */
.fn-burger, .fn-navback, .fn-side-user { display: none; }

@media (max-width: 760px) {
	/* 1) Hamburger: three bars that morph into an X */
	.fn-burger {
		all: unset; display: flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 40px; height: 40px; align-items: center; border-radius: 10px;
		border: 1px solid var(--fn-line); cursor: pointer; flex: none;
		order: 99; /* far right of the topbar */
	}
	/* the JO dropdown folds into the drawer on phones */
	.fn-userdrop:not(.fn-notify) { display: none; }
	body.fn-tabbed .fn-side .fn-side-user, .fn-side-user {
		display: flex; align-items: center; gap: 10px; margin-top: 14px;
		padding: 14px 4px 2px; border-top: 1px solid var(--fn-line-soft);
	}
	.fn-side-user .fn-avatar { width: 36px; height: 36px; flex: none; }
	.fn-side-user-meta { min-width: 0; display: grid; gap: 2px; }
	.fn-side-user-meta b { font-size: 13.5px; }
	.fn-side-user-meta span { font-size: 12px; color: var(--fn-dim); }
	.fn-side-user-meta a { color: #FF8B8B; text-decoration: none; }
	.fn-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fn-text); transition: transform .25s ease, opacity .2s ease; }
	body.fn-nav-open .fn-burger { border-color: rgba(226, 34, 34, .6); }
	body.fn-nav-open .fn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	body.fn-nav-open .fn-burger span:nth-child(2) { opacity: 0; }
	body.fn-nav-open .fn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	/* 2) The sidebar becomes a slide-in drawer; content gets the whole screen.
	   Selectors carry body.fn-tabbed to OUTRANK the shell's
	   `body.fn-tabbed .fn-side { position: static; max-height: 100%; }` -
	   in 1.2.14 that rule won on specificity, leaving only our transform
	   applied: a static sidebar shoved off-flow (the blank) on a scroll-locked
	   page (the freeze). */
	body.fn-tabbed .fn-side, .fn-side {
		position: fixed; top: 0; left: 0; bottom: auto; z-index: 95; margin: 0;
		height: auto; max-height: 100dvh;
		width: min(320px, 84vw);
		border-bottom: 1px solid var(--fn-line);
		border-radius: 0 0 18px 0;
		padding: calc(16px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
		overflow: hidden;
		background: linear-gradient(180deg, #17171B, #101014);
		border-right: 1px solid var(--fn-line);
		box-shadow: 26px 0 60px rgba(0, 0, 0, .55);
		transform: translateX(-108%);
		transition: transform .28s cubic-bezier(.2, .8, .3, 1);
	}
	body.fn-tabbed.fn-nav-open .fn-side, body.fn-nav-open .fn-side { transform: none; }
	.fn-navback { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
	body.fn-nav-open .fn-navback { opacity: 1; pointer-events: auto; }

	/* 3) Notification bell panel: a full-width sheet under the topbar, never clipped */
	.fn-notify .fn-usermenu {
		position: fixed; left: 10px; right: 10px; top: calc(58px + env(safe-area-inset-top));
		width: auto; min-width: 0; max-height: 65vh; overflow-y: auto;
	}

	/* 4) Speed gauge: sized to its container, never the viewport */
	.fn-speed-gauge, .fn-tools-focus .fn-speed-gauge { width: 100%; max-width: 340px; }
	.fn-tools-focus { min-height: 0; justify-content: flex-start; }

	/* 5) Site stats: verdict inlines its icon, dials go 2x2 with real rings */
	.fn-psi-verdict { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; align-items: start; }
	.fn-psi-verdict b { font-size: 15px; line-height: 1.35; }
	.fn-psi-verdict > span { grid-column: 2; font-size: 13px; }
	.fn-psi-gauges { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.fn-psi-gauges .fn-gauge svg { width: 96px; height: 96px; }
	.fn-psi-gauges .fn-gauge { padding: 12px 8px 10px; }
	.fn-gauge-label { font-size: 12px; }
	.fn-psi-col { padding: 14px 12px; }
	.fn-psi-url { word-break: break-all; }

	/* 6) Topbar: bell rides beside the burger */
	.fn-topbar-in { gap: 10px; }
	.fn-user { margin-left: auto; }

	/* 7) Drawer, compressed: everything fits one screen, locked - no scroll inside scroll */
	.fn-side .fn-tracks { display: none; }
	.fn-side .fn-side-card { padding: 12px 12px 10px; margin-bottom: 10px; }
	.fn-side .fn-ring { width: 48px; height: 48px; }
	.fn-side .fn-ring-num { font-size: 11px; }
	.fn-side .fn-side-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
	.fn-side .fn-side-nav a { padding: 9px 10px; font-size: 13.5px; border: 1px solid var(--fn-line-soft); border-radius: 10px; }
	.fn-side .fn-side-user { margin-top: 12px; padding-top: 12px; }
	.fn-side a, .fn-burger, .fn-usermenu a { -webkit-tap-highlight-color: transparent; }
	body.fn-tabbed.fn-nav-open .fn-content { overflow: hidden; }

	/* nav items greet you: staggered slide-in on open */
	body.fn-nav-open .fn-side-nav a { animation: fnNavIn .32s cubic-bezier(.2, .8, .3, 1) both; }
	body.fn-nav-open .fn-side-nav a:nth-child(2) { animation-delay: .03s; }
	body.fn-nav-open .fn-side-nav a:nth-child(3) { animation-delay: .06s; }
	body.fn-nav-open .fn-side-nav a:nth-child(4) { animation-delay: .09s; }
	body.fn-nav-open .fn-side-nav a:nth-child(5) { animation-delay: .12s; }
	body.fn-nav-open .fn-side-nav a:nth-child(6) { animation-delay: .15s; }
	body.fn-nav-open .fn-side-nav a:nth-child(7) { animation-delay: .18s; }
	body.fn-nav-open .fn-side-nav a:nth-child(8) { animation-delay: .21s; }
	body.fn-nav-open .fn-side-nav a:nth-child(9) { animation-delay: .24s; }
	@keyframes fnNavIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

	/* 8) Bell sheet: long to-dos wrap, never clip */
	.fn-notify .fn-usermenu a {
		white-space: normal; align-items: flex-start;
		font-size: 13.5px; line-height: 1.45; padding: 10px 12px;
	}
	.fn-notify .fn-usermenu a + a { border-top: 1px solid var(--fn-line-soft); border-radius: 0 0 8px 8px; }
	.fn-notify .fn-usermenu .fn-notify-dot { margin-top: 6px; }
	.fn-notify .fn-usermenu .fn-notify-title { padding: 4px 12px 6px; }
}

/* ===================== 1.2.18 ===================== */
/* Overview hero: bigger crowned logo, bigger live preview, ghost button retired */
body.fn-tabbed .fn-phero .fn-phero-visual.has-img { width: min(46%, 560px) !important; aspect-ratio: 16 / 10; max-height: 58vh; padding: 0; }
@media (max-width: 900px) { body.fn-tabbed .fn-phero .fn-phero-visual.has-img { width: 100% !important; } }
.fn-preview-refresh.is-busy svg { animation: fnShotSpin 1s linear infinite; }
@keyframes fnShotSpin { to { transform: rotate(360deg); } }
.fn-logorace.is-official { max-width: none; padding: 14px 16px; gap: 16px; }
.fn-logorace.is-official .fn-logorace-thumb { width: 132px; height: 90px; padding: 10px; border-radius: 10px; }
.fn-logorace.is-official .fn-logorace-crown { font-size: 22px; top: -13px; right: -10px; }
.fn-logorace.is-official .fn-logorace-info b { font-size: 14px; color: #FFD97A; }
.fn-logorace.is-official .fn-logorace-info span { font-size: 12.5px; }
.fn-logorace-go { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #FFC53D; text-decoration: none; }
.fn-logorace-go:hover { text-decoration: underline; }

/* Business card at actual size */
.fn-actualwrap { position: fixed; inset: 0; z-index: 130; background: rgba(5, 5, 8, .92); padding: 20px; overflow-y: auto; display: none; }
.fn-actualwrap:not([hidden]) { display: grid; place-items: center; }
.fn-actualwrap .fn-actual-stage figure { transition: opacity .2s ease; }
.fn-actualwrap.is-loading .fn-actual-stage figure { opacity: .12; }
.fn-actual-stage { position: relative; display: grid; justify-items: center; gap: 14px; padding: 26px 30px 20px; border: 1px solid var(--fn-line); border-radius: 18px; background: linear-gradient(180deg, #1B1B20, #121216); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.fn-actual-title { font-size: 16px; }
.fn-actual-sub { font-size: 12.5px; color: var(--fn-silver); margin-top: -8px; }
.fn-actual-stage figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.fn-actual-stage img { width: 3.5in; height: 2in; object-fit: cover; border-radius: .09in; box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); background: #fff; }
.fn-actual-stage figcaption { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fn-dim); }
.fn-actual-note { font-style: normal; font-size: 11px; color: var(--fn-mute); }
.fn-actual-x { all: unset; cursor: pointer; position: absolute; top: 10px; right: 14px; font-size: 22px; line-height: 1; color: var(--fn-dim); padding: 4px 8px; border-radius: 8px; }
.fn-actual-x:hover { color: #fff; background: rgba(255, 255, 255, .07); }
@media (max-width: 400px) { .fn-actual-stage { padding: 22px 12px 16px; } }

/* ===================== 1.2.20 ===================== */
/* Hero preview: the capture fills its frame edge to edge */
body.fn-tabbed .fn-phero .fn-phero-visual.has-img .fn-phero-img {
	width: 100%; height: 100%; object-fit: cover; object-position: top center;
	max-width: none; max-height: none;
}
