/* WeightPlot — mobile-first tracker.
   Palette: fog, aubergine ink, plum actions, citrus progress, persimmon alerts.
   Type: Atkinson Hyperlegible (Braille Institute), chosen for legibility. */

.stsc {
	--fog: #eff2ec;
	--surface: #ffffff;
	--ink: #1a1430;
	--muted: #554e6b;
	--line: #dcdfe3;
	--plum: #5b2e7a;
	--plum-soft: #efe7f5;
	--plum-text: #5b2e7a;
	--citrus: #cfea4a;
	--citrus-deep: #8aa516;
	--persimmon: #e0592a;
	--persimmon-ink: #a63a12;
	--persimmon-soft: #fdeae2;
	--meal-breakfast: #f2b134;
	--meal-lunch: #5ab0a0;
	--meal-dinner: #5b2e7a;
	--meal-snack: #e0592a;
	--track: #e3e6df;
	--focus: #5b2e7a;
	--radius-sheet: 26px;
	--radius-field: 14px;

	font-family: 'Atkinson Hyperlegible', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.5;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	text-align: left;
}

@media (prefers-color-scheme: dark) {
	.stsc {
		--fog: #15111d;
		--surface: #211a2c;
		--ink: #f3f0f8;
		--muted: #bdb5cc;
		--line: #3a3149;
		--plum: #a77bd0;
		--plum-soft: #2f2440;
		--plum-text: #d4b8ee;
		--citrus-deep: #cfea4a;
		--persimmon-ink: #ff9f7a;
		--persimmon-soft: #3a2119;
		--track: #2f2840;
		--meal-dinner: #a77bd0;
		--focus: #d4b8ee;
	}
}

.stsc *, .stsc *::before, .stsc *::after { box-sizing: inherit; }
.stsc p, .stsc h1, .stsc h2, .stsc h3, .stsc ul, .stsc ol, .stsc figure { margin: 0; padding: 0; }
.stsc ul { list-style: none; }
.stsc button, .stsc input, .stsc select { font: inherit; color: inherit; }
.stsc a { color: var(--plum-text); text-underline-offset: 3px; }
.stsc :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.stsc svg { display: block; }

/* App shell (full-screen mode). */
body.stsc-app-mode { margin: 0; background: #eff2ec; min-height: 100vh; min-height: 100dvh; }
@media (prefers-color-scheme: dark) { body.stsc-app-mode { background: #15111d; } }
.stsc-shell { padding: 0; }
.stsc[data-mode="app"] { padding: 0 16px calc(104px + env(safe-area-inset-bottom)); min-height: 100vh; }
.stsc[data-mode="embed"] { padding: 8px 0 24px; background: var(--fog); border-radius: var(--radius-sheet); padding-left: 12px; padding-right: 12px; }

/* Loading state. */
.stsc-boot { display: grid; place-items: center; gap: 16px; padding: 30vh 0; color: var(--muted); }
.stsc-spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--track); border-top-color: var(--plum); animation: stsc-spin 0.9s linear infinite; }
@keyframes stsc-spin { to { transform: rotate(360deg); } }

/* Type scale: 18 body, 15 small, 22 h2, 28 h1, 44/56 figures. */
.stsc-h1 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.stsc-h2 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.stsc-h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.stsc-small { font-size: 15px; color: var(--muted); }
.stsc-muted { color: var(--muted); }
.stsc-lead { font-size: 19px; color: var(--muted); }
.stsc-num { font-variant-numeric: tabular-nums; }

/* Top bar. */
.stsc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 4px 12px; }
.stsc-top .stsc-small { margin-top: 2px; }
.stsc-daynav { display: flex; align-items: center; gap: 4px; }
.stsc-iconbtn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.stsc-iconbtn:disabled { opacity: 0.35; cursor: default; }
.stsc-iconbtn svg { width: 24px; height: 24px; }

/* Sheets: grouped content on white. Not every block gets one. */
.stsc-sheet { background: var(--surface); border-radius: var(--radius-sheet); padding: 20px; margin: 12px 0; }
.stsc-sheet > .stsc-h2 + * { margin-top: 12px; }
.stsc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.stsc-stack > * + * { margin-top: 12px; }

/* The plate: the signature element. */
.stsc-plate { position: relative; width: min(300px, 82vw); aspect-ratio: 1; margin: 8px auto 4px; }
.stsc-plate svg { width: 100%; height: 100%; }
.stsc-plate-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.stsc-plate-big { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stsc-plate-label { font-size: 17px; color: var(--muted); margin-top: 6px; }
.stsc-plate-sub { font-size: 15px; color: var(--muted); margin-top: 2px; }
.stsc-plate.is-over .stsc-plate-big { color: var(--persimmon-ink); }
.stsc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 4px 0 8px; font-size: 15px; color: var(--muted); }
.stsc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stsc-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Figures row. */
.stsc-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; text-align: center; }
.stsc-fig b { display: block; font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stsc-fig span { font-size: 15px; color: var(--muted); }

/* Macro bars. */
.stsc-macro { display: grid; grid-template-columns: 76px 1fr 124px; align-items: center; gap: 12px; padding: 6px 0; }
.stsc-macro span:first-child { font-weight: 700; }
.stsc-macro .stsc-num { font-size: 16px; color: var(--muted); text-align: right; white-space: nowrap; }
.stsc-bar { height: 12px; border-radius: 6px; background: var(--track); overflow: hidden; }
.stsc-bar i { display: block; height: 100%; border-radius: 6px; background: var(--citrus-deep); transition: width 0.4s ease; }
.stsc-bar.is-over i { background: var(--persimmon); }
.stsc-bar.is-goal i { background: var(--plum); }

/* Rows. */
.stsc-rows > li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); min-height: 56px; }
.stsc-rows > li:first-child { border-top: 0; }
.stsc-rows .stsc-grow { flex: 1; min-width: 0; }
.stsc-rows .stsc-name { font-weight: 700; overflow-wrap: anywhere; }
.stsc-rows .stsc-kcal { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stsc-del { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.stsc-del:hover { background: var(--persimmon-soft); color: var(--persimmon-ink); }
.stsc-del svg { width: 20px; height: 20px; }
.stsc-meal-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* Buttons. */
.stsc .stsc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--plum); background: var(--plum); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; line-height: 1.2; }
@media (prefers-color-scheme: dark) { .stsc .stsc-btn { color: #15111d; } .stsc .stsc-btn-ghost { color: var(--plum-text); } .stsc .stsc-btn-citrus { color: #1a1430; } }
.stsc .stsc-btn:active { transform: scale(0.98); }
.stsc .stsc-btn-ghost { background: transparent; color: var(--plum-text); }
.stsc .stsc-btn-citrus { background: var(--citrus); border-color: var(--citrus); color: #1a1430; }
.stsc .stsc-btn-small { min-height: 44px; padding: 0 16px; font-size: 16px; }
.stsc .stsc-block { display: flex; width: 100%; }
.stsc .stsc-btn[disabled] { opacity: 0.5; cursor: default; }
.stsc-link { background: none; border: 0; padding: 8px 0; color: var(--plum-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.stsc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* Fields. */
.stsc-field { display: block; margin-top: 16px; }
.stsc-field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.stsc-field small { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.stsc-input, .stsc select.stsc-input { width: 100%; min-height: 56px; padding: 12px 16px; font-size: 20px; border-radius: var(--radius-field); border: 2px solid var(--line); background: var(--surface); color: var(--ink); appearance: none; -webkit-appearance: none; }
.stsc select.stsc-input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.stsc-input:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px var(--plum-soft); }
.stsc-input.is-bad { border-color: var(--persimmon); }
.stsc-err { color: var(--persimmon-ink); font-size: 15px; margin-top: 4px; font-weight: 700; }
.stsc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stsc-unit { position: relative; }
.stsc-unit .stsc-input { padding-right: 56px; }
.stsc-unit em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 17px; pointer-events: none; }
.stsc-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; cursor: pointer; }
.stsc-check input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--plum); flex: none; }

/* Segmented choice. */
.stsc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--track); }
.stsc-seg button { min-height: 46px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--muted); padding: 0 8px; }
.stsc-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(26, 20, 48, 0.12); }
.stsc-choices { display: grid; gap: 8px; }
.stsc-choice { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius-field); background: var(--surface); cursor: pointer; min-height: 56px; }
.stsc-choice b { display: block; }
.stsc-choice span { display: block; font-size: 15px; color: var(--muted); }
.stsc-choice[aria-pressed="true"] { border-color: var(--plum); background: var(--plum-soft); }

/* Alerts. */
.stsc-alert { border-radius: 18px; padding: 14px 16px 14px 18px; margin: 10px 0; border-left: 6px solid var(--plum); background: var(--plum-soft); }
.stsc-alert b { display: block; font-size: 18px; }
.stsc-alert p { font-size: 16px; margin-top: 2px; }
.stsc-alert.is-warn { border-left-color: var(--persimmon); background: var(--persimmon-soft); }
.stsc-alert.is-warn b { color: var(--persimmon-ink); }

/* Encouragement: a quiet pull-quote, not a card. */
.stsc-tip { margin: 20px 4px; padding-left: 16px; border-left: 4px solid var(--citrus-deep); font-size: 19px; line-height: 1.45; }
.stsc-wins { margin: 8px 0 0; }
.stsc-wins li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-weight: 700; }
.stsc-wins li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--citrus-deep); margin-top: 9px; flex: none; }

/* Weight. */
.stsc-weight-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stsc-weight-big { font-size: 48px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stsc-chart { margin: 12px -6px 0; }
.stsc-chart svg { width: 100%; height: auto; overflow: visible; }
.stsc-chart .stsc-goal-off { font-weight: 700; fill: var(--citrus-deep); }
.stsc-chart text { font-family: inherit; font-size: 13px; fill: var(--muted); }
.stsc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 96px; margin-top: 12px; }
.stsc-week div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.stsc-week i { width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: var(--citrus-deep); min-height: 4px; }
.stsc-week i.is-over { background: var(--persimmon); }
.stsc-week i.is-empty { background: var(--track); }
.stsc-week span { font-size: 14px; color: var(--muted); }

/* Food search. */
.stsc-search { position: relative; }
.stsc-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); }
.stsc-search .stsc-input { padding-left: 48px; }
.stsc-results li { cursor: pointer; }
.stsc-results button.stsc-res { all: unset; display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.stsc-results button.stsc-res:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.stsc-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--track); color: var(--muted); margin-left: 6px; vertical-align: 2px; }
.stsc-plus { width: 40px; height: 40px; border-radius: 50%; background: var(--plum-soft); color: var(--plum-text); display: grid; place-items: center; flex: none; }
.stsc-plus svg { width: 20px; height: 20px; }

/* Search, scan and the add sheet. */
.stsc-searchrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.stsc-scanbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 64px; min-height: 56px; border-radius: var(--radius-field); border: 2px solid var(--plum); background: var(--plum-soft); color: var(--plum-text); font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 8px; }
.stsc-scanbtn svg { width: 24px; height: 24px; }
.stsc-tag-user { background: var(--persimmon-soft); color: var(--persimmon-ink); }
.stsc-useradded { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--persimmon-soft); }
.stsc-useradded .stsc-tag { margin-left: 0; background: var(--surface); }
.stsc-useradded p { font-size: 15px; margin-top: 6px; }
.stsc-res-h { font-size: 15px; font-weight: 700; color: var(--muted); margin: 18px 0 2px; }
.stsc-credit { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.stsc-copy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stsc-copy .stsc-meal-dot { margin-right: 2px; }
.stsc-facts { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--fog); }
.stsc-facts-big { font-size: 18px; }
.stsc-facts-big b { font-size: 32px; font-variant-numeric: tabular-nums; margin-right: 4px; }
.stsc-facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; margin: 10px 0 6px; }
.stsc-facts-row span { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; }
.stsc-facts-row b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stsc-camera { position: relative; margin-top: 12px; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.stsc-camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stsc-camera-frame { position: absolute; left: 12%; right: 12%; top: 32%; bottom: 32%; border: 3px solid var(--citrus); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }

/* Plans. */
.stsc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.stsc-chips::-webkit-scrollbar { display: none; }
.stsc-chip { flex: none; scroll-snap-align: start; min-width: 64px; min-height: 64px; border-radius: 18px; border: 2px solid transparent; background: var(--surface); display: grid; place-content: center; text-align: center; cursor: pointer; padding: 6px 10px; }
.stsc-chip b { font-size: 20px; line-height: 1.1; }
.stsc-chip span { font-size: 14px; color: var(--muted); }
.stsc-chip[aria-pressed="true"] { background: var(--ink); color: var(--fog); }
.stsc-chip[aria-pressed="true"] span { color: inherit; opacity: 0.8; }
.stsc-chip.is-done::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--citrus); margin: 4px auto 0; }
.stsc-meal { padding: 16px 0; border-top: 1px solid var(--line); }
.stsc-meal:first-of-type { border-top: 0; padding-top: 4px; }
.stsc-meal-top { display: flex; align-items: center; gap: 10px; }
.stsc-meal-top .stsc-grow { flex: 1; }
.stsc-meal-slot { font-size: 15px; color: var(--muted); font-weight: 700; }
.stsc-ing { margin: 10px 0 0; }
.stsc-ing li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 17px; }
.stsc-ing li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stsc-how { font-size: 16px; color: var(--muted); margin-top: 8px; }
.stsc-meal-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.stsc-ex { padding: 14px 0; border-top: 1px solid var(--line); }
.stsc-ex:first-child { border-top: 0; }
.stsc-ex b { display: block; }
.stsc-ex .stsc-detail { font-weight: 700; color: var(--plum-text); }
.stsc-ex p { font-size: 16px; color: var(--muted); margin-top: 2px; }
.stsc-note { font-size: 15px; color: var(--muted); margin: 16px 4px; }

/* Bottom navigation. */
.stsc-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.stsc[data-mode="embed"] .stsc-nav { position: sticky; border-radius: 22px 22px 0 0; }
.stsc-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; margin: 0 auto; gap: 4px; }
.stsc-nav button { width: 100%; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 60px; border-radius: 16px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 700; position: relative; }
.stsc-nav button svg { width: 26px; height: 26px; }
.stsc-nav button[aria-current="page"] { color: var(--ink); }
.stsc-nav button[aria-current="page"] svg { background: var(--citrus); color: #1a1430; border-radius: 999px; padding: 2px 14px; width: 54px; box-sizing: content-box; height: 22px; }
.stsc-badge { position: absolute; top: 4px; right: calc(50% - 26px); width: 12px; height: 12px; border-radius: 50%; background: var(--persimmon); border: 2px solid var(--surface); }

/* Bottom sheet. */
.stsc-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(26, 20, 48, 0.45); }
.stsc-modal-sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 28px 28px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); animation: stsc-up 0.22s ease-out; }
.stsc-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
@keyframes stsc-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.stsc-stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; }
.stsc-stepper button { height: 56px; border-radius: var(--radius-field); border: 2px solid var(--line); background: var(--surface); font-size: 26px; font-weight: 700; cursor: pointer; }
.stsc-stepper .stsc-input { text-align: center; }

/* Toast. */
.stsc.stsc-toast { margin: 0; max-width: calc(100% - 32px); }
.stsc.stsc-modal { max-width: none; margin: 0; padding: 0; }
.stsc-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; background: var(--ink); color: var(--fog); padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 17px; max-width: calc(100% - 32px); text-align: center; animation: stsc-up 0.2s ease-out; }

/* Onboarding progress. */
.stsc-steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.stsc-steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--track); }
.stsc-steps i.is-on { background: var(--plum); }
.stsc-empty { text-align: center; padding: 20px 8px; color: var(--muted); }
.stsc-empty b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }

/* Logged-out welcome. */
.stsc-guest { padding: 24px 16px 40px; }
.stsc-hero { padding: 16px 4px 8px; }
.stsc-hero .stsc-logo { margin-bottom: 20px; }
.stsc-hero .stsc-h1 { font-size: 32px; }
.stsc-hero .stsc-lead { margin-top: 12px; }
.stsc-feats { margin: 20px 0 8px; }
.stsc-feats li { padding: 8px 0 8px 30px; position: relative; font-size: 18px; }
.stsc-feats li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--citrus-deep); }
.stsc-card { background: var(--surface); border-radius: var(--radius-sheet); padding: 22px 20px; margin-top: 16px; }
.stsc-login form p { margin: 14px 0 0; }
.stsc-login label { display: block; font-weight: 700; margin-bottom: 6px; }
.stsc-login input[type="text"], .stsc-login input[type="password"] { width: 100%; min-height: 56px; padding: 12px 16px; font-size: 20px; border-radius: var(--radius-field); border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.stsc-login .login-remember label { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.stsc-login .login-remember input { width: 24px; height: 24px; accent-color: var(--plum); }
.stsc-login input[type="submit"] { width: 100%; min-height: 54px; border-radius: 999px; border: 0; background: var(--plum); color: #fff; font-weight: 700; font-size: 18px; cursor: pointer; }
.stsc-login .stsc-small { margin: 14px 0; }

.stsc [hidden], .stsc[hidden] { display: none !important; }

/* Sign-up and log-in. */
.stsc-auth-tabs { margin-bottom: 18px; }
.stsc-auth .stsc-err { margin-top: 6px; }
.stsc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.stsc-pass { position: relative; display: block; }
.stsc-pass .stsc-input { padding-right: 76px; }
.stsc-showpass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--plum-text); font-weight: 700; font-size: 16px; cursor: pointer; border-radius: 10px; }
.stsc-legal { margin-top: 12px; }
.stsc .stsc-agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 16px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.stsc-agree input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--plum); cursor: pointer; }
.stsc-agree a { color: var(--plum-text); font-weight: 700; white-space: nowrap; }
.stsc-agree.is-bad input { outline: 3px solid var(--persimmon); outline-offset: 2px; border-radius: 4px; }
.stsc-login form p { margin: 14px 0 0; }

/* Install as an app. */
.stsc-getapp-row { display: flex; gap: 14px; align-items: flex-start; }
.stsc-getapp-row > svg { flex: none; color: var(--plum-text); }
.stsc-getapp-row .stsc-logo { flex: none; border-radius: 12px; }
.stsc-getapp-row .stsc-small { margin-top: 4px; }
.stsc-guest .stsc-getapp { cursor: pointer; }
.stsc-steps-list { list-style: none; margin: 18px 0 4px; padding: 0; counter-reset: s; }
.stsc-steps-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 18px; }
.stsc-steps-list li:first-child { border-top: 0; }
.stsc-step-icon { flex: none; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 14px; background: var(--plum-soft); color: var(--plum-text); display: grid; place-items: center; font-size: 16px; }
.stsc-install-modal .stsc-modal-sheet { box-sizing: border-box; }

.stsc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 600px) {
	.stsc[data-mode="app"] { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.stsc *, .stsc *::before, .stsc *::after { animation: none !important; transition: none !important; }
}
