/* assets/topic-packs.css — the Topic packs (/topic_packs). New, 23 Nov 2026 (phase G4).
   ITS OWN DESIGN: two voices. A Task 2 essay is a conversation between "yes" and "no", so every page is built from
   speech bubbles: the green-blue voice agrees, the pink voice disagrees. Each topic adds one colour of its own (--a)
   for its picture. Headings are set in a round letter (Fredoka) that fits the bubbles; reading text stays plain.
   Day and night. Motion: on the first page the two bubbles pop once; in a pack, the ideas arrive one after another
   like messages. Nothing moves with "reduce motion" or on weak phones (html.lk-lite).
   Every rule starts with #tp so the site's own styles cannot change it. Printing: the rules at the end. */

@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/fredoka-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/fredoka-latin-wght-normal.woff2') format('woff2'); }

#tp { --bg: #F3F1FA; --paper: #FFFFFF; --ink: #1E1A33; --soft: #5C5676; --line: #DCD7EC; --yes: #087F72; --yesbg: #D9F4EF; --no: #C42A62; --nobg: #FCE1EB;
  --a: #5B5BD6; --disp: 'Fredoka', 'Nunito', 'Trebuchet MS', sans-serif;
  display: block; max-width: 1040px; margin: 0 auto; padding: clamp(14px, 3vw, 30px) clamp(12px, 3vw, 24px) 64px; color: var(--ink); }
html.dark #tp { --bg: #14121F; --paper: #1D1A2C; --ink: #F0EDFA; --soft: #AAA4C6; --line: #332E4A; --yes: #4AD6C3; --yesbg: #0F3430; --no: #FF82AC; --nobg: #43182C; }
html:has(#tp) body { background: #F3F1FA; } html.dark:has(#tp) body { background: #14121F; }
html:has(#tp) #cp { background: transparent; }
#tp * { box-sizing: border-box; }
#tp p, #tp h1, #tp h2, #tp h3, #tp ol, #tp ul { margin: 0; }
#tp ol, #tp ul { padding: 0; list-style: none; }
#tp [hidden] { display: none !important; }
#tp button { font: inherit; color: inherit; cursor: pointer; }
#tp a:not([class]) { color: var(--yes); font-weight: 600; }
#tp :focus-visible { outline: 3px solid var(--a); outline-offset: 3px; border-radius: 10px; }
#tp h1, #tp h2, #tp h3 { font-family: var(--disp); font-weight: 600; letter-spacing: -.01em; }

@keyframes tpPop { 0% { opacity: 0; transform: scale(.5) rotate(var(--r, 0deg)); } 70% { opacity: 1; transform: scale(1.06) rotate(var(--r, 0deg)); } 100% { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@keyframes tpRise { from { opacity: 0; transform: translateY(14px); } }
@keyframes tpMsgL { from { opacity: 0; transform: translateX(-22px) scale(.94); } }
@keyframes tpMsgR { from { opacity: 0; transform: translateX(22px) scale(.94); } }
@keyframes tpSpin { to { transform: rotate(360deg); } }

/* ───────────── shared small things ───────────── */
#tp .tp-kick { font-size: 14px; font-weight: 700; color: var(--soft); }
#tp .tp-sub { margin-top: 12px; max-width: 34em; font-size: 17.500px; line-height: 1.55; color: var(--ink); }
#tp .tp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
#tp .tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; font-size: 16px; font-weight: 700; color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: 99px; text-decoration: none; transition: transform .14s, box-shadow .14s; }
html.dark #tp .tp-btn { color: #14121F; }
#tp .tp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px var(--ink); }
#tp .tp-btn:disabled { opacity: .6; cursor: default; transform: none; }
#tp .tp-btn.ghost { color: var(--ink); background: transparent; border-color: var(--line); }
#tp .tp-btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
#tp .tp-btn.wait svg { animation: tpSpin 1s linear infinite; }
#tp .tp-tile { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: var(--ink); background: color-mix(in srgb, var(--a) 16%, var(--paper)); }
#tp .tp-tile.big { width: 104px; height: 104px; border-radius: 30px; }
#tp .tp-ic .a { fill: var(--a); stroke: none; opacity: .85; }
#tp .tp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
#tp .tp-back, #tp .tp-mini { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px 7px 6px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 99px; }
#tp .tp-mini { padding: 7px 14px; border: 2px solid var(--line); }
#tp .tp-back:hover, #tp .tp-mini:hover { background: var(--paper); }

/* ───────────── the first page ───────────── */
#tp .tp-head { position: relative; padding: clamp(26px, 6vw, 58px) clamp(4px, 2vw, 16px) clamp(20px, 4vw, 34px); }
#tp .tp-head h1 { position: relative; margin-top: 4px; font-size: clamp(50px, 11vw, 104px); font-weight: 700; line-height: .95; }
#tp .tp-head .tp-kick, #tp .tp-head .tp-sub, #tp .tp-steps { position: relative; }
#tp .tp-bub { position: absolute; display: grid; place-items: center; padding: 0 22px; height: 58px; font: 600 19px/1 var(--disp); white-space: nowrap; animation: tpPop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
#tp .tp-bub.yes { --r: -5deg; right: clamp(8px, 18vw, 230px); top: clamp(4px, 2vw, 22px); color: var(--yes); background: var(--yesbg); border-radius: 26px 26px 26px 6px; animation-delay: .15s; }
#tp .tp-bub.no { --r: 4deg; right: clamp(0px, 3vw, 40px); top: clamp(66px, 9vw, 104px); color: var(--no); background: var(--nobg); border-radius: 26px 26px 6px 26px; animation-delay: .5s; }
#tp .tp-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; counter-reset: s; }
#tp .tp-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; font-size: 15px; font-weight: 700; background: var(--paper); border: 2px solid var(--line); border-radius: 99px; }
#tp .tp-steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 15px/1 var(--disp); color: var(--paper); background: var(--ink); }

#tp .tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }   /* ten packs: two columns, five rows, like two people talking */
#tp .tp-grid li { animation: tpRise .5s ease-out both; animation-delay: calc(var(--i, 0) * .05s + .2s); }
#tp .tp-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "tile name" "tile q" "two two"; column-gap: 14px; row-gap: 2px; align-content: start; height: 100%; padding: 18px 18px 16px; color: var(--ink); text-decoration: none; background: var(--paper); border: 2px solid var(--line); border-radius: 28px 28px 28px 8px; transition: transform .16s, border-color .16s, box-shadow .16s; }
#tp .tp-grid li:nth-child(even) .tp-card { border-radius: 28px 28px 8px 28px; }
#tp .tp-card:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--a); box-shadow: 0 16px 26px -20px var(--a); }
#tp .tp-grid li:nth-child(even) .tp-card:hover { transform: translateY(-4px) rotate(.4deg); }
#tp .tp-card .tp-tile { grid-area: tile; }
#tp .tp-card > b { grid-area: name; align-self: end; font: 600 24px/1.15 var(--disp); }
#tp .tp-q { grid-area: q; font-size: 15.500px; line-height: 1.4; color: var(--soft); }
#tp .tp-two { grid-area: two; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
#tp .tp-two i, #tp .tp-two em { padding: 4px 10px; font-size: 13px; font-weight: 700; font-style: normal; border-radius: 99px; transition: transform .16s; }
#tp .tp-two i.yes { color: var(--yes); background: var(--yesbg); } #tp .tp-two i.no { color: var(--no); background: var(--nobg); }
#tp .tp-two em { color: var(--soft); background: var(--bg); }
#tp .tp-card:hover .tp-two i.yes { transform: translateX(-2px) rotate(-3deg); } #tp .tp-card:hover .tp-two i.no { transform: translateX(2px) rotate(3deg); }
#tp .tp-done { position: absolute; top: 14px; right: 16px; padding: 3px 9px; font-size: 12.500px; font-weight: 700; color: var(--yes); background: var(--yesbg); border-radius: 99px; }

#tp .tp-teach, #tp .tp-note { margin-top: 30px; padding: 22px clamp(16px, 3vw, 28px); background: var(--paper); border: 2px dashed var(--line); border-radius: 28px; }
#tp .tp-teach h2, #tp .tp-note h1 { font-size: 28px; }
#tp .tp-teach p:not(.tp-acts), #tp .tp-note p:not(.tp-acts) { margin-top: 8px; max-width: 40em; font-size: 16px; line-height: 1.55; color: var(--soft); }

/* ───────────── one pack ───────────── */
#tp .tp-hero { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; }
#tp .tp-hero h1 { font-size: clamp(38px, 8vw, 68px); font-weight: 700; line-height: 1; }
#tp .tp-stmt { grid-column: 1 / -1; position: relative; margin: 8px 0 34px; padding: 22px clamp(18px, 4vw, 34px) 26px; background: var(--paper); border: 2px solid var(--ink); border-radius: 34px 34px 34px 10px; }
#tp .tp-say { display: block; font-size: 14px; font-weight: 700; color: var(--soft); }
#tp .tp-stmt p { margin-top: 4px; font: 500 clamp(22px, 4.200vw, 34px)/1.25 var(--disp); }
#tp .tp-r { position: absolute; bottom: -22px; padding: 9px 16px; font: 600 16px/1 var(--disp); animation: tpPop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
#tp .tp-r.yes { --r: -4deg; right: 150px; color: var(--yes); background: var(--yesbg); border-radius: 18px 18px 18px 4px; animation-delay: .35s; }
#tp .tp-r.no { --r: 3deg; right: 22px; color: var(--no); background: var(--nobg); border-radius: 18px 18px 4px 18px; animation-delay: .6s; }
#tp .tp-made { grid-column: 1 / -1; margin-top: -10px; padding: 10px 14px; font-size: 14px; line-height: 1.5; color: var(--soft); background: var(--paper); border: 2px dashed var(--line); border-radius: 16px; }

#tp .tp-tabs { position: sticky; top: 59px; z-index: 5; display: flex; gap: 6px; margin: 4px -4px 0; padding: 8px 4px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(var(--bg) 70%, transparent); }
html:not(.dark) #tp .tp-tabs { --bg: #F3F1FA; }
#tp .tp-tabs::-webkit-scrollbar { display: none; }
#tp .tp-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 6px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--paper); border: 2px solid var(--line); border-radius: 99px; }
#tp .tp-tabs a:hover { border-color: var(--ink); }
#tp .tp-tabs b, #tp .tp-sec h2 > b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; font: 600 15px/1 var(--disp); color: var(--paper); background: var(--ink); }
#tp .tp-tabs a.done b { background: var(--yes); }

#tp .tp-sec { margin-top: 38px; scroll-margin-top: 124px; }
#tp .tp-sec h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: clamp(28px, 5vw, 36px); line-height: 1.1; }
#tp .tp-sec h2 > b { width: 36px; height: 36px; font-size: 20px; }
#tp .tp-sec h2 small { font: 600 14.500px/1.3 Inter, system-ui, sans-serif; letter-spacing: 0; color: var(--soft); }

/* 1 · the article */
#tp .tp-parts { display: grid; gap: 12px; margin-top: 16px; }
#tp .tp-part { position: relative; padding: 20px clamp(16px, 3vw, 26px) 16px clamp(62px, 8vw, 84px); background: var(--paper); border: 2px solid var(--line); border-radius: 24px; transition: border-color .2s; }
#tp .tp-part.read { border-color: color-mix(in srgb, var(--yes) 55%, var(--line)); }
#tp .tp-pn { position: absolute; left: clamp(16px, 2.400vw, 24px); top: 16px; font: 700 44px/1 var(--disp); color: var(--a); }
#tp .tp-part h3 { font-size: 22px; line-height: 1.2; }
#tp .tp-part p { margin-top: 8px; max-width: 66ch; font-size: 17px; line-height: 1.7; }
#tp .tp-tick { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 14px 7px 10px; font-size: 14.500px; font-weight: 700; color: var(--soft); background: transparent; border: 2px solid var(--line); border-radius: 99px; transition: color .15s, background-color .15s, border-color .15s; }
#tp .tp-tick svg { opacity: .35; }
#tp .tp-tick[aria-pressed="true"] { color: var(--yes); background: var(--yesbg); border-color: transparent; }
#tp .tp-tick[aria-pressed="true"] svg { opacity: 1; }

/* 2 · the two voices */
#tp .tp-chat { display: grid; gap: 10px; margin-top: 16px; padding: clamp(14px, 3vw, 24px); background: var(--paper); border: 2px solid var(--line); border-radius: 28px; }
#tp .tp-chat-s { justify-self: center; max-width: 30em; margin-bottom: 6px; padding: 8px 16px; font-size: 15px; font-weight: 700; text-align: center; color: var(--soft); background: var(--bg); border-radius: 99px; }
#tp .tp-b { max-width: min(78%, 520px); padding: 12px 16px 13px; }
#tp .tp-b.yes { justify-self: start; background: var(--yesbg); border-radius: 22px 22px 22px 6px; }
#tp .tp-b.no { justify-self: end; background: var(--nobg); border-radius: 22px 22px 6px 22px; }
#tp .tp-b i { display: block; font: 600 13.500px/1 var(--disp); font-style: normal; }
#tp .tp-b.yes i { color: var(--yes); } #tp .tp-b.no i { color: var(--no); }
#tp .tp-b b { display: block; margin-top: 4px; font: 600 19px/1.25 var(--disp); }
#tp .tp-b span { display: block; margin-top: 3px; font-size: 15.500px; line-height: 1.5; }
#tp .tp-chat.go .tp-b { opacity: 0; }
#tp .tp-chat.go.in .tp-b { opacity: 1; animation: tpMsgL .45s ease-out both; animation-delay: calc(var(--n, 0) * .22s); }
#tp .tp-chat.go.in .tp-b.no { animation-name: tpMsgR; }
#tp .tp-game { margin-top: 16px; padding: clamp(16px, 3vw, 26px); text-align: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 28px; }
#tp .tp-g-n { font-size: 14px; font-weight: 700; color: var(--soft); }
#tp .tp-g-c { max-width: 30em; margin: 10px auto 0; padding: 16px 18px; background: var(--bg); border-radius: 22px; animation: tpRise .3s ease-out both; }
#tp .tp-g-c b { display: block; font: 600 22px/1.25 var(--disp); } #tp .tp-g-c span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; }
#tp .tp-g-c.ok { background: var(--yesbg); } #tp .tp-g-c.bad { background: var(--nobg); }
#tp .tp-g-b { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
#tp .tp-g-b button { min-width: 130px; min-height: 50px; padding: 10px 18px; font: 600 18px/1 var(--disp); border: 0; }
#tp .tp-g-b .y { color: var(--yes); background: var(--yesbg); border-radius: 22px 22px 22px 6px; } #tp .tp-g-b .n { color: var(--no); background: var(--nobg); border-radius: 22px 22px 6px 22px; }
#tp .tp-g-b button:hover { filter: brightness(.96); } #tp .tp-g-b button:disabled { opacity: .55; cursor: default; }
#tp .tp-g-m { min-height: 1.5em; margin-top: 10px; font-size: 15.500px; font-weight: 700; }
#tp .tp-g-end { font: 600 30px/1.2 var(--disp); }

/* 3 · phrases */
#tp .tp-phr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
#tp .tp-phr li { padding: 14px 16px; background: var(--paper); border: 2px solid var(--line); border-radius: 20px; }
#tp .tp-phr b { display: inline; font: 600 19px/1.3 var(--disp); background: linear-gradient(color-mix(in srgb, var(--a) 26%, transparent), color-mix(in srgb, var(--a) 26%, transparent)) no-repeat 0 88% / 100% 34%; }
#tp .tp-phr span { display: block; margin-top: 5px; font-size: 15px; line-height: 1.45; color: var(--soft); transition: opacity .2s; }
#tp .tp-phr em { display: block; margin-top: 6px; font-size: 15.500px; line-height: 1.5; font-style: normal; transition: opacity .2s; }
#tp .tp-phr em::before { content: '“'; } #tp .tp-phr em::after { content: '”'; }
#tp .tp-phr.hide li { cursor: pointer; } #tp .tp-phr.hide li:not(.show) span, #tp .tp-phr.hide li:not(.show) em { opacity: 0; }
#tp .tp-phr.hide li:not(.show)::after { content: 'Tap to see'; display: block; margin-top: -2.600em; font-size: 14px; font-weight: 700; color: var(--soft); }

/* 4 · the discussion sheet */
#tp .tp-sheet { margin-top: 16px; padding: clamp(16px, 3vw, 28px); background: var(--paper); border: 2px solid var(--line); border-radius: 28px; }
#tp .tp-qs { display: grid; gap: 12px; counter-reset: q; }
#tp .tp-qs li { counter-increment: q; position: relative; min-height: 34px; padding: 4px 0 0 48px; font-size: 18px; line-height: 1.45; }
#tp .tp-qs li::before { content: counter(q); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; font: 600 18px/1 var(--disp); color: var(--ink); background: color-mix(in srgb, var(--a) 18%, var(--paper)); border-radius: 12px 12px 12px 4px; }
#tp .tp-qs li:nth-child(even)::before { border-radius: 12px 12px 4px 12px; }
#tp .tp-task { margin-top: 18px; padding: 14px 16px; font-size: 16.500px; line-height: 1.5; background: var(--bg); border-radius: 18px; }
#tp .tp-task b { display: block; font: 600 16px/1.2 var(--disp); color: var(--a); }

/* 5 · exam questions */
#tp .tp-ess { display: grid; gap: 12px; margin-top: 16px; }
#tp .tp-ess li { padding: 18px clamp(16px, 3vw, 24px); background: var(--paper); border: 2px solid var(--line); border-radius: 24px; }
#tp .tp-kind { display: inline-block; padding: 4px 11px; font-size: 13px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--a) 18%, var(--paper)); border-radius: 99px; }
#tp .tp-ess p { margin-top: 10px; max-width: 62ch; font-size: 18px; line-height: 1.55; }
#tp .tp-ess .tp-btn { min-height: 40px; padding: 7px 16px; font-size: 15px; }
#tp .tp-next { margin-top: 14px; font-size: 15.500px; color: var(--soft); }

#tp .tp-ownbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; padding: 14px 16px; font-size: 15px; background: var(--paper); border: 2px dashed var(--line); border-radius: 20px; }
#tp .tp-ownbar input { flex: 1 1 240px; min-width: 0; padding: 9px 12px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; }
#tp .tp-ownbar .tp-btn { min-height: 40px; padding: 7px 16px; font-size: 15px; }
#tp .tp-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; }
#tp .tp-more span { margin-right: 4px; font-size: 14px; font-weight: 700; color: var(--soft); }
#tp .tp-more a { padding: 6px 13px; font-size: 14.500px; font-weight: 700; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--a) 14%, var(--paper)); border-radius: 99px; }
#tp .tp-more a:hover { background: color-mix(in srgb, var(--a) 28%, var(--paper)); }
#tp .tp-foot { display: none; }

/* the board screen */
#tp .tp-x { position: fixed; inset: 0; z-index: 9990; display: grid; grid-template-rows: auto auto 1fr auto; gap: 2vh; padding: 4vh 5vw 3vh; color: #F4F1FF; background: #14121F; }
#tp .tp-x-s { justify-self: center; max-width: 40em; padding: 1vh 2.200vw; font: 500 clamp(16px, 2vw, 26px)/1.3 var(--disp); text-align: center; color: #C9C3E6; background: #24203A; border-radius: 99px; }
#tp .tp-x-n { justify-self: center; font: 600 clamp(16px, 2vw, 24px)/1 var(--disp); color: #4AD6C3; }
#tp .tp-x-q { align-self: center; justify-self: center; max-width: 20em; font: 500 clamp(30px, 6vw, 84px)/1.15 var(--disp); text-align: center; outline: none; }
#tp .tp-x-b { display: flex; justify-content: center; gap: 12px; }
#tp .tp-x-b button { min-width: 110px; min-height: 52px; padding: 10px 22px; font: 600 19px/1 var(--disp); color: #F4F1FF; background: #24203A; border: 2px solid #3B3558; border-radius: 99px; }
#tp .tp-x-b button:hover { border-color: #F4F1FF; }
#tp .tp-x-b #tp-x-next { color: #14121F; background: #4AD6C3; border-color: #4AD6C3; }

/* ───────────── for teachers: the maker ───────────── */
#tp .tp-mk-head h1 { margin-top: 4px; font-size: clamp(38px, 8vw, 64px); font-weight: 700; line-height: 1; }
#tp .tp-form { margin-top: 22px; padding: clamp(16px, 3vw, 26px); background: var(--paper); border: 2px solid var(--ink); border-radius: 30px 30px 30px 10px; }
#tp .tp-form > label, #tp .tp-lv legend { display: block; padding: 0; font: 600 18px/1.2 var(--disp); }
#tp .tp-form textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; font: inherit; font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 16px; resize: vertical; }
#tp .tp-lv { margin: 16px 0 0; padding: 0; border: 0; }
#tp .tp-lv label { display: inline-flex; align-items: center; gap: 8px; margin: 8px 10px 0 0; padding: 8px 14px; font-size: 15.500px; font-weight: 600; border: 2px solid var(--line); border-radius: 99px; cursor: pointer; }
#tp .tp-lv label:has(input:checked) { border-color: var(--ink); background: var(--bg); }
#tp .tp-lv input { accent-color: var(--yes); }
#tp .tp-lim { font-size: 14px; font-weight: 700; color: var(--soft); }
#tp .tp-msg { min-height: 1.4em; margin-top: 10px; font-size: 15.500px; font-weight: 700; color: var(--no); }
#tp .tp-msg.ok { color: var(--yes); }
#tp .tp-warn { margin-top: 6px; font-size: 14px; color: var(--soft); }
#tp .tp-mine { margin-top: 30px; }
#tp .tp-mine h2 { font-size: 28px; }
#tp .tp-empty { margin-top: 8px; color: var(--soft); }
#tp .tp-mine ul { display: grid; gap: 8px; margin-top: 12px; }
#tp .tp-mine li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; }
#tp .tp-mine li a { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 0; color: var(--ink); text-decoration: none; }
#tp .tp-mine li b { font: 600 19px/1.2 var(--disp); } #tp .tp-mine li small { font-size: 13.500px; color: var(--soft); }
#tp .tp-del { display: grid; place-items: center; width: 42px; height: 42px; color: var(--soft); background: transparent; border: 0; border-radius: 50%; }
#tp .tp-del:hover { color: var(--no); background: var(--nobg); }

@media (max-width: 720px) {
  #tp .tp-bub { position: static; display: inline-grid; height: 44px; padding: 0 16px; font-size: 16px; margin: 0 6px 12px 0; }
  #tp .tp-phr { grid-template-columns: 1fr; }
  #tp .tp-grid { grid-template-columns: 1fr; }
  #tp .tp-tile.big { width: 76px; height: 76px; border-radius: 24px; } #tp .tp-tile.big svg { width: 56px; height: 56px; }
  #tp .tp-r.yes { right: 132px; } #tp .tp-r.no { right: 14px; }
  #tp .tp-b { max-width: 88%; }
  #tp .tp-tabs { top: 56px; }
  #tp .tp-acts .tp-btn { flex: 1 1 auto; }
  #tp .tp-ess .tp-acts .tp-btn { flex: 0 1 auto; }
}
@media (prefers-reduced-motion: reduce) { #tp *, #tp *::before { animation: none !important; transition: none !important; } #tp .tp-chat.go .tp-b { opacity: 1; } }
html.lk-lite #tp *, html.lk-lite #tp *::before { animation: none !important; transition: none !important; }
html.lk-lite #tp .tp-chat.go .tp-b { opacity: 1; }

/* ───────────── printing: the article (html.tp-p-read) or the discussion sheet (html.tp-p-sheet) ───────────── */
@media print {
  html[class*="tp-p-"] .lk-top, html[class*="tp-p-"] .lk-bottom, html[class*="tp-p-"] .lk-foot, html[class*="tp-p-"] .lk-scrim, html[class*="tp-p-"] .lk-sheet, html[class*="tp-p-"] .cp-toast, html[class*="tp-p-"] footer { display: none !important; }
  html[class*="tp-p-"], html[class*="tp-p-"] body { background: #fff !important; }
  html[class*="tp-p-"] #tp { --bg: #fff; --paper: #fff; --ink: #000; --soft: #333; --line: #999; --yes: #000; --no: #000; --yesbg: #fff; --nobg: #fff; max-width: none; padding: 0; color: #000; }
  html[class*="tp-p-"] #tp * { animation: none !important; box-shadow: none !important; }
  html[class*="tp-p-"] #tp .tp-top, html[class*="tp-p-"] #tp .tp-tabs, html[class*="tp-p-"] #tp .tp-acts, html[class*="tp-p-"] #tp .tp-more, html[class*="tp-p-"] #tp .tp-x, html[class*="tp-p-"] #tp .tp-ownbar,
  html[class*="tp-p-"] #tp .tp-tick, html[class*="tp-p-"] #tp .tp-r, html[class*="tp-p-"] #tp .tp-kick, html[class*="tp-p-"] #tp .tp-tile, html[class*="tp-p-"] #tp .tp-game, html[class*="tp-p-"] #tp .tp-made, html[class*="tp-p-"] #tp .tp-sec h2 small { display: none !important; }
  html.tp-p-read #tp #ideas, html.tp-p-read #tp #talk, html.tp-p-read #tp #write { display: none !important; }
  html.tp-p-sheet #tp #read, html.tp-p-sheet #tp #ideas, html.tp-p-sheet #tp #write { display: none !important; }
  html.tp-p-sheet #tp #talk { order: -1; }
  html[class*="tp-p-"] #tp { display: flex; flex-direction: column; }
  html[class*="tp-p-"] #tp .tp-hero { order: -3; display: block; } html[class*="tp-p-"] #tp .tp-hero h1 { font-size: 26pt; }
  html[class*="tp-p-"] #tp .tp-stmt { margin: 6pt 0 0; padding: 8pt 12pt; border: 1.500pt solid #000; border-radius: 12pt; } html[class*="tp-p-"] #tp .tp-stmt p { font-size: 15pt; }
  html[class*="tp-p-"] #tp .tp-sec { margin-top: 14pt; } html[class*="tp-p-"] #tp .tp-sec h2 { font-size: 16pt; } html[class*="tp-p-"] #tp .tp-sec h2 > b { display: none; }
  html[class*="tp-p-"] #tp .tp-part, html[class*="tp-p-"] #tp .tp-sheet, html[class*="tp-p-"] #tp .tp-phr li { border: 0; padding: 0; border-radius: 0; break-inside: avoid; }
  html[class*="tp-p-"] #tp .tp-part { padding-left: 26pt; margin-top: 4pt; } html[class*="tp-p-"] #tp .tp-pn { left: 0; top: 0; font-size: 20pt; color: #000; }
  html[class*="tp-p-"] #tp .tp-part h3 { font-size: 13pt; } html[class*="tp-p-"] #tp .tp-part p { font-size: 11.500pt; line-height: 1.5; max-width: none; }
  html[class*="tp-p-"] #tp .tp-qs { gap: 22pt; } html[class*="tp-p-"] #tp .tp-qs li { font-size: 13pt; padding-left: 28pt; min-height: 0; break-inside: avoid; }
  html[class*="tp-p-"] #tp .tp-qs li::before { width: 20pt; height: 20pt; font-size: 12pt; background: #fff; border: 1pt solid #000; border-radius: 50% !important; }
  html[class*="tp-p-"] #tp .tp-task { margin-top: 20pt; padding: 8pt 10pt; border: 1pt dashed #000; border-radius: 8pt; font-size: 12pt; } html[class*="tp-p-"] #tp .tp-task b { color: #000; }
  html[class*="tp-p-"] #tp .tp-phr { grid-template-columns: 1fr 1fr; gap: 6pt 16pt; margin-top: 6pt; } html[class*="tp-p-"] #tp .tp-phr b { font-size: 11.500pt; background: none; }
  html[class*="tp-p-"] #tp .tp-phr span, html[class*="tp-p-"] #tp .tp-phr em { font-size: 10pt; margin-top: 1pt; opacity: 1 !important; } html[class*="tp-p-"] #tp .tp-phr li::after { display: none !important; }
  html.tp-p-sheet #tp .tp-phr em { display: none; }
  html[class*="tp-p-"] #tp .tp-foot { display: block; order: 99; margin-top: 16pt; padding-top: 6pt; border-top: 1pt solid #999; font-size: 9pt; color: #444; }
  @page { size: A4; margin: 16mm 15mm; }
}
