/* GO page, chapter 3 "Better together": the feed, messages, chat and following screens, after the screen recording (Clip 3).
   Same unit as app-page.css: 1cqw = 1 % of the screen's width. Panes stack, later ones cover earlier ones; app-page.js switches
   them on at data-t seconds (.is-on) and types the .fl-ty fields. Every default below is the finished state (static page);
   the .is-timed rules draw the state before each moment. */
.gs-tg { --tg-row: #273037; --tg-chip: #3B444B; --tg-bubble: #C8EC90; --tg-bubble-ink: #14210A; --tg-moss: #3A5A10; --tg-warn: #F29A2E; }
.gs-tg .gs-status { position: absolute; z-index: 5; left: 0; right: 0; top: 0; }
.tg-pane { isolation: isolate; position: absolute; inset: 0; overflow: hidden; padding-top: 13.3cqw; background: var(--app-bg); }
.is-timed .tg-pane[data-t] { opacity: 0; transition: opacity 220ms var(--ease-out); }
.is-timed .tg-pane[data-t].is-on { opacity: 1; }
.tg-m { display: none; }
.gs-tg .ic { flex: none; }
.gs-tg .gs-title { margin-top: 3.6cqw; }
.tg-back { position: absolute; z-index: 2; left: 5cqw; top: 15cqw; display: grid; place-items: center; width: 7.2cqw; height: 7.2cqw; border-radius: 50%; background: #4A525A; color: var(--app-text); }
.tg-back .ic { width: 7cqw; height: 7cqw; }
.tg-tr { width: 4.4cqw; height: 4.4cqw; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* tiles, search, wall */
.tg-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2cqw; margin: 3.4cqw 2cqw 0; }
.tg-tile { display: grid; justify-items: center; align-content: center; gap: 1.2cqw; height: 21cqw; border-radius: 4.4cqw; background: #4D575F; transition: background-color 200ms var(--ease-out); }
.tg-tile span { font-size: 2.1cqw; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-muted); }
.tg-tile b { font: 500 9cqw/0.85 var(--font-numeric); color: var(--app-lime); }
.tg-tile.is-on { background: #5C666E; }
.tg-sr { display: flex; align-items: center; justify-content: space-between; height: 9cqw; margin: 2.6cqw 4.5cqw 0; font-size: 3.5cqw; color: var(--app-muted); }
.tg-sr .ic { width: 7cqw; height: 7cqw; margin: -1.5cqw; color: var(--app-text); }
.tg-wall { display: grid; grid-template-columns: minmax(0, 1fr) 21.4cqw; gap: 3cqw; margin: 2cqw 2cqw 0; }
.tg-wi { height: 14.6cqw; padding: 2.6cqw 3.4cqw; border: 0.28cqw solid var(--app-lime); border-radius: 7.3cqw; font-size: 3.5cqw; color: var(--app-muted); }
.tg-post-b { display: grid; place-items: center; height: 14.6cqw; padding-top: 0.4cqw; border-radius: 7.3cqw; background: #547820; color: #FFFFFF; font: 600 3.6cqw/1 var(--font-numeric); letter-spacing: 0.08em; }
.tg-p-feed .tg-clip { position: absolute; left: 0; right: 0; top: 91cqw; bottom: 19cqw; overflow: hidden; }
.tg-scroll { transition: transform 2.6s cubic-bezier(0.45, 0, 0.2, 1); }
.is-timed .tg-p-feed:has(.tg-scr.is-on) .tg-scroll { transform: translateY(-92cqw); }
.is-timed .tg-p-feed:has(.tg-top.is-on) .tg-scroll { transform: none; }
.tg-tabs span:nth-child(4) { opacity: 0.4; }

/* feed posts */
.tg-post { width: 67.2cqw; margin: 0 2cqw 2cqw; padding: 4.4cqw 2.5cqw 2.4cqw; border-radius: 6cqw; background: var(--app-card); }
.tg-ph { display: flex; align-items: center; gap: 2.6cqw; }
.tg-ph i, .tg-row i, .tg-bh i { display: grid; place-items: center; flex: none; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; padding-top: 0.4cqw; background: var(--app-lime); color: var(--app-bg); font: 500 3.6cqw/1 var(--font-numeric); font-style: normal; }
.tg-ph b { font-size: 3.1cqw; font-weight: 600; }
.tg-pt { margin-top: 3cqw; font-size: 3.5cqw; line-height: 1.5; }
.tg-int { display: flex; align-items: center; gap: 1.4cqw; margin-top: 2.2cqw; font-size: 2.8cqw; color: var(--app-muted); }
.tg-int .ic { width: 6cqw; height: 6cqw; margin: -1.4cqw; color: var(--app-lime); }
.tg-sc { margin-top: 3cqw; padding: 2.6cqw 2cqw 2cqw; border-radius: 5cqw; background: var(--app-paper); color: var(--app-ink); text-align: center; }
.tg-st { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg-st span { display: grid; justify-items: center; gap: 0.6cqw; font-size: 2.3cqw; color: #5B5F57; }
.tg-st b { font: 500 6cqw/0.9 var(--font-numeric); color: var(--app-ink); font-variant-numeric: tabular-nums; }
.tg-sc .gs-target { width: 100%; margin: 2cqw auto 0; }
.tg-cap { margin-top: 2cqw; font-size: 2.3cqw; color: #5B5F57; }
.tg-cap b { display: block; font: 500 3.6cqw/1.1 var(--font-numeric); color: var(--app-ink); }
.tg-pa { display: flex; align-items: center; justify-content: flex-end; gap: 4cqw; margin-top: 1.4cqw; font-size: 2.6cqw; }
.tg-pa span { display: flex; align-items: center; gap: 0.6cqw; }
.tg-pa .ic { width: 7cqw; height: 7cqw; margin: -1.6cqw; }

/* message rows and the following list */
.tg-list { display: grid; gap: 1.6cqw; margin: 3cqw 2cqw 0; }
.tg-all { display: grid; }
.tg-res { display: none; }
.tg-p-msg:has(.tg-filt.is-on) .tg-all { display: none; }
.tg-p-msg:has(.tg-filt.is-on) .tg-res { display: grid; }
.tg-row { display: flex; align-items: center; gap: 1.2cqw; height: 13.2cqw; padding: 0 2cqw 0 1.8cqw; border-radius: 4.4cqw; background: var(--tg-row); }
.tg-row i { width: 9.4cqw; height: 9.4cqw; font-size: 3.7cqw; }
.tg-row p { display: grid; gap: 0.2cqw; min-width: 0; margin-right: auto; }
.tg-row p b { font-size: 3.8cqw; font-weight: 600; }
.tg-row p span { font-size: 2.9cqw; color: var(--app-muted); }
.tg-row em { display: grid; place-items: center; width: 5.8cqw; height: 5.8cqw; border-radius: 50%; padding-top: 0.3cqw; background: var(--app-lime); color: var(--app-bg); font: 600 3.2cqw/1 var(--font-numeric); font-style: normal; }
.tg-trw { display: grid; place-items: center; width: 8.4cqw; height: 8.4cqw; border-radius: 50%; background: var(--app-bg); }
.tg-bt { display: flex; gap: 1.6cqw; }
.tg-bt b { display: grid; place-items: center; height: 8.4cqw; padding: 0.3cqw 3.2cqw 0; border-radius: 999px; font: 600 3cqw/1 var(--font-text); }
.tg-mute { background: var(--app-lime); color: var(--app-bg); }
.tg-un { background: var(--app-bg); color: var(--app-text); }

/* typed fields: the caret shows while a field types */
.tg-ty.is-typing::after { content: ""; display: inline-block; width: 0.4cqw; height: 4.4cqw; margin-left: 0.3cqw; vertical-align: -0.9cqw; background: #5B8CFF; }
.tg-sfield .tg-ty { color: var(--app-text); margin-right: auto; }
.tg-sfield .tg-ty:empty::before { content: attr(data-ph); color: var(--app-muted); }

/* chat */
.tg-who { display: grid; place-items: center; height: 14cqw; margin: 2.4cqw 2cqw 0; padding-top: 0.4cqw; border-radius: 6cqw; background: #2B3339; font: 600 3.9cqw/1 var(--font-text); }
.tg-msgs { position: absolute; left: 0; right: 2cqw; top: 66cqw; bottom: 49cqw; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.tg-b { flex: none; align-self: flex-end; width: 67.2cqw; margin-top: 2cqw; padding: 4cqw 2cqw 3.4cqw; border-radius: 6cqw; background: var(--tg-bubble); color: var(--tg-bubble-ink); }
.tg-bh { display: flex; align-items: center; gap: 2cqw; }
.tg-bh i { width: 6.6cqw; height: 6.6cqw; background: var(--app-lime); color: var(--tg-bubble-ink); font-size: 3.4cqw; }
.tg-bh b { font-size: 3cqw; font-weight: 600; }
.tg-bt2 { margin-top: 3cqw; font-size: 3.6cqw; line-height: 1.4; }
.tg-bf { display: flex; align-items: center; justify-content: flex-end; gap: 3cqw; margin-top: 1.6cqw; font-size: 2.6cqw; font-weight: 600; }
.tg-bf span { display: flex; align-items: center; }
.tg-bf .ic { width: 7cqw; height: 7cqw; margin: -2cqw -1cqw -2cqw 0; }
.tg-inv { margin-top: 2cqw; padding: 2.6cqw 2.8cqw; border-radius: 4cqw; background: #B4D680; }
.tg-it { display: flex; align-items: center; gap: 1.4cqw; font-size: 2.6cqw; font-weight: 700; }
.tg-it .ui-ic { width: 4.2cqw; height: 4.2cqw; }
.tg-in2 { margin-top: 1.4cqw; font: 600 3.6cqw/1 var(--font-text); }
.tg-id { margin-top: 1cqw; font-size: 2.6cqw; line-height: 1.3; }
.tg-io { margin-top: 1.2cqw; font-size: 2.6cqw; font-weight: 700; }
.tg-comp { position: absolute; left: 2cqw; right: 2cqw; bottom: 15.6cqw; display: grid; gap: 1.6cqw; }
.tg-tb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqw; }
.tg-tb span { display: grid; place-items: center; height: 15cqw; border-radius: 5cqw; background: #2B3339; color: var(--app-lime); }
.tg-tb .ui-ic, .tg-tb .ic { width: 7cqw; height: 7cqw; stroke-width: 1.5; }
.tg-gun { width: 7cqw; height: 7cqw; fill: currentColor; }
.tg-send-row { display: grid; grid-template-columns: minmax(0, 1fr) 28.6cqw; gap: 1.6cqw; }
.tg-field { height: 16cqw; padding: 2.6cqw 3cqw; border: 0.28cqw solid var(--app-lime); border-radius: 7.3cqw; font-size: 3.5cqw; line-height: 1.3; }
.tg-ph2, .tg-ph3 { color: var(--app-muted); }
.tg-typed { display: none; }
.tg-send { display: grid; place-items: center; height: 16cqw; border-radius: 7.3cqw; background: #547820; color: #FFFFFF; font: 600 3.4cqw/1 var(--font-numeric); letter-spacing: 0.08em; }
.tg-s2 { display: none; }
.is-timed .tg-p-chat:has(.tg-sendon.is-on):not(:has(.tg-sent.is-on)) .tg-typed { display: inline; }
.is-timed .tg-p-chat:has(.tg-sendon.is-on):not(:has(.tg-sent.is-on)) .tg-ph2 { display: none; }
.is-timed .tg-p-chat:has(.tg-sendon.is-on):not(:has(.tg-sent.is-on)) .tg-send { background: var(--app-lime); color: var(--app-bg); }
.is-timed .tg-p-chat:has(.tg-sent.is-on) .tg-s1 { display: none; }
.is-timed .tg-p-chat:has(.tg-sent.is-on) .tg-s2 { display: inline; }
.is-timed .tg-b[data-new] { max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; transition: max-height 420ms var(--ease-out), margin-top 420ms var(--ease-out), padding 420ms var(--ease-out), opacity 300ms var(--ease-out); }
.is-timed .tg-b[data-new].is-on { max-height: 40cqw; margin-top: 2cqw; padding-top: 4cqw; padding-bottom: 3.4cqw; opacity: 1; }
.is-timed .tg-p-chat:has(.tg-b[data-new].is-on) .tg-s2 { display: none; }
.is-timed .tg-p-chat:has(.tg-b[data-new].is-on) .tg-s1 { display: inline; }

/* following */
.tg-addrow { display: grid; grid-template-columns: minmax(0, 1fr) 20.4cqw; align-items: center; gap: 3cqw; margin: 3.6cqw 4.5cqw 0; }
.tg-mailf { font-size: 3.5cqw; white-space: nowrap; overflow: hidden; }
.tg-mailf .tg-ty { color: var(--app-text); }
.tg-add { display: grid; place-items: center; height: 9.6cqw; padding-top: 0.3cqw; border-radius: 999px; background: #547820; color: #FFFFFF; font: 600 3.4cqw/1 var(--font-numeric); letter-spacing: 0.08em; }
.tg-a2 { display: none; }
.tg-warn { display: none; margin: 1.6cqw 4.5cqw 0; font-size: 2.7cqw; color: var(--tg-warn); }
.tg-p-fol .tg-sr { margin-top: 3.4cqw; }
.is-timed .tg-p-fol .tg-ph3 { display: inline; }
.is-timed .tg-p-fol:has(.tg-ty.is-typing) .tg-ph3, .is-timed .tg-p-fol:has(.tg-w.is-on) .tg-ph3 { display: none; }
.is-timed .tg-p-fol:not(:has(.tg-valid.is-on)) .tg-mail { color: var(--tg-warn); }
.is-timed .tg-p-fol:has(.tg-w.is-on):not(:has(.tg-valid.is-on)) .tg-warn { display: block; }
.is-timed .tg-p-fol:has(.tg-valid.is-on) .tg-add { background: var(--app-lime); color: var(--app-bg); }
.is-timed .tg-p-fol:has(.tg-adding.is-on) .tg-a1 { display: none; }
.is-timed .tg-p-fol:has(.tg-adding.is-on) .tg-a2 { display: inline; }
.is-timed .tg-p-fol:has(.tg-adding.is-on) .tg-add { background: #547820; color: #FFFFFF; }
.tg-toast { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; height: 21cqw; padding: 0 6cqw 3cqw; border-radius: 6cqw 6cqw 0 0; background: #1F262B; box-shadow: 0 -2cqw 6cqw rgb(0 0 0 / 0.4); }
.tg-toast div { display: grid; gap: 1cqw; }
.tg-toast b { font: 600 4.8cqw/1 var(--font-numeric); color: var(--app-lime); }
.tg-toast span { font-size: 3.2cqw; color: var(--app-muted); }
.tg-toast i { display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--app-lime); color: var(--app-bg); }
.tg-toast i .ic { width: 7cqw; height: 7cqw; }
.is-timed .tg-toast[data-t] { transform: translateY(105%); opacity: 1; transition: transform 380ms var(--ease-out); }
.is-timed .tg-toast[data-t].is-on { transform: none; }

/* Match the recording while keeping every state reversible on the chapter clock. */
.gs-tg { --app-paper: #FAEBC7; --app-card: #273037; }
.gs-tg .gs-tabs { height: 21cqw; background: #4D575F; }
.gs-tg .tg-status { height: 15cqw; padding: 0; background: var(--app-bg); }
.tg-status-clock { position: absolute; left: 12.2cqw; top: 4.6cqw; font: 600 4.6cqw/1 Arial, sans-serif; }
.tg-status-icons { position: absolute; right: 7.5cqw; top: 5.5cqw; width: 22cqw; height: 4.2cqw; }
.tg-status-icons svg { display: block; width: 100%; height: 100%; }
.tg-like { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tg-target-nums text { font: 500 4px var(--font-numeric); text-anchor: middle; fill: var(--app-ink); }
.tg-target-nums text:nth-child(n+25) { fill: var(--app-paper); }
.tg-p-fol .tg-list { margin-top: 1.8cqw; max-height: 132cqw; overflow: hidden; }
.tg-new-follow { display: flex; }
.is-timed .tg-new-follow:not(.is-on) { display: none; }
/* A confirmed addition clears the field, restores Add, and inserts the person. */
.gf-media:not(.is-timed) .gs-tg .tg-mail,
.tg-p-fol:has(.tg-added.is-on) .tg-mail { display: none; }
.is-timed .tg-p-fol:has(.tg-added.is-on) .tg-ph3 { display: inline; }
.is-timed .tg-p-fol:has(.tg-added.is-on) .tg-a1 { display: inline; }
.is-timed .tg-p-fol:has(.tg-added.is-on) .tg-a2 { display: none; }
.tg-p-fol:has(.tg-dismiss.is-on) .tg-toast,
.gf-media:not(.is-timed) .gs-tg .tg-toast { transform: translateY(105%); }
/* The feed scrolls as a whole; returning to its header finishes before Messages opens. */
.tg-p-feed .tg-clip { top: 15cqw; bottom: 21cqw; }
.tg-scroll { transform: translateY(76cqw); }
.is-timed .tg-p-feed:has(.tg-top.is-on) .tg-scroll { transform: translateY(76cqw); transition-duration: 450ms; }
.tg-p-feed > .gs-user, .tg-p-feed > .gs-title, .tg-p-feed > .tg-fixed { transition: transform 500ms var(--ease-out), opacity 350ms linear; }
.is-timed .tg-p-feed:has(.tg-scr.is-on):not(:has(.tg-top.is-on)) > :is(.gs-user, .gs-title, .tg-fixed) { transform: translateY(-76cqw); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .gs-tg *, .gs-tg *::after { animation: none !important; transition: none !important; }
}

.tg-bf .tg-like { width: 4.4cqw; height: 4.4cqw; margin: 0 0.8cqw 0 0; }
.tg-pa .tg-like { width: 4.4cqw; height: 4.4cqw; margin: 0; }
.tg-int .tg-like { width: 3.5cqw; height: 3.5cqw; margin: 0; }
.tg-p-chat > :is(.tg-back, .gs-user, .gs-title, .tg-who, .tg-sr) { transition: transform 420ms var(--ease-out), opacity 250ms linear; }
.is-timed .tg-p-chat:has(.tg-chat-bottom.is-on) > :is(.tg-back, .gs-user, .gs-title, .tg-who, .tg-sr) { transform: translateY(-60cqw); opacity: 0; }
.tg-msgs { transition: top 420ms var(--ease-out); }
.is-timed .tg-p-chat:has(.tg-chat-bottom.is-on) .tg-msgs { top: 15cqw; }

.tg-add, .is-timed .tg-p-fol:has(.tg-adding.is-on) .tg-add { color: #304808; }
