/* Entrepreneur's Toolkit — front-end shell styles.
   Module INTERIORS are styled by Mission Control's server-rendered markup
   (Brand-Kit or inherited-theme skin via --fset-* custom properties).
   This file only styles the wrapper + honest state cards. */

/* Typography law (Hans 7/24): modules always carry Mission Control's exact
   type (Inter) by default; in inherit mode the site's theme fonts override
   via the --fset-font-* vars the renderer sets. Never the theme's fonts by
   accident — always one of these two deliberate states. */
.fset-module {
	box-sizing: border-box;
	font-family: var(--fset-font-body, 'Inter', system-ui, -apple-system, sans-serif);
}
.fset-module h1, .fset-module h2, .fset-module h3, .fset-module h4,
.fset-module b, .fset-module strong {
	font-family: var(--fset-font-head, var(--fset-font-body, 'Inter', system-ui, -apple-system, sans-serif));
}

.fset-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	padding: 16px 20px;
	font-size: 14px;
	color: inherit;
	opacity: 0.85;
}
.fset-card--offline { font-style: italic; }

.fset-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.fset-overlay__scrim { position: absolute; inset: 0; background: rgba(10, 10, 20, 0.55); }
.fset-overlay__panel { position: relative; max-width: 420px; width: calc(100% - 32px); max-height: 85vh; overflow-y: auto; border-radius: 6px; background: #fff; box-shadow: 0 24px 64px rgba(0,0,0,0.35); }
.fset-dark .fset-overlay__panel { background: #16172a; }
.fset-overlay__close { position: absolute; top: 10px; right: 12px; z-index: 2; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; opacity: 0.6; }
.fset-overlay__close:hover { opacity: 1; }
.fset-theme-toggle { cursor: pointer; }

/* Sign-in is a trust surface — always FocalShift-branded (doc 06 Part B).
   Gradient lifted from MC's auth chrome. */
.fset-signin {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px 11px 12px;
	border-radius: 6px;
	background: linear-gradient(140deg, #5b21d6, #615dfa, #23d2e2);
	color: #fff;
	text-decoration: none;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(97, 93, 250, 0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fset-signin:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(97, 93, 250, 0.45); }
.fset-signin:focus-visible { outline: 2px solid #615dfa; outline-offset: 3px; }

/* TOOLKIT-BLOCKS-1 — the private-block door.
   Shown ONLY to a signed-in administrator of this site, in place of the sentence that used to
   describe a sign-in with no way to start it. Card geometry is Mission Control's .fp-card
   (padding 20/22; radius 6 since 0.5.7 — founder ruling 3 Oct 2026, sharper corners on every card) so it sits in the same family as the Care cards it stands in for;
   dark is declared BOTH ways — the class the theme toggle sets, and the system preference for a
   site with no toggle placed — because six blocks shipped media-query-only dark and the toggle
   could not reach them. Do not make that mistake again in a new card. */
.fset-card--signin, .fset-card--signin * { box-sizing: border-box; }
.fset-card--signin {
	border: 1px solid rgba(16, 17, 34, 0.10);
	border-radius: 6px;
	padding: 22px 22px 20px;
	background: #fff;
	color: #101122;
	opacity: 1;
	max-width: 460px;
	box-shadow: 0 1px 2px rgba(16, 17, 34, 0.04), 0 8px 28px rgba(16, 17, 34, 0.06);
}
.fset-signin-card__kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color:var(--fsc-violet,#514dfa);
}
.fset-signin-card__title {
	margin: 0 0 8px;
	font-size: 19px;
	line-height: 1.25;
	font-weight: 700;
	color: inherit;
}
.fset-signin-card__body {
	margin: 0 0 18px;
	font-size: 14.2px;
	line-height: 1.55;
	color: rgba(16, 17, 34, 0.68);
}
.fset-signin-card__foot {
	margin: 14px 0 0;
	font-size: 12.4px;
	line-height: 1.45;
	color: rgba(16, 17, 34, 0.48);
}

.fset-dark .fset-card--signin,
.fset-card--signin.fset-dark {
	border-color: rgba(255, 255, 255, 0.10);
	background: #1a1b26;
	color: #f2f3fb;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 28px rgba(0, 0, 0, 0.35);
}
.fset-dark .fset-signin-card__kicker { color: #8f8bff; }
.fset-dark .fset-signin-card__body { color: rgba(242, 243, 251, 0.72); }
.fset-dark .fset-signin-card__foot { color: rgba(242, 243, 251, 0.50); }

@media (prefers-color-scheme: dark) {
	.fset-card--signin:not(.fset-light) {
		border-color: rgba(255, 255, 255, 0.10);
		background: #1a1b26;
		color: #f2f3fb;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 28px rgba(0, 0, 0, 0.35);
	}
	.fset-card--signin:not(.fset-light) .fset-signin-card__kicker { color: #8f8bff; }
	.fset-card--signin:not(.fset-light) .fset-signin-card__body { color: rgba(242, 243, 251, 0.72); }
	.fset-card--signin:not(.fset-light) .fset-signin-card__foot { color: rgba(242, 243, 251, 0.50); }
}

/* 0.5.6 · the not-connected card (FSET_Renderer::connect_card). Shown only to people who can edit the site, so it is a
   state, not an error: the same family and geometry as the private-block card above, a quiet outline button instead of
   the sign-in gradient, and dark declared both ways (the toggle's class and the system preference). */
.fset-card--connect, .fset-card--connect * { box-sizing: border-box; }
.fset-card--connect {
	border: 1px solid rgba(16, 17, 34, 0.10);
	border-radius: 6px;
	padding: 18px 20px;
	background: #fff;
	color: #101122;
	opacity: 1;
	font-style: normal;
	text-align: left;
}
.fset-connect-card__kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(16, 17, 34, 0.55); }
.fset-connect-card__body { margin: 0 0 14px; font-size: 14.2px; line-height: 1.55; color: rgba(16, 17, 34, 0.72); }
.fset-connect-card__btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid rgba(81, 77, 250, 0.45); border-radius: 8px; color: #514dfa; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; }
.fset-connect-card__btn:hover { background: rgba(97, 93, 250, 0.08); color: #4b47dc; }
.fset-connect-card__btn:focus-visible { outline: 2px solid #615dfa; outline-offset: 2px; }
.fset-connect-card__foot { margin: 12px 0 0; font-size: 12.4px; line-height: 1.45; color: rgba(16, 17, 34, 0.48); }
.fset-dark .fset-card--connect, .fset-card--connect.fset-dark { border-color: rgba(255, 255, 255, 0.10); background: #1a1b26; color: #f2f3fb; }
.fset-dark .fset-connect-card__kicker { color: rgba(242, 243, 251, 0.55); }
.fset-dark .fset-connect-card__body { color: rgba(242, 243, 251, 0.72); }
.fset-dark .fset-connect-card__btn { border-color: rgba(174, 171, 255, 0.45); color: #aeabff; }
.fset-dark .fset-connect-card__foot { color: rgba(242, 243, 251, 0.50); }
@media (prefers-color-scheme: dark) {
	.fset-card--connect:not(.fset-light) { border-color: rgba(255, 255, 255, 0.10); background: #1a1b26; color: #f2f3fb; }
	.fset-card--connect:not(.fset-light) .fset-connect-card__kicker { color: rgba(242, 243, 251, 0.55); }
	.fset-card--connect:not(.fset-light) .fset-connect-card__body { color: rgba(242, 243, 251, 0.72); }
	.fset-card--connect:not(.fset-light) .fset-connect-card__btn { border-color: rgba(174, 171, 255, 0.45); color: #aeabff; }
	.fset-card--connect:not(.fset-light) .fset-connect-card__foot { color: rgba(242, 243, 251, 0.50); }
}

/* 🔴 CAUGHT BY THE 402 pt SCREENSHOT, NOT BY READING THE CSS. `width:100%` on the button
   overflowed the card by its own 32 px of horizontal padding, because .fset-module's
   box-sizing applies to the module element and NOT to its descendants — so the card was
   wider than the phone and the copy was cut off at the right edge. The rule above fixes it
   at the root (border-box on the card and everything in it). Do not remove that rule while
   this one exists. */
@media (max-width: 460px) {
	.fset-card--signin { padding: 18px 16px 16px; }
	.fset-signin-card__title { font-size: 17.5px; }
	.fset-signin { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.fset-signin { transition: none; }
	.fset-signin:hover { transform: none; }
}
.fset-signin__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.18);
	font-weight: 800;
	font-size: 15px;
}

.fset-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(97, 93, 250, 0.35);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 13px;
}
/* TOOLKIT-047 — the signed-in member's face on the chip (H2). Sized in the markup as well as
   here, so it does not reflow the chip before the stylesheet lands. */
.fset-chip__avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.fset-chip__avatar--initials { background: var(--fset-brand, #615dfa); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.fset-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #16c43b; }
.fset-chip__name { font-weight: 600; }
.fset-chip__state { opacity: 0.6; font-size: 12px; }
.fset-chip__out { text-decoration: none; opacity: 0.5; font-size: 15px; line-height: 1; color: inherit; }
.fset-chip__out:hover { opacity: 1; }
