/* GoalQuest — liquid glass UI.
   Every rule is scoped to GoalQuest's own IDs (#goalquest, #gq-modal, #gq-fab) so theme / Elementor
   button and input styles can't leak in. "$" below = :is(#goalquest, #gq-modal, #gq-fab). */

/* ---------- tokens ---------- */
:is(#goalquest, #gq-modal, #gq-fab) {
	--bg: #f3f4ef;
	--glass: rgba(255, 255, 255, .66);
	--glass-2: rgba(255, 255, 255, .86);
	--glass-in: rgba(0, 0, 0, .035);
	--stroke: rgba(17, 17, 17, .08);
	--stroke-2: rgba(17, 17, 17, .22);
	--ink: #131313;
	--muted: rgba(19, 19, 19, .6);
	--faint: rgba(19, 19, 19, .36);
	--accent: #a3e635;
	--accent-2: #6fd76f;
	--accent-ink: #10140a;
	--accent-text: #3b7a0f;
	--warn: #e8a400;
	--bad: #e5484d;
	--fire: #ff7a1a;
	--track: rgba(0, 0, 0, .07);
	--sheet: rgba(250, 250, 247, .9);
	--shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 32px -20px rgba(20, 30, 10, .35);
	--radius: 22px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:is(#goalquest, #gq-modal, #gq-fab) {
		--bg: #0c0d10;
		--glass: rgba(255, 255, 255, .055);
		--glass-2: rgba(255, 255, 255, .09);
		--glass-in: rgba(255, 255, 255, .05);
		--stroke: rgba(255, 255, 255, .1);
		--stroke-2: rgba(255, 255, 255, .32);
		--ink: #f4f4f2;
		--muted: rgba(244, 244, 242, .62);
		--faint: rgba(244, 244, 242, .34);
		--accent: #b5f04c;
		--accent-2: #6ee7a0;
		--accent-ink: #0f1408;
		--accent-text: #c3f36a;
		--warn: #fbbf24;
		--bad: #ff6b6b;
		--track: rgba(255, 255, 255, .09);
		--sheet: rgba(24, 25, 29, .86);
		--shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 16px 40px -24px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}

/* explicit choice (Account → Appearance / header toggle) beats the phone setting */
html[data-gq-theme="light"] :is(#goalquest, #gq-modal, #gq-fab) {
	--bg: #f3f4ef;
	--glass: rgba(255, 255, 255, .66);
	--glass-2: rgba(255, 255, 255, .86);
	--glass-in: rgba(0, 0, 0, .035);
	--stroke: rgba(17, 17, 17, .08);
	--stroke-2: rgba(17, 17, 17, .22);
	--ink: #131313;
	--muted: rgba(19, 19, 19, .6);
	--faint: rgba(19, 19, 19, .36);
	--accent: #a3e635;
	--accent-2: #6fd76f;
	--accent-ink: #10140a;
	--accent-text: #3b7a0f;
	--warn: #e8a400;
	--bad: #e5484d;
	--fire: #ff7a1a;
	--track: rgba(0, 0, 0, .07);
	--sheet: rgba(250, 250, 247, .9);
	--shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 32px -20px rgba(20, 30, 10, .35);
	--radius: 22px;
	color-scheme: light;
}
html[data-gq-theme="dark"] :is(#goalquest, #gq-modal, #gq-fab) {
	--bg: #0c0d10;
	--glass: rgba(255, 255, 255, .055);
	--glass-2: rgba(255, 255, 255, .09);
	--glass-in: rgba(255, 255, 255, .05);
	--stroke: rgba(255, 255, 255, .1);
	--stroke-2: rgba(255, 255, 255, .32);
	--ink: #f4f4f2;
	--muted: rgba(244, 244, 242, .62);
	--faint: rgba(244, 244, 242, .34);
	--accent: #b5f04c;
	--accent-2: #6ee7a0;
	--accent-ink: #0f1408;
	--accent-text: #c3f36a;
	--warn: #fbbf24;
	--bad: #ff6b6b;
	--track: rgba(255, 255, 255, .09);
	--sheet: rgba(24, 25, 29, .86);
	--shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 16px 40px -24px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

/* ---------- reset: beat theme styles on our own elements ---------- */
:is(#goalquest, #gq-modal, #gq-fab) button, :is(#goalquest, #gq-modal, #gq-fab) input, :is(#goalquest, #gq-modal, #gq-fab) select, :is(#goalquest, #gq-modal, #gq-fab) textarea {
	-webkit-appearance: none; appearance: none; box-sizing: border-box;
	background: none; border: 0; border-radius: 0; box-shadow: none; outline: 0;
	color: inherit; font: inherit; letter-spacing: normal; line-height: inherit; text-transform: none;
	text-decoration: none; text-shadow: none; text-align: inherit;
	white-space: normal; word-spacing: normal; word-break: normal; vertical-align: baseline; overflow: visible; float: none;
	margin: 0; padding: 0; min-height: 0; min-width: 0; width: auto; height: auto; max-width: none;
	transition: background-color .15s, border-color .15s, color .15s, opacity .15s, transform .15s;
}
:is(#goalquest, #gq-modal, #gq-fab) button { cursor: pointer; }
:is(#goalquest, #gq-modal, #gq-fab) button:hover, :is(#goalquest, #gq-modal, #gq-fab) button:focus, :is(#goalquest, #gq-modal, #gq-fab) button:active { background: none; color: inherit; box-shadow: none; border-color: transparent; }
:is(#goalquest, #gq-modal, #gq-fab) button:focus-visible, :is(#goalquest, #gq-modal, #gq-fab) input:focus-visible, :is(#goalquest, #gq-modal, #gq-fab) select:focus-visible, :is(#goalquest, #gq-modal, #gq-fab) textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:is(#goalquest, #gq-modal, #gq-fab) *, :is(#goalquest, #gq-modal, #gq-fab) *::before, :is(#goalquest, #gq-modal, #gq-fab) *::after { box-sizing: border-box; }
:is(#goalquest, #gq-modal, #gq-fab) h2, :is(#goalquest, #gq-modal, #gq-fab) h3, :is(#goalquest, #gq-modal, #gq-fab) h4, :is(#goalquest, #gq-modal, #gq-fab) p, :is(#goalquest, #gq-modal, #gq-fab) ul, :is(#goalquest, #gq-modal, #gq-fab) li, :is(#goalquest, #gq-modal, #gq-fab) details, :is(#goalquest, #gq-modal, #gq-fab) summary { margin: 0; padding: 0; }
:is(#goalquest, #gq-modal, #gq-fab) h2, :is(#goalquest, #gq-modal, #gq-fab) h3, :is(#goalquest, #gq-modal, #gq-fab) h4, :is(#goalquest, #gq-modal, #gq-fab) strong, :is(#goalquest, #gq-modal, #gq-fab) b, :is(#goalquest, #gq-modal, #gq-fab) a, :is(#goalquest, #gq-modal, #gq-fab) p, :is(#goalquest, #gq-modal, #gq-fab) li, :is(#goalquest, #gq-modal, #gq-fab) span, :is(#goalquest, #gq-modal, #gq-fab) small { color: inherit; font-family: inherit; text-transform: none; text-shadow: none; }
:is(#goalquest, #gq-modal, #gq-fab) h2, :is(#goalquest, #gq-modal, #gq-fab) h3, :is(#goalquest, #gq-modal, #gq-fab) h4 { line-height: 1.25; letter-spacing: inherit; }
:is(#goalquest, #gq-modal, #gq-fab) a { text-decoration: none; }
:is(#goalquest, #gq-modal, #gq-fab) small { color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) ul { list-style: none; }
:is(#goalquest, #gq-modal, #gq-fab) code { font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--glass-in); color: var(--ink); padding: 3px 5px; border-radius: 6px; }
:is(#goalquest, #gq-modal, #gq-fab) [hidden] { display: none !important; }

/* ---------- page ---------- */
#goalquest {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px; line-height: 1.45; color: var(--ink);
	max-width: 980px; margin: 0 auto; min-height: 100vh;
	padding: 16px 16px calc(112px + env(safe-area-inset-bottom));
	background:
		radial-gradient(520px 380px at 0% -4%, rgba(163, 230, 53, .22), transparent 62%),
		radial-gradient(460px 380px at 104% 8%, rgba(124, 92, 255, .2), transparent 60%),
		radial-gradient(520px 420px at 50% 112%, rgba(110, 231, 160, .14), transparent 60%),
		var(--bg);
	-webkit-font-smoothing: antialiased;
}
/* The whole browser page follows the app's light/dark, not only the app column.
   :has() catches any theme/Elementor wrapper; the id makes it beat kit/theme body colours. */
html:has(#goalquest), html body:has(#goalquest) {
	background: #f3f4ef;
}
html body:has(#goalquest) {
	background:
		radial-gradient(620px 420px at 0% -4%, rgba(163, 230, 53, .22), transparent 62%),
		radial-gradient(560px 420px at 104% 6%, rgba(124, 92, 255, .2), transparent 60%),
		#f3f4ef;
	background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) {
	html:not([data-gq-theme="light"]):has(#goalquest) { background: #0c0d10; }
	html:not([data-gq-theme="light"]) body:has(#goalquest) {
		background:
			radial-gradient(620px 420px at 0% -4%, rgba(163, 230, 53, .22), transparent 62%),
			radial-gradient(560px 420px at 104% 6%, rgba(124, 92, 255, .2), transparent 60%),
			#0c0d10;
		background-repeat: no-repeat;
	}
}
html[data-gq-theme="dark"]:has(#goalquest) { background: #0c0d10; }
html[data-gq-theme="dark"] body:has(#goalquest) {
	background:
		radial-gradient(620px 420px at 0% -4%, rgba(163, 230, 53, .22), transparent 62%),
		radial-gradient(560px 420px at 104% 6%, rgba(124, 92, 255, .2), transparent 60%),
		#0c0d10;
	background-repeat: no-repeat;
}
/* the column itself goes see-through so there's no visible box edge on wide screens */
body:has(#goalquest) #goalquest {
	background:
		radial-gradient(520px 420px at 50% 112%, rgba(110, 231, 160, .14), transparent 60%);
}

:is(#goalquest, #gq-modal, #gq-fab) small { display: block; font-size: 12.5px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-loading { color: var(--muted); text-align: center; padding: 48px 0; }

/* glass surface */
:is(#goalquest, #gq-modal, #gq-fab) .gq-card, :is(#goalquest, #gq-modal, #gq-fab) .gq-hero > div, :is(#goalquest, #gq-modal, #gq-fab) .gq-auth {
	background: var(--glass);
	-webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow);
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-card { padding: 18px; margin-bottom: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-card > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-card > header > span { color: var(--muted); font-size: 13px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-card h3 i { color: var(--muted); font-weight: 400; }

/* ---------- header ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-top { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-top small { margin: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-top strong { display: block; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-avatar {
	width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 800; font-size: 16px; color: var(--accent-ink); background: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---------- hero ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-hero { display: grid; grid-template-columns: 1.7fr 1fr .8fr; gap: 14px; margin-bottom: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-hero > div { padding: 16px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-level { display: flex; gap: 16px; align-items: center; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-level-info { flex: 1; min-width: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-level-info strong { display: block; font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-level-info small { margin-top: 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-level-info small + small { margin-top: 2px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-stage { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 2px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-linkbtn { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--stroke-2); padding-bottom: 1px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-linkbtn:hover { border-color: var(--accent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-card > header .gq-linkbtn { margin: 0; }

:is(#goalquest, #gq-modal, #gq-fab) .gq-streak { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-streak > i { font-size: 36px; color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-streak.lit > i { color: var(--fire); filter: drop-shadow(0 4px 14px rgba(255, 122, 26, .5)); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-streak strong { display: block; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-freezes { margin-left: auto; display: flex; gap: 2px; font-size: 16px; color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-freezes .on { color: #6cc4ff; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-streak .gq-warn, :is(#goalquest, #gq-modal, #gq-fab) .gq-best { flex-basis: 100%; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-warn { font-size: 12.5px; font-weight: 600; color: var(--bad); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-today { display: flex; flex-direction: column; justify-content: center; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-today i { color: var(--warn); font-size: 22px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-today strong { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }

/* bars */
:is(#goalquest, #gq-modal, #gq-fab) .gq-bar { position: relative; height: 8px; background: var(--track); border-radius: 99px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px -2px color-mix(in srgb, var(--accent) 60%, transparent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-marker { position: absolute; top: -5px; width: 2px; height: 18px; background: var(--ink); opacity: .5; border-radius: 2px; transform: translateX(-1px); }

/* level badge */
:is(#goalquest, #gq-modal, #gq-fab) .gq-badge {
	position: absolute; right: -8px; top: -8px; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 13px;
	display: grid; place-content: center; text-align: center;
	background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 800; line-height: 1;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent);
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-badge small { display: block; font-size: 8.5px; letter-spacing: .12em; font-weight: 800; color: var(--accent-ink); opacity: .7; }

/* ---------- companion + tree ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-mon, :is(#goalquest, #gq-modal, #gq-fab) .gq-tree { position: relative; flex: none; width: 128px; height: 128px; border-radius: 20px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mon { background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tree { background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mon svg, :is(#goalquest, #gq-modal, #gq-fab) .gq-tree svg { width: 100%; height: 100%; display: block; overflow: visible; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tree .gq-canopy { transform-box: view-box; transform-origin: 100px 182px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tree.lush .gq-canopy { animation: gq-sway 5s ease-in-out infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tree.dry svg { filter: saturate(.75); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tree.gq-pop svg { animation: gq-pop .9s cubic-bezier(.2, 1.6, .4, 1); }

:is(#goalquest, #gq-modal, #gq-fab) .gq-bob, :is(#goalquest, #gq-modal, #gq-fab) .gq-eyes, :is(#goalquest, #gq-modal, #gq-fab) .gq-flick, :is(#goalquest, #gq-modal, #gq-fab) .gq-leaf, :is(#goalquest, #gq-modal, #gq-fab) .gq-pulse, :is(#goalquest, #gq-modal, #gq-fab) .gq-twinkle, :is(#goalquest, #gq-modal, #gq-fab) .gq-aura, :is(#goalquest, #gq-modal, #gq-fab) .gq-tear, :is(#goalquest, #gq-modal, #gq-fab) .gq-wobble, :is(#goalquest, #gq-modal, #gq-fab) .gq-wave { transform-box: fill-box; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-bob { transform-origin: 50% 100%; animation: gq-bob 2.6s ease-in-out infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mon.happy .gq-bob { animation: gq-hop 1.8s ease-in-out infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mon.sad .gq-bob { animation: gq-slump 4s ease-in-out infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mon.sad svg { filter: saturate(.55); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-eyes { transform-origin: center; animation: gq-blink 4.2s infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-flick { transform-origin: 50% 100%; animation: gq-flick .9s ease-in-out infinite alternate; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-leaf { transform-origin: 50% 100%; animation: gq-leaf 3s ease-in-out infinite alternate; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pulse, :is(#goalquest, #gq-modal, #gq-fab) .gq-aura { transform-origin: center; animation: gq-pulse 1.6s ease-in-out infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-aura { animation-duration: 3s; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-twinkle { transform-origin: center; animation: gq-twinkle 1.8s ease-in-out infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tear { animation: gq-tear 2.4s ease-in infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-wobble { transform-origin: 50% 100%; animation: gq-wobble 2.8s ease-in-out infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-wave { transform-origin: 50% 0%; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mon.happy .gq-wave { animation: gq-wave 1.2s ease-in-out infinite alternate; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-cheer svg { animation: gq-cheer .85s cubic-bezier(.3, 1.6, .5, 1); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-evolve::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%); animation: gq-flash 1.4s ease-out forwards; pointer-events: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-evolve svg { animation: gq-evolve 1.4s cubic-bezier(.2, 1.4, .4, 1); }

/* companion picker */
:is(#goalquest, #gq-modal, #gq-fab) .gq-choose { display: block !important; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-choose-form { display: grid; gap: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-choose-form strong { font-size: 18px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pick { position: relative; display: block; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pick input { position: absolute; opacity: 0; pointer-events: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pick > span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; height: 100%; padding: 10px 8px 12px; border: 1px solid var(--stroke-2); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pick svg { width: 84px; height: 84px; }
/* figure packs: a picture per stage, same moods and moves as the built-in creatures */
:is(#goalquest, #gq-modal, #gq-fab) .gq-figmon { display: grid; place-items: center; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-figmon .gq-bob, :is(#goalquest, #gq-modal, #gq-fab) .gq-figprev { width: 100%; height: 100%; display: grid; place-items: end center; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-figmon img, :is(#goalquest, #gq-modal, #gq-fab) .gq-figprev img { width: 88%; height: 88%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-figprev { width: 84px; height: 84px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mon.sad img { filter: saturate(.55) brightness(.92); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-cheer img { animation: gq-cheer .85s cubic-bezier(.3, 1.6, .5, 1); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-evolve img { animation: gq-evolve 1.4s cubic-bezier(.2, 1.4, .4, 1); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pick .gq-tree { width: 84px; height: 84px; background: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pick b { font-size: 14px; font-weight: 700; color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pick small { font-size: 11.5px; line-height: 1.35; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pick input:checked + span { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 9px 7px 11px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-choose-row { display: flex; gap: 8px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-choose-row input { flex: 1; }

/* ---------- chips / filters ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-viewtabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 99px; background: var(--glass-in); border: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-viewtab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); background: transparent; border: 0; white-space: nowrap; transition: background .15s, color .15s; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-viewtab:hover { color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-viewtab.on, :is(#goalquest, #gq-modal, #gq-fab) .gq-viewtab.on:hover { background: var(--accent); color: var(--accent-ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-viewtab span { font-size: 11.5px; font-weight: 700; min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--stroke); color: inherit; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-viewtab.on span { background: rgba(0, 0, 0, .12); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-filters { display: flex; gap: 8px; overflow-x: auto; margin: -2px -18px 14px; padding: 2px 18px; scrollbar-width: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-filters::-webkit-scrollbar { display: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-filter {
	flex: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
	padding: 7px 14px; border-radius: 99px; border: 1px solid var(--stroke-2);
	font-size: 13.5px; font-weight: 500; color: var(--ink);
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-filter:hover { border-color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-filter.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-filter-new { border-style: dashed; color: var(--muted); }

/* ---------- tasks ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-tgroup + .gq-tgroup { margin-top: 18px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tgroup h4 { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tgroup h4 span { font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 1px 7px; border-radius: 99px; background: var(--glass-in); color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tgroup.overdue h4 { color: var(--bad); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tgroup ul { list-style: none; margin: 0; padding: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-task { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tgroup li:first-child { border-top: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-check {
	width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: -1px;
	border: 2px solid var(--stroke-2); color: transparent; font-size: 16px;
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-task.p2 .gq-check { border-color: var(--warn); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-task.p3 .gq-check { border-color: var(--bad); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-check:hover { color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-task.done .gq-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-task.pending { opacity: .55; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tbody { min-width: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ttitle { display: block; width: 100%; max-width: 100%; text-align: left; font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--ink); white-space: normal; overflow-wrap: anywhere; word-break: normal; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ttitle:hover { color: var(--ink); opacity: .8; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-task.done .gq-ttitle { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tmeta .gq-chip:first-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chip.bad { color: var(--bad); font-weight: 600; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chip.good { color: var(--accent-text); font-weight: 600; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tright { display: flex; align-items: center; gap: 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-txp { font-size: 13px; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--muted); border: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-icon:hover { color: var(--ink); border-color: var(--stroke-2); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps { margin-top: 6px; font-size: 13px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps summary { cursor: pointer; list-style: none; display: inline-flex; font-size: 12.5px; font-weight: 600; color: var(--ink); opacity: .75; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps summary::-webkit-details-marker { display: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps summary::after { content: " ›"; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps[open] summary::after { content: " ⌄"; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps summary { align-items: center; gap: 7px; font-size: 11.5px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-subprog { position: relative; width: 34px; height: 4px; border-radius: 99px; background: var(--stroke); overflow: hidden; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-subprog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); transition: width .25s ease; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps.all summary { color: var(--accent-text); opacity: 1; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps ul { margin: 4px 0 0; padding: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps li { margin: 0; list-style: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sub { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 5px 2px; text-align: left; font-size: 12.5px; line-height: 1.35; color: var(--ink); background: none; border: 0; white-space: normal; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-subcheck { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--stroke-2); display: grid; place-items: center; font-size: 11px; color: transparent; transition: background .15s, border-color .15s; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-subtext { min-width: 0; overflow-wrap: anywhere; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sub:hover .gq-subcheck { border-color: var(--accent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sub.on .gq-subcheck { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sub.on .gq-subtext { color: var(--faint); text-decoration: line-through; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-empty { color: var(--muted); padding: 6px 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-empty.good { color: var(--accent-text); font-weight: 600; }

/* ---------- weekly + chart ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-weekly p { margin-bottom: 12px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-weekly p strong { font-size: 28px; color: var(--ink); letter-spacing: -.02em; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-inline { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-inline label { flex: 1; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chart { width: 100%; height: 120px; display: block; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chart rect { fill: var(--accent); opacity: .5; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chart rect.empty { fill: var(--track); opacity: 1; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chart rect.today { fill: var(--accent); opacity: 1; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- goals ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-goals { display: grid; gap: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goal { border: 1px solid var(--stroke); background: var(--glass-in); border-radius: 16px; padding: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goal header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goal h4 { font-size: 16px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-skill { flex: none; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--stroke-2); color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goal footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goal footer .gq-icon { margin-left: auto; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goalbtns { margin-left: auto; display: inline-flex; gap: 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goalbtns .gq-icon { margin-left: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-goalbtns { display: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pill.good { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pill.ok { color: var(--ink); background: var(--glass-in); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pill.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pill.muted { color: var(--muted); background: var(--glass-in); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pack { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; width: 100%; margin-top: 10px; padding: 13px 15px; border-radius: 16px; border: 1px dashed var(--stroke-2); font-weight: 650; color: var(--ink); text-align: left; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pack:hover { border-color: var(--accent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pack small { display: inline; font-weight: 400; }

/* ---------- recent ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-recent { list-style: none; margin: 0; padding: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-recent li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-recent li:first-child { border-top: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-xp { flex: none; min-width: 48px; text-align: center; font-size: 13px; font-weight: 700; color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 10px; padding: 4px 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-rt { min-width: 0; overflow-wrap: anywhere; }

/* ---------- buttons + fields ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
	padding: 11px 18px; border-radius: 99px; font-size: 14.5px; font-weight: 650;
	background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-btn:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.06); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-btn.small { padding: 8px 14px; font-size: 13.5px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-btn.ghost, :is(#goalquest, #gq-modal, #gq-fab) .gq-btn.ghost:hover { background: transparent; color: var(--ink); border: 1px solid var(--stroke-2); filter: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-btn.ghost:hover { border-color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-btn.danger, :is(#goalquest, #gq-modal, #gq-fab) .gq-btn.danger:hover { background: transparent; border-color: transparent; color: var(--bad); padding-left: 4px; padding-right: 4px; filter: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-btn:disabled, :is(#goalquest, #gq-modal, #gq-fab) .gq-icon:disabled { opacity: .5; cursor: progress; }
:is(#goalquest, #gq-modal, #gq-fab) label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) label small { display: inline; font-weight: 400; color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) input, :is(#goalquest, #gq-modal, #gq-fab) select, :is(#goalquest, #gq-modal, #gq-fab) textarea {
	display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 12px;
	font-size: 15.5px; font-weight: 400; color: var(--ink);
	background: var(--glass-in); border: 1px solid var(--stroke);
}
:is(#goalquest, #gq-modal, #gq-fab) input::placeholder, :is(#goalquest, #gq-modal, #gq-fab) textarea::placeholder { color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) input:focus, :is(#goalquest, #gq-modal, #gq-fab) select:focus, :is(#goalquest, #gq-modal, #gq-fab) textarea:focus { border-color: var(--accent); background-color: var(--glass-in); }
:is(#goalquest, #gq-modal, #gq-fab) select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
:is(#goalquest, #gq-modal, #gq-fab) input[type=checkbox], :is(#goalquest, #gq-modal, #gq-fab) input[type=radio] { width: auto; display: inline; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-hint { font-size: 12.5px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-hintline { color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-hintline code { font-size: 11px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-preview { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 18px; }

/* ---------- sheet ---------- */
#gq-modal {
	border: 1px solid var(--stroke); padding: 0; border-radius: 26px; color: var(--ink);
	width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto;
	background: var(--sheet); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
	box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45;
}
#gq-modal::backdrop { background: rgba(8, 8, 12, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sheet { display: grid; gap: 14px; padding: 20px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sheet header { display: flex; justify-content: space-between; align-items: center; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sheet h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sheet footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sheet footer > span { flex: 1; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-field .gq-btn { margin-top: 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-segs { display: flex; gap: 6px; margin-top: 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-seg { flex: 1; position: relative; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-seg input { position: absolute; opacity: 0; pointer-events: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-seg span { display: block; text-align: center; padding: 9px 4px; border-radius: 12px; border: 1px solid var(--stroke-2); font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-seg.p1 input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-seg.p2 input:checked + span { background: var(--warn); border-color: var(--warn); color: #1a1300; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-seg.p3 input:checked + span { background: var(--bad); border-color: var(--bad); color: #fff; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-more summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-more summary small { display: inline; font-weight: 400; color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pwa-slot #gq-pwa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pwa-slot .lpwa-push, :is(#goalquest, #gq-modal, #gq-fab) .gq-pwa-slot .lpwa-pill, :is(#goalquest, #gq-modal, #gq-fab) .gq-pwa-slot .lpwa-install {
	position: static; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px;
	border: 1px solid var(--stroke-2); background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: none;
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-pwa-slot svg { width: 16px; height: 16px; }

/* ---------- floating add bar ---------- */
#gq-fab {
	position: fixed; z-index: 9990; left: 50%; transform: translateX(-50%);
	bottom: calc(16px + env(safe-area-inset-bottom));
	display: flex; gap: 6px; padding: 6px; border-radius: 99px;
	background: color-mix(in srgb, var(--bg) 55%, transparent);
	-webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid var(--stroke-2);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 16px 36px -14px rgba(0, 0, 0, .55);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
#gq-fab button { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 99px; font-size: 15px; font-weight: 650; line-height: 1; }
#gq-fab .gq-fab-goal { color: var(--ink); border: 1px solid var(--stroke-2); }
#gq-fab .gq-fab-goal:hover { border-color: var(--ink); }
#gq-fab .gq-fab-task { background: var(--accent); color: var(--accent-ink); }
#gq-fab i { font-size: 18px; }
body.gq-app .lpwa-float { display: none !important; }
#gq-fab { transition: opacity .2s, transform .25s; }
body.gq-sorting #gq-fab { opacity: 0; pointer-events: none; transform: translate(-50%, 24px); }
#gq-fab .gq-fab-desk { display: flex; gap: 6px; }
#gq-fab .gq-nav { display: none; }

/* ---------- phone tab bar: Home · Tasks · + · Goals · Stats ---------- */
@media (max-width: 720px) {
	#gq-fab { left: 10px; right: 10px; transform: none; padding: 6px 6px; border-radius: 26px; }
	body.gq-sorting #gq-fab { transform: translateY(24px); }
	#gq-fab .gq-fab-desk { display: none; }
	#gq-fab .gq-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
	#gq-fab .gq-navbtn {
		position: relative; flex: 1; flex-direction: column; justify-content: center; gap: 3px;
		padding: 6px 2px 5px; border-radius: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
		color: var(--muted); background: none; border: 0; min-width: 0;
	}
	#gq-fab .gq-navbtn i { font-size: 21px; line-height: 1; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 99px; transition: background .15s, color .15s; }
	#gq-fab .gq-navbtn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	#gq-fab .gq-navbtn.on { color: var(--ink); }
	#gq-fab .gq-navbtn.on i { background: var(--accent); color: var(--accent-ink); }
	#gq-fab .gq-navbadge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-size: 10px; font-weight: 800; font-style: normal; background: var(--bad); color: #fff; }
	#gq-fab .gq-navbadge[hidden] { display: none; }
	#gq-fab .gq-navadd { position: relative; flex: none; margin: 0 4px; }
	#gq-fab .gq-navplus { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .2s; }
	#gq-fab .gq-navplus i { font-size: 26px; }
	#gq-fab .gq-navplus { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
	#gq-fab .gq-navplus:hover, #gq-fab .gq-navplus:focus, #gq-fab .gq-navplus:active { background: var(--accent); color: var(--accent-ink); }
	#gq-fab .gq-navbtn:hover, #gq-fab .gq-navbtn:focus { background: none; }
	#gq-fab .gq-addmenu button:hover, #gq-fab .gq-addmenu button:focus { background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink); }
	#gq-fab .gq-addmenu button:last-child:hover, #gq-fab .gq-addmenu button:last-child:focus { background: var(--accent); color: var(--accent-ink); }
	#gq-fab .gq-navplus.on { transform: rotate(45deg); }
	#gq-fab .gq-addmenu { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; }
	#gq-fab .gq-addmenu[hidden] { display: none; }
	#gq-fab .gq-addmenu button {
		white-space: nowrap; justify-content: flex-start; padding: 12px 18px; font-size: 15px;
		background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink); border: 1px solid var(--stroke-2);
		-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
	}
	#gq-fab .gq-addmenu button:last-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
	/* one section per tab */
	#goalquest[data-tab="home"] [data-pane]:not([data-pane="home"]),
	#goalquest[data-tab="tasks"] [data-pane]:not([data-pane="tasks"]),
	#goalquest[data-tab="goals"] [data-pane]:not([data-pane="goals"]),
	#goalquest[data-tab="stats"] [data-pane]:not([data-pane="stats"]) { display: none; }
	#goalquest { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
	.gq-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- toast (outside our containers: plain class) ---------- */
.gq-toast {
	position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 99999;
	transform: translate(-50%, 16px); opacity: 0; transition: all .3s;
	display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 99px;
	font: 600 14px/1.3 "Inter", system-ui, sans-serif; color: #f4f4f2;
	background: rgba(22, 23, 27, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .6);
}
.gq-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gq-toast.xp, .gq-toast.levelup { background: #b5f04c; color: #0f1408; border-color: transparent; }
.gq-toast.levelup { font-size: 15.5px; padding: 14px 20px; }
.gq-toast.error { background: #e5484d; color: #fff; border-color: transparent; }

/* ---------- login / sign-up ---------- */
#goalquest.gq-guest { display: grid; place-items: center; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-auth { width: 100%; max-width: 390px; padding: 30px 22px; text-align: center; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-auth-logo { display: block; margin: 0 auto 14px; border-radius: 18px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-auth h2 { font-size: 24px; letter-spacing: -.02em; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-auth-sub { color: var(--muted); margin: 6px 0 18px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 99px; border: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tabs button { flex: 1; padding: 9px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-auth-form { display: grid; gap: 14px; text-align: left; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-auth-go { width: 100%; padding: 13px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-auth-msg { color: var(--bad); font-size: 13px; font-weight: 600; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-auth-lost, :is(#goalquest, #gq-modal, #gq-fab) .gq-auth-note { font-size: 13px; color: var(--muted); text-align: center; text-decoration: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-hp { position: absolute !important; left: -9999px !important; }

/* ---------- reorder mode ---------- */
:is(#goalquest, #gq-modal, #gq-fab) [data-sortlist] { position: relative; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-head-r { display: flex; align-items: center; gap: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ro-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-drag {
	display: none; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px;
	border: 1px solid var(--stroke-2); color: var(--ink); font-size: 18px; font-weight: 400;
	cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-drag:active { cursor: grabbing; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering { border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-drag { display: grid; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-tright, :is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-steps, :is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-goal footer .gq-icon { display: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-check, :is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-ttitle { pointer-events: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-check { opacity: .45; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-tgroup.done .gq-task .gq-drag { visibility: hidden; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-tgroup h4 { margin-bottom: 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-tgroup h4 .gq-drag { margin-left: auto; width: 30px; height: 30px; font-size: 16px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-reordering .gq-goal header .gq-drag { margin-left: 4px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-task { position: relative; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-dragging {
	z-index: 20; transition: none !important; border-radius: 4px;
	background: var(--sheet);
	box-shadow: 0 0 0 10px var(--sheet), 0 0 0 11px var(--accent), 0 22px 44px -14px rgba(0, 0, 0, .6);
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-task.gq-dragging { border-top-color: transparent; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-dragging .gq-drag { cursor: grabbing; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.gq-noselect, body.gq-noselect * { -webkit-user-select: none !important; user-select: none !important; }

/* ---------- reminder time ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-timewrap { position: relative; display: block; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-timewrap input { padding-right: 40px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-40%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-clear:hover { color: var(--ink); background: var(--glass-in); }
/* Safari on Mac paints today's date (and Chrome "mm/dd/yyyy") into an EMPTY date field, which looks
   like a value you can't delete. While empty and not focused, hide that and say "None" instead. */
:is(#goalquest, #gq-modal, #gq-fab) .gq-timewrap.is-empty:not(:focus-within) input::-webkit-datetime-edit { color: transparent; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-timewrap.is-empty:not(:focus-within) input { color: transparent; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-timewrap.is-empty:not(:focus-within)::after {
	content: attr(data-empty); position: absolute; left: 14px; top: 50%; transform: translateY(-46%);
	font-size: 15.5px; font-weight: 400; color: var(--faint); pointer-events: none;
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-chip.gq-time { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chip.gq-time.next { color: var(--accent-text); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-chip.gq-time.bad { color: var(--bad); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-task.done .gq-chip.gq-time { color: var(--faint); font-weight: 400; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-drag.gq-locked { cursor: default; opacity: .45; border-style: dashed; }

/* ---------- goal progress ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-pct { flex: none; align-self: flex-start; font-size: 26px; font-weight: 750; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-pct span { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 1px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goal .gq-bar { height: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goal.complete .gq-pct { color: var(--accent-text); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goal.complete { border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-goalnums { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-overview { padding: 2px 0 16px; margin-bottom: 14px; border-bottom: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-top small { margin: 0 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-top strong { display: block; font-size: 40px; font-weight: 750; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-top strong span { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 2px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-xp { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-bottom: 4px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-overview .gq-bar { height: 12px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-facts span { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-facts .good { color: var(--accent-text); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-ov-facts .bad { color: var(--bad); }

/* ---------- header extras, avatar, appearance ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-top-r { display: flex; align-items: center; gap: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-themebtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: var(--ink); border: 1px solid var(--stroke-2); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-themebtn:hover { border-color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-avatar { overflow: hidden; padding: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-avimg { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; border-radius: 50%; }
:is(#goalquest, #gq-modal, #gq-fab) img.gq-avimg { display: block; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-avatarbox { display: flex; align-items: center; gap: 16px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-avatarbox > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-avwrap { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-avbig { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; font-size: 30px; font-weight: 800; background: var(--accent); color: var(--accent-ink); }
:is(#goalquest, #gq-modal, #gq-fab) img.gq-avbig { display: block; background: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-avatarbox.busy .gq-avwrap { opacity: .4; animation: gq-pulse 1s ease-in-out infinite; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-filebtn { cursor: pointer; display: inline-flex; color: var(--ink); font-size: 13.5px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-filebtn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-theme-segs input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-theme-segs span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 100%; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-logout { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; padding: 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); font-weight: 650; font-size: 14.5px; text-decoration: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-logout:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); }

/* ---------- account: email + delete ---------- */
:is(#goalquest, #gq-modal, #gq-fab) label.gq-small { font-size: 11px; }
:is(#goalquest, #gq-modal, #gq-fab) label.gq-small input { font-size: 13px; padding: 8px 11px; border-radius: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-deleteacct { display: block; margin: 18px auto 0; padding: 4px 8px; font-size: 11px; font-weight: 500; color: var(--faint); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-deleteacct:hover, :is(#goalquest, #gq-modal, #gq-fab) .gq-deleteacct:focus { color: var(--bad); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-btn.gq-btn-bad, :is(#goalquest, #gq-modal, #gq-fab) .gq-btn.gq-btn-bad:hover { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ---------- calendar view ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-viewtab i { font-size: 15px; vertical-align: -2px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-cal { margin: 4px 0 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calhead strong { flex: 1; font-size: 16px; font-weight: 650; text-transform: capitalize; color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calweek { margin-bottom: 4px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calweek span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
	min-height: 48px; padding: 6px 0 4px; border-radius: 12px; border: 1px solid transparent;
	font-size: 14px; font-weight: 600; color: var(--ink);
	background: color-mix(in srgb, var(--accent) calc(var(--heat, 0) * 34%), transparent);
}
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday:hover, :is(#goalquest, #gq-modal, #gq-fab) .gq-calday:focus { border-color: var(--stroke-2); background: color-mix(in srgb, var(--accent) calc(var(--heat, 0) * 34%), transparent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday.out { opacity: .35; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday.past > span { color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday.today > span { display: grid; place-items: center; width: 26px; height: 26px; margin-top: -3px; border-radius: 50%; border: 2px solid var(--accent); color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday.on { border-color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday em { display: flex; gap: 3px; align-items: center; height: 7px; font-style: normal; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday em i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday em i.p2 { background: var(--warn); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday em i.p3, :is(#goalquest, #gq-modal, #gq-fab) .gq-calday em i.bad { background: var(--bad); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday em i.p1 { background: var(--ink); opacity: .6; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday em i.done { background: var(--accent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calday em b { font-size: 9px; font-weight: 700; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calpanel { border-top: 1px solid var(--stroke); padding-top: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calpanel h4 { margin: 0 0 6px; font-size: 15px; font-weight: 650; color: var(--ink); text-transform: capitalize; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calnotes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calnotes .good { color: var(--accent-text); font-weight: 600; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-callist { margin: 0 0 10px; padding: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-callist .gq-drag { display: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-calpanel .gq-btn { margin-top: 4px; }

/* ---------- exercise demos ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps li { display: flex; align-items: flex-start; gap: 4px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-steps li .gq-sub { flex: 1; min-width: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-howto { flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: var(--accent-text); background: none; border: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-howto:hover, :is(#goalquest, #gq-modal, #gq-fab) .gq-howto:focus { color: var(--accent-text); background: var(--glass-in); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-howtabs { margin: -4px -24px 12px; padding: 2px 24px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-move { position: relative; margin: 0 auto 14px; width: 100%; max-width: 300px; aspect-ratio: 200 / 206; border-radius: 22px; background: var(--glass-in); border: 1px solid var(--stroke); overflow: hidden; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-move svg { width: 100%; height: 100%; display: block; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mv-ground { stroke: var(--stroke-2); stroke-width: 2; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mv-prop { stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mv-near, :is(#goalquest, #gq-modal, #gq-fab) .gq-mv-far, :is(#goalquest, #gq-modal, #gq-fab) .gq-mv-body { fill: none; stroke-linecap: round; stroke-width: 8; stroke: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mv-far { opacity: .35; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mv-head { fill: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mv-bag { fill: var(--accent); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-movehold { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-cues { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-cues li { list-style: decimal; line-height: 1.4; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mistake { margin: 0 0 8px; font-size: 13.5px; color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-mistake i, :is(#goalquest, #gq-modal, #gq-fab) .gq-mistake b { color: var(--bad); }

/* ---------- shared goals ---------- */
:is(#goalquest, #gq-modal, #gq-fab) .gq-team { display: inline-flex; align-items: center; margin-top: 6px; padding: 2px 8px 2px 2px; border-radius: 99px; background: var(--glass-in); border: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-team small { display: inline; margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink); opacity: .8; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-teamav { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; object-fit: cover; font-size: 10.5px; font-weight: 800; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--card, var(--bg)); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-team .gq-teamav + .gq-teamav { margin-left: -6px; }
:is(#goalquest, #gq-modal, #gq-fab) img.gq-teamav { display: block; background: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-who { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sharetitle { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 16px; font-weight: 650; color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sharetitle i { color: var(--accent-text); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-linkrow { display: block; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-linkrow input { font-size: 13px; padding: 9px 12px; color: var(--muted); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sharebtns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-sharesheet .gq-hint .gq-linkbtn { font-size: inherit; padding: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-people { margin: 14px 0 6px; padding: 0; border-top: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-people li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--stroke); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-people .gq-teamav { width: 34px; height: 34px; font-size: 14px; box-shadow: none; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-people .gq-pinfo { flex: 1; min-width: 0; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-people b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-people b small { display: inline; font-weight: 400; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-people .gq-pinfo > small { font-size: 12px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-invite { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 0 10px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-invite .gq-avbig { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; margin-bottom: 8px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-invite p { margin: 0; color: var(--muted); font-size: 14px; }
:is(#goalquest, #gq-modal, #gq-fab) .gq-invite p b { color: var(--ink); }
:is(#goalquest, #gq-modal, #gq-fab) .gq-invite .gq-sharetitle { margin: 4px 0 2px; font-size: 18px; color: var(--ink); }

/* ---------- motion ---------- */
@keyframes gq-sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes gq-pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
@keyframes gq-bob { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-3px) scaleY(1.02); } }
@keyframes gq-hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-9px); } 80% { transform: translateY(0) scaleY(.95); } }
@keyframes gq-slump { 0%, 100% { transform: rotate(-2deg) translateY(1px); } 50% { transform: rotate(2deg) translateY(2px); } }
@keyframes gq-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes gq-flick { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(.94, 1.08) skewX(3deg); } }
@keyframes gq-leaf { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes gq-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .65; transform: scale(1.12); } }
@keyframes gq-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes gq-tear { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes gq-wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 84% { transform: rotate(5deg); } 92% { transform: rotate(-3deg); } }
@keyframes gq-wave { from { transform: rotate(0); } to { transform: rotate(-28deg); } }
@keyframes gq-cheer { 0% { transform: translateY(0); } 35% { transform: translateY(-18px) scale(1.06); } 70% { transform: translateY(0) scale(.97, 1.03); } 100% { transform: none; } }
@keyframes gq-flash { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes gq-evolve { 0% { transform: scale(.55); filter: brightness(3); } 40% { filter: brightness(1.6); } 100% { transform: scale(1); filter: none; } }
@media (prefers-reduced-motion: reduce) {
	:is(#goalquest, #gq-modal, #gq-fab) .gq-mon *, :is(#goalquest, #gq-modal, #gq-fab) .gq-mon svg, :is(#goalquest, #gq-modal, #gq-fab) .gq-tree *, :is(#goalquest, #gq-modal, #gq-fab) .gq-pick svg *, :is(#goalquest, #gq-modal, #gq-fab) .gq-pick .gq-bob { animation: none !important; }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
	#goalquest { padding-left: 12px; padding-right: 12px; }
	:is(#goalquest, #gq-modal, #gq-fab) .gq-hero { grid-template-columns: 1fr 1fr; gap: 12px; }
	:is(#goalquest, #gq-modal, #gq-fab) .gq-hero > .gq-level { grid-column: 1 / -1; }
	:is(#goalquest, #gq-modal, #gq-fab) .gq-grid { grid-template-columns: 1fr; gap: 0; }
	:is(#goalquest, #gq-modal, #gq-fab) .gq-card { padding: 16px; }
	:is(#goalquest, #gq-modal, #gq-fab) .gq-filters { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
	:is(#goalquest, #gq-modal, #gq-fab) .gq-mon, :is(#goalquest, #gq-modal, #gq-fab) .gq-tree { width: 110px; height: 110px; }
	:is(#goalquest, #gq-modal, #gq-fab) .gq-picks { grid-template-columns: repeat(2, 1fr); }
	#gq-modal { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92vh; border-radius: 26px 26px 0 0; border-bottom: 0; }
	:is(#goalquest, #gq-modal, #gq-fab) .gq-sheet { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
