/*
 * Your Space (docs/SNEAKY-YOUR-SPACE.md): the /login/ page and the member welcome on My Stuff.
 * Built on the Sneaky Line base (brand/assets/sl-base.css, body.sh-sl). Every rule is scoped to body.sh-ys or
 * body.sh-sl-account; no --sh-* token, no @font-face ("Sneaky Display" is declared by the footer), nothing from another
 * host. Motion: only under prefers-reduced-motion: no-preference, armed by sl.js (html.sl-armed), finite, transform /
 * opacity / stroke-dashoffset only. The resting state is the finished page.
 * Identity: the homepage's "Make it yours" chapter (sky and teal); plum stays Support's colour.
 */

/* ---------- tokens ---------- */
body.sh-sl-account { --sl-pillar: #1d6f97; --sl-pillar-ink: #1d6f97; --sl-pillar-wash: #edf8fc; --ys-sky-deep: #1d6f97; }

/* ---------- masthead ---------- */
body.sh-ys-login .ys-mast-bg { background: radial-gradient(48% 62% at 78% 40%, rgba(110, 196, 232, .30), rgba(110, 196, 232, 0) 70%), radial-gradient(30% 42% at 98% 98%, rgba(236, 106, 152, .16), rgba(236, 106, 152, 0) 70%), radial-gradient(34% 40% at 0% 100%, rgba(63, 179, 157, .12), rgba(63, 179, 157, 0) 70%), linear-gradient(180deg, #f7fcfe 0%, #e9f5fb 100%); }
body.sh-ys-login .ys-mast-inner { padding-block: clamp(28px, 4.6vw, 72px) clamp(44px, 5.6vw, 84px); }
body.sh-ys-login .ys-copy { gap: 20px; max-width: 600px; }
body.sh-ys .ys-eyebrow { color: var(--ys-sky-deep); }
body.sh-ys .ys-eyebrow .sl-node--badge { --sl-ns: 34px; }
body.sh-ys .ys-eyebrow .sl-node--badge .sl-i { width: 52%; height: 52%; }
body.sh-ys-login .ys-h1 { font-size: clamp(2.5rem, 1.15rem + 4.1vw, 4.5rem); }
body.sh-ys-login .ys-h1 .sl-squig { color: var(--sl-ink); }
body.sh-ys-login .ys-lead { max-width: 52ch; }

/* ---------- "Continue with Google" (Google's light button: white, the standard G, dark text) ---------- */
body.sh-ys .ys-google, body.sh-ys .ys-google:is(:hover, :focus, :active, :visited) {
	display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; padding: 0 30px 0 24px; margin: 0;
	border: 1px solid #747775; border-radius: 999px; background: #fff; color: #1f1f1f;
	font: 600 17.5px/1.15 var(--sl-text); letter-spacing: .005em; text-decoration: none; white-space: nowrap; cursor: pointer;
	box-shadow: 0 1px 2px rgba(18, 44, 58, .08), 0 22px 40px -24px rgba(18, 44, 58, .55);
}
body.sh-ys .ys-google:hover { background: #f8fafd; border-color: #5f6368; }
body.sh-ys .ys-google .ys-g { flex: none; width: 22px; height: 22px; }
body.sh-ys .ys-google--hero { width: min(100%, 400px); }
body.sh-ys .ys-google.is-pending { cursor: progress; opacity: .82; }
body.sh-ys-login .ys-signin { display: grid; gap: 12px; justify-items: start; width: 100%; }
body.sh-ys-login .ys-signin-note { max-width: 46ch; font-size: 15.5px; line-height: 1.5; color: var(--sl-copy); }
body.sh-ys-login .ys-fine { font-size: 14.5px; }
body.sh-ys-login .ys-fine .sl-i { color: var(--ys-sky-deep); }

/* ---------- a plain note (cancelled, closed, unavailable) ---------- */
body.sh-ys-login .ys-notice { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; width: 100%; max-width: 560px; padding: 14px 18px; border: 1px solid var(--sl-line); border-inline-start: 4px solid var(--ys-sky-deep); border-radius: 18px; background: rgba(255, 255, 255, .92); color: var(--sl-copy); font-size: 15.5px; line-height: 1.5; }
body.sh-ys-login .ys-notice.is-error { border-inline-start-color: var(--sl-ink); }
body.sh-ys-login .ys-notice-i { width: 22px; height: 22px; margin-top: 1px; color: var(--ys-sky-deep); }
body.sh-ys-login .ys-notice p { margin: 0; }
body.sh-ys-login .ys-notice-title { font: 700 17px/1.3 var(--sl-display); color: var(--sl-ink); }
body.sh-ys-login .ys-notice-detail { margin-top: 6px !important; font-size: 14px; color: var(--sl-muted); }

/* ---------- other ways (folded) ---------- */
body.sh-ys-login .ys-other { width: 100%; max-width: 560px; }
body.sh-ys-login .ys-other > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; list-style: none; cursor: pointer; font: 650 15.5px/1.2 var(--sl-text); color: var(--sl-ink); text-decoration: underline; text-decoration-color: var(--sl-sky); text-decoration-thickness: 2px; text-underline-offset: 5px; }
body.sh-ys-login .ys-other > summary::-webkit-details-marker { display: none; }
body.sh-ys-login .ys-other-i { width: 18px; height: 18px; color: var(--ys-sky-deep); }
body.sh-ys-login .ys-other[open] .ys-other-i { transform: rotate(180deg); }
body.sh-ys-login .ys-other-body { display: grid; gap: 12px; margin-top: 8px; padding: 18px 20px; border: 1px solid var(--sl-line-soft); border-radius: 20px; background: rgba(255, 255, 255, .88); font-size: 15.5px; line-height: 1.55; color: var(--sl-copy); }
body.sh-ys-login .ys-other-body strong { color: var(--sl-ink); }
body.sh-ys-login .ys-other-body .sl-btn .sl-i { color: var(--ys-sky-deep); }

/* ---------- signed in already ---------- */
body.sh-ys-login .ys-not-you a { font-weight: 650; }

/* ---------- the journey picture: Assess, Train, Eat, Helpers, then Your Space ---------- */
body.sh-ys-login .ys-stage { display: grid; place-items: center; }
body.sh-ys-login .ys-art { display: block; width: 100%; max-width: 580px; height: auto; overflow: visible; }
body.sh-ys-login .ys-art-washes circle { opacity: .9; }
body.sh-ys-login .ys-art-track { fill: none; stroke: #dbeaf2; stroke-width: 18; stroke-linecap: round; opacity: .75; }
body.sh-ys-login .ys-art-line { fill: none; stroke: url(#ys-line) #6ec4e8; stroke-width: 5; stroke-linecap: round; }
body.sh-ys-login .ys-art-comet { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: .035 1; stroke-dashoffset: .035; opacity: 0; }
body.sh-ys-login .ys-art-glyph { color: #fff; --sl-sw: 2; }
body.sh-ys-login .ys-art-check { --sl-sw: 2.6; }
body.sh-ys-login .ys-art-label { font: 700 16px/1 var(--sl-text); fill: var(--sl-ink); letter-spacing: .01em; }
body.sh-ys-login .ys-art-label--home { font-size: 14.5px; fill: var(--ys-sky-deep); }
body.sh-ys-login .ys-art-home-t { font: 800 13.5px/1 var(--sl-text); fill: #fff; letter-spacing: .02em; }
@media (max-width: 1023px) {
	body.sh-ys-login .ys-stage { order: 2; }
	body.sh-ys-login .ys-art { max-width: 480px; margin-inline: auto; }
}
@media (max-width: 479px) {
	body.sh-ys-login .ys-mast-inner { gap: 20px; }
	body.sh-ys-login .ys-copy { gap: 16px; }
	body.sh-ys .ys-google--hero { width: 100%; }
	body.sh-ys-login .ys-art-label { font-size: 21px; }
	body.sh-ys-login .ys-art-label--home { font-size: 19px; }
	body.sh-ys-login .ys-art-home-t { font-size: 15px; }
}

/* ---------- why sign in ---------- */
body.sh-ys-login .ys-why .sl-next-title { font-size: 20px; }
body.sh-ys-login .ys-why .sl-next-body p { max-width: 34ch; }

/* ---------- plain and simple ---------- */
body.sh-ys-login .ys-plain-in { display: grid; gap: 22px 64px; align-items: start; }
body.sh-ys-login .ys-plain-head { display: grid; gap: 12px; }
body.sh-ys-login .ys-can .sl-i { color: var(--sl-teal); }
body.sh-ys-login .ys-plain-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
body.sh-ys-login .ys-plain-links a { margin-inline-start: 6px; color: var(--sl-ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--sl-sky); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.sh-ys-login .ys-plain-links .sl-dot::before { margin-inline: 10px 4px; }
@media (min-width: 900px) {
	body.sh-ys-login .ys-plain-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
	body.sh-ys-login .ys-plain-links { grid-column: 2; }
}

/* ---------- My Stuff: the Your Space welcome ---------- */
body.sh-ys-mystuff .ys-dash { position: relative; overflow: hidden; isolation: isolate; max-width: 1180px; margin: clamp(14px, 2.4vw, 26px) auto 26px; padding: clamp(24px, 4vw, 52px) clamp(20px, 4vw, 52px) clamp(36px, 4.6vw, 60px); border: 1px solid #d5e8f2; border-radius: 32px; background: radial-gradient(46% 70% at 88% 18%, rgba(110, 196, 232, .28), rgba(110, 196, 232, 0) 70%), radial-gradient(30% 50% at 100% 100%, rgba(236, 106, 152, .12), rgba(236, 106, 152, 0) 70%), linear-gradient(180deg, #f7fcfe 0%, #e7f4fa 100%); }
body.sh-ys-mystuff .ys-dash-in { display: grid; gap: clamp(24px, 3.4vw, 40px); }
body.sh-ys-mystuff .ys-dash-head { display: grid; gap: 16px; justify-items: start; max-width: 720px; }
body.sh-ys-mystuff .ys-dash-h1 { font-size: clamp(2.1rem, 1.1rem + 3vw, 3.5rem); }
body.sh-ys-mystuff .ys-dash-h1 .ys-soft { display: block; color: var(--ys-sky-deep); }
body.sh-ys-mystuff .ys-dash .sl-mast-edge { bottom: 0; }
body.sh-ys-mystuff .ys-line { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.sh-ys-mystuff .ys-line::before { content: ""; position: absolute; left: 33px; top: 34px; bottom: 34px; width: 4px; border-radius: 4px; background: var(--sl-grad-v); }
body.sh-ys-mystuff .ys-stop { position: relative; min-width: 0; }
body.sh-ys-mystuff .ys-stop-link { display: grid; grid-template-columns: 58px minmax(0, 1fr) 22px; gap: 14px; align-items: center; min-height: 68px; padding: 8px 16px 8px 8px; border-radius: 22px; color: var(--sl-ink); text-decoration: none; }
body.sh-ys-mystuff .ys-stop-link:hover { background: rgba(255, 255, 255, .78); box-shadow: 0 18px 34px -28px rgba(18, 44, 58, .55); }
body.sh-ys-mystuff .ys-stop .sl-node { --sl-ns: 50px; position: relative; z-index: 1; justify-self: center; }
body.sh-ys-mystuff .ys-stop-body { display: grid; gap: 3px; min-width: 0; }
body.sh-ys-mystuff .ys-stop-title { font: 700 17.5px/1.25 var(--sl-display); letter-spacing: -.01em; color: var(--sl-ink); }
body.sh-ys-mystuff .ys-stop-fact { font: 600 14.5px/1.35 var(--sl-text); color: var(--sl-copy); font-variant-numeric: tabular-nums; }
body.sh-ys-mystuff .ys-stop-go { width: 20px; height: 20px; color: var(--ys-sky-deep); }
@media (min-width: 1100px) {
	body.sh-ys-mystuff .ys-line { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
	body.sh-ys-mystuff .ys-line::before { left: calc(100% / 12); right: calc(100% / 12); top: 33px; bottom: auto; width: auto; height: 4px; background: var(--sl-grad); }
	body.sh-ys-mystuff .ys-stop-link { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: 8px 8px 14px; text-align: center; }
	body.sh-ys-mystuff .ys-stop .sl-node { --sl-ns: 54px; }
	body.sh-ys-mystuff .ys-stop-go { display: none; }
}
/* the existing My Stuff page, in the same language (its markup is unchanged) */
body.sh-ys-mystuff .rhp-header-actions { display: none; }
body.sh-ys-mystuff .rhp-header { grid-template-columns: minmax(0, 1fr); border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -48px rgba(18, 44, 58, .5); }
body.sh-ys-mystuff .rhp-header .ys-rhp-title, body.sh-ys-mystuff .rhp-page h2 { font-family: var(--sl-display); font-weight: 800; letter-spacing: -.02em; }
body.sh-ys-mystuff .rhp-header .ys-rhp-title { margin: 8px 0 0; color: var(--sl-ink); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.08; }
body.sh-ys-mystuff .rhp-card, body.sh-ys-mystuff .rhp-side-box, body.sh-ys-mystuff .rhp-stat-strip { border-color: var(--sl-line-soft); border-radius: 24px; box-shadow: 0 30px 60px -48px rgba(18, 44, 58, .5); }
body.sh-ys-mystuff .rhp-kicker { padding: 0; background: none; color: var(--ys-sky-deep); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.sh-ys-mystuff .rhp-page .rhp-button { min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; }
body.sh-ys-mystuff .rhp-page .rhp-button-secondary { border: 1.5px solid var(--sl-line); background: #fff; color: var(--sl-ink); }
body.sh-ys-mystuff .rhp-page .rhp-button-primary { border-color: transparent; background: var(--sl-teal); color: #fff !important; box-shadow: 0 14px 28px -16px rgba(36, 107, 95, .9); }
body.sh-ys-mystuff .rhp-page .rhp-button-primary:hover { background: var(--sl-teal-deep); }
body.sh-ys-mystuff .rhp-page p, body.sh-ys-mystuff .rhp-card-note, body.sh-ys-mystuff .rhp-side-box p { font-weight: 500; }

/* ---------- motion (finite; the resting state is the finished page) ---------- */
@media (prefers-reduced-motion: no-preference) {
	body.sh-ys .ys-google { transition: transform .18s var(--sl-ease); }
	body.sh-ys .ys-google:is(:hover, :focus-visible) { transform: translateY(-2px); }
	body.sh-ys-login .ys-other-i { transition: transform .25s var(--sl-ease); }
	html.sl-armed body.sh-ys-login .ys-stage.is-in .ys-art-node { animation-delay: calc(var(--sl-d, 0) * 240ms); }
	html.sl-armed body.sh-ys-login .ys-stage.is-in .ys-art-label { animation-delay: calc((var(--sl-d, 0) - 2) * 240ms + 160ms); }
	html.sl-armed body.sh-ys-login .ys-stage.is-in .ys-art-home { animation-delay: 1.15s; }
	html.sl-armed body.sh-ys-login .ys-stage.is-in .ys-art-label--home { animation-delay: 1.5s; }
	html.sl-armed body.sh-ys-login .ys-stage.is-in .ys-art-row { animation: ys-row .45s var(--sl-ease) both; animation-delay: calc((var(--sl-d, 0) - 7) * 140ms + 1.45s); }
	html.sl-armed body.sh-ys-login .ys-stage.is-in .ys-art-comet { animation: ys-comet 1.9s var(--sl-ease) 1.35s 1 both; }
	html.sl-armed body.sh-ys-login .ys-stage.is-in .ys-art-float { animation: ys-float 3.4s ease-in-out 2.6s 2; }
	html.sl-armed body.sh-ys-mystuff .ys-dash.is-in .ys-stop .sl-pop { animation-delay: calc(var(--sl-d, 0) * 110ms + 150ms); }
	body.sh-ys-mystuff .ys-stop-link { transition: transform .2s var(--sl-ease); }
	body.sh-ys-mystuff .ys-stop-link:hover { transform: translateY(-2px); }
	@keyframes ys-row { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
	@keyframes ys-comet { 0% { opacity: 0; stroke-dashoffset: .035; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -1; } }
	@keyframes ys-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: reduce) {
	body.sh-ys .ys-google, body.sh-ys .ys-other-i, body.sh-ys-mystuff .ys-stop-link { transition: none; }
	body.sh-ys-login .ys-art-comet { display: none; }
}
