/* ==========================================================
   TinkerPy site — colourful, kid-friendly design system
   (used together with Tailwind's style.css)
   Section colours:  Home #6366F1 · Learn #10B981 · Code #3B82F6
                     App #8B5CF6 · Community #F97316 · Certify #EAB308
   ========================================================== */
:root {
  --tp-ink: #1E1B4B;
  --tp-muted: #64748B;
  --tp-line: #E7E5F5;
  --tp-bg: #FBFAFF;
  --tp-radius: 22px;
  --tp-shadow: 0 10px 30px -12px rgba(49, 46, 129, .25);
  --tp-head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}
body.tp-kid { font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body.tp-kid.tp-page { background: var(--tp-bg); color: var(--tp-ink); }
.tp-kid h1, .tp-kid h2, .tp-kid h3, .tp-head { font-family: var(--tp-head); letter-spacing: -.01em; }
.tp-ic { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------------- logo ---------------- */
.tp-logo { font-family: var(--tp-head); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.tp-logo-py { display: inline-block; margin-left: 2px; padding: 2px 6px 3px; border-radius: 8px; background: linear-gradient(135deg, #6366F1, #EC4899); color: #fff; font-size: .84em; line-height: 1; vertical-align: 2px; }
.tp-logo-lg { font-size: 34px; }

/* ---------------- top bar ---------------- */
.tp-top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--tp-line); }
.tp-top-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.tp-brand { text-decoration: none; flex-shrink: 0; }
.tp-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.tp-nav-i { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 16px; font-weight: 800; font-size: 15px; color: #334155; text-decoration: none; transition: background .2s, transform .15s; background: none; border: 0; cursor: pointer; }
.tp-nav-i:hover { background: var(--ss); transform: translateY(-1px); }
.tp-nav-i.on { background: var(--ss); color: var(--sc); box-shadow: inset 0 0 0 2px var(--sc); }
.tp-nav-ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--sc); box-shadow: 0 4px 10px -3px var(--sc); }
.tp-nav-ic .tp-ic { width: 19px; height: 19px; }
.tp-top-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tp-shop { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 14px; color: #E11D48; background: #FFF1F2; font-weight: 800; font-size: 14px; text-decoration: none; }
.tp-shop:hover { background: #FFE4E6; }
.tp-shop .tp-ic { width: 19px; height: 19px; }
.tp-join { font-weight: 800; font-size: 14px; color: #6366F1; text-decoration: none; padding: 8px 10px; }
.tp-login { padding: 9px 18px; border-radius: 14px; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(135deg, #6366F1, #8B5CF6); box-shadow: 0 6px 16px -6px #6366F1; border: 0; cursor: pointer; }
.tp-me { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #FDF2F8; color: #BE185D; font-weight: 800; text-decoration: none; }
.tp-me.on { box-shadow: inset 0 0 0 2px #EC4899; }
.tp-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px; background: linear-gradient(135deg, #EC4899, #F97316); }
.tp-avatar.sm { width: 26px; height: 26px; font-size: 13px; }

/* ---------------- phone: bottom tab bar + create sheet ---------------- */
.tp-bottom { display: none; }
@media (max-width: 1080px) { .tp-nav-i { padding-right: 8px; font-size: 14px; } .tp-shop span { display: none; } }
@media (max-width: 899px) {
  .tp-nav, .tp-join { display: none; }
  .tp-me-name { display: none; }
  .tp-me { padding: 3px; }
  .tp-top-in { padding: 8px 14px; }
  .tp-logo { font-size: 24px; }
  body.tp-kid:has(.tp-bottom) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tp-bottom {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--tp-line); box-shadow: 0 -8px 24px -12px rgba(49, 46, 129, .25);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
}
.tp-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11.5px; font-weight: 800; color: #64748B; text-decoration: none; background: none; border: 0; cursor: pointer; }
.tp-tab .tp-ic { width: 25px; height: 25px; padding: 3px; border-radius: 10px; box-sizing: content-box; transition: background .2s; }
.tp-tab.on { color: var(--sc); }
.tp-tab.on .tp-ic { background: var(--ss); }
.tp-tab-create { color: #6366F1; }
.tp-create-dot { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3B82F6, #8B5CF6); box-shadow: 0 8px 18px -6px #6366F1; border: 4px solid #fff; }
.tp-create-dot .tp-ic { width: 24px; height: 24px; padding: 0; }
.tp-tab-create.on .tp-create-dot { box-shadow: 0 0 0 3px #C7D2FE, 0 8px 18px -6px #6366F1; }
.tp-create { position: fixed; inset: 0; z-index: 60; background: rgba(30, 27, 75, .45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.tp-create.show { opacity: 1; }
.tp-create-card { position: relative; width: 100%; max-width: 1240px; max-height: calc(100vh - 24px); overflow: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .25s; }
.tp-create.show .tp-create-card { transform: none; }
@media (min-width: 900px) { .tp-create { align-items: center; } .tp-create-card { border-radius: 28px; padding: 26px 22px 20px; } }
.tp-create-card h2 { font-size: 26px; font-weight: 800; margin: 0; text-align: center; padding: 0 40px; line-height: 1.15; }
.tp-create-sub { text-align: center; color: #64748B; font-weight: 700; margin: 4px 0 16px; font-size: 14.5px; }
.tp-create-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #F1F5F9; border: 0; cursor: pointer; color: #475569; }
.tp-create-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tp-create-grid .tp-big b { font-size: 26px; }
.tp-create-grid .tp-big { padding: 16px; }
@media (max-width: 1180px) { .tp-create-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .tp-create-grid { grid-template-columns: 1fr 1fr; } }
.tp-big b em { font-style: normal; font-size: 13px; font-weight: 900; font-family: 'Nunito', sans-serif; background: rgba(255,255,255,.25); border-radius: 999px; padding: 3px 9px; vertical-align: 5px; margin-left: 4px; white-space: nowrap; }
@media (max-width: 620px) { .tp-create-grid { grid-template-columns: 1fr; gap: 10px; } .tp-create-card h2 { font-size: 22px; } .tp-create-sub { margin-bottom: 12px; } .tp-big-pts i:nth-child(n+4) { display: none; } .tp-big small { font-size: 13.5px; } }
.tp-big { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px; border-radius: 22px; text-decoration: none; color: #fff; text-align: left; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tp-big::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.14); right: -40px; top: -50px; pointer-events: none; }
.tp-big:hover, .tp-big:focus-visible { transform: translateY(-3px); outline: none; }
.tp-big b { font-family: var(--tp-head); font-size: 30px; line-height: 1; }
.tp-big small { font-size: 14.5px; font-weight: 800; opacity: .97; }
.tp-big-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .24); display: grid; place-items: center; }
.tp-big-ic .tp-ic { width: 28px; height: 28px; }
.tp-big-pts { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-big-pts i { font-style: normal; background: rgba(255,255,255,.22); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 800; }
.tp-big-go { margin-top: 4px; background: #fff; border-radius: 12px; padding: 8px 12px; font-weight: 900; font-size: 14px; }
.tp-big-code { background: linear-gradient(135deg, #3B82F6, #06B6D4); box-shadow: 0 10px 22px -10px #3B82F6; }
.tp-big-code .tp-big-go { color: #1D4ED8; }
.tp-big-app { background: linear-gradient(135deg, #8B5CF6, #EC4899); box-shadow: 0 10px 22px -10px #8B5CF6; }
.tp-big-app .tp-big-go { color: #7C3AED; }
.tp-big-py { background: linear-gradient(135deg, #10B981, #0EA5E9); box-shadow: 0 10px 22px -10px #10B981; }
.tp-big-py .tp-big-go { color: #047857; }
.tp-big-web { background: linear-gradient(135deg, #F97316, #EC4899); box-shadow: 0 10px 22px -10px #F97316; }
.tp-big-web .tp-big-go { color: #C2410C; }
.tp-big-appx { background: linear-gradient(135deg, #4F46E5, #7C3AED 60%, #DB2777); box-shadow: 0 10px 22px -10px #4F46E5; }
.tp-big-appx .tp-big-go { color: #4338CA; }
/* ---------- Create sheet: three groups (board · apps · code) of white icon tiles ---------- */
.tp-tgroups { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 14px; }
.tp-tg { --gc: #3B82F6; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 14px; border-radius: 24px;
  background: color-mix(in srgb, var(--gc) 6%, #fff); border: 1px solid color-mix(in srgb, var(--gc) 14%, #fff); }
.tp-tg-apps { --gc: #8B5CF6; }
.tp-tg-codes { --gc: #10B981; }
.tp-tg-h { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--gc) 80%, #000); background: #fff; border-radius: 999px; padding: 4px 12px 4px 6px; box-shadow: 0 2px 8px -4px rgba(30, 27, 75, .3); }
.tp-tg-h i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: color-mix(in srgb, var(--gc) 14%, #fff); }
.tp-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; flex: 1; }
.tp-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--tp-ink, #1E1B4B); text-align: center; border-radius: 22px; outline: none; }
/* the icon sits on its own (no card): small and calm; on hover / tap it grows, gets full colour and animates */
.tp-tile-card { position: relative; width: 100%; max-width: 76px; aspect-ratio: 1; display: grid; place-items: center; margin: 4px 0 2px; }
.tp-tile-card::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 28%, transparent), transparent 70%);
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.tp-tile-card .cri { position: relative; width: 100%; height: 100%; overflow: visible; filter: saturate(.45) opacity(.85);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), filter .25s; }
.tp-tile:hover .tp-tile-card::before, .tp-tile:focus-visible .tp-tile-card::before, .tp-tile:active .tp-tile-card::before, .tp-tile.on .tp-tile-card::before { opacity: 1; transform: scale(1); }
.tp-tile:hover .cri, .tp-tile:focus-visible .cri, .tp-tile:active .cri { transform: scale(1.28) translateY(-3px); filter: saturate(1.15) drop-shadow(0 8px 10px color-mix(in srgb, var(--tc) 45%, transparent)); }
.tp-tile.on .cri { filter: none; transform: scale(1.12); }
.tp-tile b { transition: color .2s; }
.tp-tile:hover b, .tp-tile.on b { color: var(--tc); }
/* phones and tablets have no hover: show the colour all the time, animate on tap */
@media (hover: none) { .tp-tile-card .cri { filter: none; } }
/* hover / tap: each icon does its own little thing */
.cri * { transform-box: fill-box; transform-origin: center; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-led { animation: criBlink .5s steps(2) infinite; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-blk { animation: criPop .45s ease both; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-line { stroke-dasharray: 14; animation: criType 1s linear infinite; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-bub { animation: criBob .9s ease-in-out infinite; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-pyb { animation: criPyB .9s ease-in-out infinite; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-pyy { animation: criPyY .9s ease-in-out infinite; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-tag1 { animation: criBob .9s ease-in-out infinite; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-tag2 { animation: criBob .9s ease-in-out .3s infinite; }
@keyframes criPyB { 50% { transform: translate(-3px, -3px); } }
@keyframes criPyY { 50% { transform: translate(3px, 3px); } }
@keyframes criBlink { 50% { opacity: .25; } }
@keyframes criPop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes criType { to { stroke-dashoffset: -28; } }
@keyframes criBob { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .tp-tile .cri, .tp-tile .cri * { animation: none !important; transition: none; } }
.tp-tile-ic { position: relative; width: 58%; height: 58%; border-radius: 24%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tc), var(--tc2)); }
.tp-tile-ic .tp-ic { width: 52%; height: 52%; }
.tp-tile-new, .tp-tile-here { position: absolute; font: 900 10px 'Nunito', sans-serif; font-style: normal; color: #fff; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.tp-tile-new { top: -8px; right: -22px; background: linear-gradient(135deg, #EC4899, #DB2777); box-shadow: 0 4px 10px -4px #DB2777; }
.tp-tile-here { bottom: -12px; left: 50%; transform: translateX(-50%); background: var(--tc); box-shadow: 0 4px 10px -4px var(--tc); }
.tp-tile b { font-family: var(--tp-head); font-size: 18px; line-height: 1.1; }
.tp-tile small { font-size: 12.5px; font-weight: 800; color: #64748B; line-height: 1.25; }
.tp-tile-code { --tc: #3B82F6; --tc2: #06B6D4; }
.tp-tile-app { --tc: #8B5CF6; --tc2: #EC4899; }
.tp-tile-appx { --tc: #4F46E5; --tc2: #DB2777; }
.tp-tile-py { --tc: #10B981; --tc2: #0EA5E9; }
.tp-tile-web { --tc: #F97316; --tc2: #EC4899; }
.tp-tile-game { --tc: #EC4899; --tc2: #8B5CF6; }
.tp-tg-games { --gc: #EC4899; }
#tpCreate .tp-create-card { max-width: 1020px; }
#tpCreate .tp-create-tip { justify-content: center; text-align: left; }
@media (prefers-reduced-motion: reduce) { .tp-tile-card, .tp-tile-card img { transition: none; } }
/* tablet: the board group on its own row, apps + code side by side */
@media (max-width: 900px) and (min-width: 621px) and (min-height: 521px) { .tp-tgroups { grid-template-columns: 1fr 1fr; } .tp-tg-hw { grid-column: 1 / -1; } .tp-tg-hw .tp-tiles { max-width: 50%; margin: 0 auto; width: 100%; } .tp-tg-hw .tp-tile-card { max-width: 76px; } }
/* phone (portrait): Project on top, then the two apps, then the two code tiles */
@media (max-width: 620px) and (orientation: portrait) {
  .tp-tgroups { grid-template-columns: 1fr; gap: 8px; }
  .tp-tg { padding: 6px 8px 8px; gap: 4px; border-radius: 20px; }
  .tp-tg-hw .tp-tiles { width: 50%; margin: 0 auto; }
  .tp-tiles { gap: 8px; }
  .tp-tile { gap: 0; }
  .tp-tile-card, .tp-tg-hw .tp-tile-card { max-width: 52px; margin: 2px 0 0; }
  .tp-tile b { font-size: 15.5px; }
  .tp-tile small { font-size: 11.5px; }
  .tp-tg-h { font-size: 10.5px; padding: 2px 10px 2px 4px; } .tp-tg-h i { width: 18px; height: 18px; font-size: 11px; }
  .tp-tile-new { top: -6px; right: -26px; font-size: 9px; padding: 2px 6px; }
  .tp-tile-here { display: none; }
  #tpCreate .tp-create-card h2 { font-size: 21px; } #tpCreate .tp-create-sub { margin-bottom: 10px; font-size: 13.5px; }
}
}
/* phone turned sideways: all five in one row */
@media (orientation: landscape) and (max-height: 520px) {
  .tp-tgroups { grid-template-columns: 1fr 2fr 2fr; gap: 8px; }
  .tp-tg { padding: 8px; gap: 8px; }
  .tp-tile-card { max-width: 54px; }
  .tp-tile b { font-size: 14.5px; }
  .tp-tile small { display: none; }
  #tpCreate .tp-create-tip { display: none; }
}
.tp-big-kids { background: linear-gradient(135deg, #F97316, #EAB308 55%, #EC4899); box-shadow: 0 10px 22px -10px #F97316; }
.tp-big-kids .tp-big-go { color: #C2410C; }
.tp-big-teach { background: linear-gradient(135deg, #312E81, #4F46E5 50%, #DB2777); box-shadow: 0 10px 22px -10px #4F46E5; }
.tp-big-teach .tp-big-go { color: #4338CA; }
.tp-big-ic:not(:has(svg)) { font-size: 28px; }
.tp-course .tp-create-card { max-width: 880px; }
.tp-course-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
.tp-course-grid .tp-big { padding: 20px; }
.tp-course-grid .tp-big small { font-size: 15px; }
@media (max-width: 1180px) { .tp-course-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .tp-course-grid { grid-template-columns: 1fr; gap: 10px; }
  .tp-course .tp-create-card { padding-top: 16px; }
  .tp-course .tp-create-card h2 { font-size: 21px; }
  .tp-course .tp-create-sub { font-size: 13.5px; margin-bottom: 10px; }
  .tp-course-grid .tp-big { display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; row-gap: 6px; align-items: center; padding: 14px; }
  .tp-course-grid .tp-big .tp-big-ic { width: 44px; height: 44px; font-size: 24px; border-radius: 14px; }
  .tp-course-grid .tp-big b { font-size: 21px; }
  .tp-course-grid .tp-big b em { display: inline-block; margin: 2px 0 0; }
  .tp-course-grid .tp-big small { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; }
  .tp-course-grid .tp-big-pts { display: none; }
  .tp-course-grid .tp-big-go { grid-column: 1 / -1; justify-self: start; padding: 7px 12px; font-size: 13.5px; }
  .tp-course-grid .tp-big-new { top: auto; bottom: 20px; right: 14px; }
}
.tp-big-new { position: absolute; top: 12px; right: 12px; z-index: 1; background: #fff; color: #DB2777; font: 900 11px 'Nunito', sans-serif; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
@media (max-width: 620px) { .tp-big { padding: 14px; gap: 6px; } .tp-big b { font-size: 26px; } .tp-big-ic { width: 44px; height: 44px; } }
.tp-create-tip { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 16px; padding: 10px 12px; font-size: 14px; font-weight: 700; color: #78350F; }
.tp-create-tip > span:first-child { font-size: 20px; line-height: 1; }
.tp-create-more { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.tp-create-more a { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 14px; background: #F8FAFC; border: 1px solid var(--tp-line); font-weight: 800; font-size: 13px; color: #334155; text-decoration: none; }
.tp-create-more .tp-ic { width: 17px; height: 17px; }

/* ---------------- footer ---------------- */
.tp-foot { position: relative; margin-top: 60px; background: #1E1B4B; color: #C7D2FE; }
.tp-foot-wave { position: absolute; top: -28px; left: 0; right: 0; height: 30px; background: radial-gradient(28px 28px at 28px 30px, #1E1B4B 27px, transparent 28px) repeat-x; background-size: 56px 30px; }
.tp-foot-in { max-width: 1200px; margin: 0 auto; padding: 36px 20px 18px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.tp-foot-brand p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: #A5B4FC; }
.tp-foot-brand .tp-logo span:not(.tp-logo-py) { filter: brightness(1.25); }
.tp-foot-cols { display: flex; gap: 44px; flex-wrap: wrap; }
.tp-foot h4 { margin: 0 0 10px; font-family: var(--tp-head); font-size: 17px; color: #fff; }
.tp-foot a { display: block; padding: 3px 0; color: #C7D2FE; text-decoration: none; font-weight: 700; font-size: 14px; }
.tp-foot a:hover { color: #fff; }
.tp-foot-bottom { text-align: center; padding: 14px; font-size: 12.5px; color: #818CF8; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------------- building blocks ---------------- */
.tp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.tp-section { padding: 44px 0; }
.tp-wrap.tp-section { padding-left: 16px; padding-right: 16px; }   /* keep the 16px side gutter (phones) — .tp-section's shorthand used to zero it */
.tp-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 900; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; background: var(--ss, #EEF2FF); color: var(--sc, #6366F1); }
.tp-eyebrow .tp-ic { width: 16px; height: 16px; }
.tp-h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.15; margin: 10px 0 8px; }
.tp-lead { font-size: 17px; color: var(--tp-muted); font-weight: 600; line-height: 1.6; max-width: 640px; }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 16px; font-weight: 900; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s; color: #fff; background: var(--sc, #6366F1); box-shadow: 0 10px 20px -10px var(--sc, #6366F1); }
.tp-btn:hover { transform: translateY(-2px); }
.tp-btn .tp-ic { width: 20px; height: 20px; }
.tp-btn.ghost { background: #fff; color: var(--sc, #6366F1); box-shadow: inset 0 0 0 2px var(--sc, #6366F1); }
.tp-btn.white { background: #fff; color: #4338CA; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .4); }
.tp-btn.glass { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.tp-btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 13px; }
.tp-card { background: #fff; border-radius: var(--tp-radius); border: 1px solid var(--tp-line); box-shadow: var(--tp-shadow); }
/* .tp-card has no padding of its own: .tp-pad gives a plain card the same inner spacing as the My Space cards (.tp-me-list) */
.tp-card.tp-pad { padding: 18px 20px; }
@media (max-width: 520px) { .tp-card.tp-pad { padding: 16px; } }
.tp-card-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--sc, var(--tp-ink)); }
.tp-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .tp-grid.c2 { grid-template-columns: repeat(2, 1fr); } .tp-grid.c3 { grid-template-columns: repeat(3, 1fr); } .tp-grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tp-grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.tp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--ss, #F1F5F9); color: var(--sc, #475569); }
.tp-stars { display: inline-flex; gap: 1px; }
.tp-stars svg { width: 16px; height: 16px; fill: #E2E8F0; }
.tp-stars svg.on { fill: #F59E0B; }
.tp-empty { text-align: center; padding: 34px 20px; color: var(--tp-muted); font-weight: 700; }
.tp-empty .tp-ic { width: 44px; height: 44px; color: #C7D2FE; margin-bottom: 8px; }

/* page header band used by inner pages */
.tp-band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--sc), var(--sc2, var(--sc))); }
.tp-band-in { position: relative; max-width: 1160px; margin: 0 auto; padding: 34px 16px 40px; }
.tp-band h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; margin: 8px 0 6px; line-height: 1.1; }
.tp-band p { font-size: 16.5px; font-weight: 700; opacity: .95; max-width: 620px; margin: 0; }
.tp-band .tp-eyebrow { background: rgba(255, 255, 255, .22); color: #fff; }
.tp-band::before, .tp-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.tp-band::before { width: 260px; height: 260px; right: -60px; top: -90px; }
.tp-band::after { width: 140px; height: 140px; right: 180px; bottom: -80px; background: rgba(255, 255, 255, .09); }

/* tabs (pills) */
.tp-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 18px; background: #fff; border: 1px solid var(--tp-line); box-shadow: var(--tp-shadow); flex-wrap: wrap; }
.tp-tabs a, .tp-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 14px; font-weight: 900; font-size: 14.5px; color: #475569; text-decoration: none; background: none; border: 0; cursor: pointer; }
.tp-tabs .on { background: var(--sc, #6366F1); color: #fff; box-shadow: 0 6px 14px -6px var(--sc, #6366F1); }
.tp-tabs .tp-ic { width: 18px; height: 18px; }

/* floating blobs for heroes */
.tp-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
@keyframes tpFloat { 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes tpPop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.tp-float { animation: tpFloat 5s ease-in-out infinite; }
.tp-pop { animation: tpPop .5s both; }
@media (prefers-reduced-motion: reduce) { .tp-float, .tp-pop { animation: none; } }

/* ---------------- login / register ---------------- */
.tp-auth { max-width: 980px; margin: 0 auto; padding: 34px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 860px) { .tp-auth { grid-template-columns: 1fr 1fr; padding-top: 60px; } }
.tp-auth-art { position: relative; min-height: 260px; border-radius: 30px; padding: 30px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #A78BFA 0, transparent 40%), radial-gradient(circle at 80% 70%, #F472B6 0, transparent 45%), linear-gradient(135deg, #6366F1, #3B82F6);
  display: flex; flex-direction: column; justify-content: flex-end; }
.tp-auth-art h2 { font-size: 32px; font-weight: 800; margin: 116px 0 6px; padding-right: 64px; }
.tp-auth-art p { margin: 0; font-weight: 700; opacity: .95; }
.tp-auth-bubble { position: absolute; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); animation: tpFloat 5s ease-in-out infinite; }
.tp-auth-bubble .tp-ic { width: 32px; height: 32px; }
.tp-auth-bubble.b1 { top: 26px; left: 28px; background: #3B82F6; }
.tp-auth-bubble.b2 { top: 40px; right: 40px; background: #8B5CF6; animation-delay: -1s; }
.tp-auth-bubble.b3 { top: 34px; left: 42%; background: #10B981; animation-delay: -2s; }
.tp-auth-bubble.b4 { top: 104px; right: 30px; width: 48px; height: 48px; background: #F59E0B; animation-delay: -3s; }
@media (max-width: 859px) {
  .tp-auth-art { min-height: 0; order: 2; padding: 92px 22px 24px; }   /* the icons stay in a row above the text */
  .tp-auth-art h2 { font-size: 28px; margin-top: 0; padding-right: 0; }
  .tp-auth-bubble { width: 52px; height: 52px; border-radius: 17px; } .tp-auth-bubble .tp-ic { width: 27px; height: 27px; }
  .tp-auth-bubble.b1 { top: 22px; left: 22px; } .tp-auth-bubble.b2 { top: 22px; right: 22px; }
  .tp-auth-bubble.b3 { display: grid; top: 22px; left: calc(50% - 26px); } .tp-auth-bubble.b4 { top: 28px; right: auto; left: calc(25% + 2px); width: 40px; height: 40px; }
}
.tp-auth-card { padding: 30px 24px; }
.tp-label { display: block; font-weight: 900; font-size: 14px; margin-bottom: 6px; color: #334155; }
.tp-input { width: 100%; padding: 13px 14px; border-radius: 14px; border: 2px solid #E2E8F0; font-size: 17px; font-weight: 700; outline: none; transition: border-color .2s, box-shadow .2s; background: #fff; }
.tp-input:focus { border-color: #6366F1; box-shadow: 0 0 0 4px #E0E7FF; }
.tp-pin { letter-spacing: .5em; font-size: 20px; }

/* ---------------- Home ---------------- */
.tp-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 12% 18%, rgba(236, 72, 153, .55) 0, transparent 36%), radial-gradient(circle at 88% 12%, rgba(16, 185, 129, .45) 0, transparent 32%), linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #2563EB 100%); }
.tp-hero-in { position: relative; display: grid; gap: 30px; padding-top: 46px; padding-bottom: 70px; align-items: center; }
@media (min-width: 900px) { .tp-hero-in { grid-template-columns: 1.1fr .9fr; padding-top: 70px; padding-bottom: 90px; } }
.tp-hero h1 { font-size: clamp(38px, 6.4vw, 66px); font-weight: 800; line-height: 1.02; margin: 14px 0 14px; }
.tp-hero h1 .hl1 { color: #FDE047; } .tp-hero h1 .hl2 { color: #6EE7B7; }
.tp-hero-txt > p { font-size: 18.5px; font-weight: 700; line-height: 1.55; opacity: .95; max-width: 560px; margin: 0; }
.tp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.tp-hero-note { display: flex; align-items: center; gap: 8px; font-size: 14px !important; opacity: .85 !important; }
.tp-hero-note .tp-ic { width: 20px; height: 20px; }
.tp-hero-art { position: relative; height: 330px; }
@media (max-width: 899px) { .tp-hero-art { height: 250px; max-width: 420px; width: 100%; margin: 0 auto; } }
.tp-mock-code { position: absolute; left: 0; top: 20px; width: 72%; max-width: 330px; background: #0F172A; border-radius: 20px; padding: 12px 16px 16px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6); z-index: 2; }
.tp-mock-code .dots { display: flex; gap: 6px; margin-bottom: 8px; }
.tp-mock-code .dots i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; } .tp-mock-code .dots i:nth-child(2) { background: #FBBF24; } .tp-mock-code .dots i:nth-child(3) { background: #34D399; }
.tp-mock-code pre, .tp-codebox { margin: 0; font: 700 14px/1.7 'JetBrains Mono', ui-monospace, Consolas, monospace; color: #E2E8F0; white-space: pre; overflow-x: auto; }
:is(.tp-mock-code, .tp-codebox) .k { color: #F472B6; } :is(.tp-mock-code, .tp-codebox) .f { color: #60A5FA; } :is(.tp-mock-code, .tp-codebox) .s { color: #FDE047; } :is(.tp-mock-code, .tp-codebox) .n { color: #34D399; } :is(.tp-mock-code, .tp-codebox) .c { color: #94A3B8; font-style: italic; }
.tp-mock-phone { position: absolute; right: 4%; top: 0; width: 170px; height: 300px; border-radius: 34px; background: #111827; border: 6px solid #1F2937; box-shadow: 0 26px 50px -16px rgba(0, 0, 0, .55); padding: 26px 12px 12px; z-index: 1; }
@media (max-width: 899px) { .tp-mock-phone { width: 140px; height: 240px; } }
.tp-mock-phone .notch { position: absolute; top: 8px; left: 50%; width: 50px; height: 8px; margin-left: -25px; border-radius: 6px; background: #374151; }
.tp-mock-phone .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tp-mock-phone .tiles span { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: #1E293B; box-shadow: inset 0 0 0 2px var(--t); }
.tp-mock-board { position: absolute; left: 22%; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 18px; background: #10B981; font-weight: 900; box-shadow: 0 18px 32px -14px rgba(0, 0, 0, .5); z-index: 3; }
.tp-mock-board .tp-ic { width: 28px; height: 28px; }

.tp-worlds { display: grid; gap: 16px; margin-top: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tp-world { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: 26px; background: #fff; border: 2px solid var(--ss); box-shadow: var(--tp-shadow); text-decoration: none; color: var(--tp-ink); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.tp-world::after { content: ''; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--ss); }
.tp-world:hover { transform: translateY(-4px) rotate(-.5deg); border-color: var(--sc); box-shadow: 0 18px 34px -16px var(--sc); }
.tp-world-ic { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--sc); box-shadow: 0 10px 20px -8px var(--sc); }
.tp-world-ic .tp-ic { width: 32px; height: 32px; }
.tp-world b { font-family: var(--tp-head); font-size: 25px; color: var(--sc); margin-top: 4px; }
.tp-world .d { font-weight: 700; color: var(--tp-muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.tp-world .go { display: flex; align-items: center; gap: 6px; font-weight: 900; color: var(--sc); font-size: 15px; }
.tp-world .go .tp-ic { width: 18px; height: 18px; }
.tp-world .go small { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 11px; color: var(--tp-muted); }
.tp-world .go small .tp-ic { width: 13px; height: 13px; }

.tp-journey-sec { background: linear-gradient(180deg, transparent, #F0FDF4 30%, #F0FDF4 70%, transparent); }
.tp-journey { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 800px) { .tp-journey { grid-template-columns: repeat(4, 1fr); } }
.tp-journey li { position: relative; background: #fff; border-radius: 24px; padding: 20px; box-shadow: var(--tp-shadow); border-top: 6px solid var(--sc); }
.tp-journey .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--sc); font-family: var(--tp-head); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.tp-journey b { display: block; font-family: var(--tp-head); font-size: 21px; color: var(--sc); }
.tp-journey li > span:last-child { font-weight: 700; color: var(--tp-muted); font-size: 14.5px; }

.tp-duo { display: grid; gap: 20px; }
@media (min-width: 900px) { .tp-duo { grid-template-columns: 1fr 1fr; } }
.tp-duo-card { border-radius: 30px; padding: 26px; background: linear-gradient(160deg, var(--ss), #fff 70%); border: 2px solid var(--ss); box-shadow: var(--tp-shadow); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tp-duo-card h3 { font-size: 28px; font-weight: 800; margin: 0; color: var(--sc); }
.tp-duo-card p { margin: 0; font-weight: 700; color: var(--tp-muted); line-height: 1.6; }
.tp-codebox { display: block; width: 100%; box-sizing: border-box; background: #0F172A; border-radius: 18px; padding: 16px 18px; }
.tp-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.tp-widgets span { aspect-ratio: 1.2; border-radius: 18px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 30px; box-shadow: inset 0 0 0 3px var(--t), 0 8px 16px -10px var(--t); }
.tp-widgets small { font-size: 12.5px; font-weight: 900; color: #475569; }

.tp-cert-strip { display: grid; gap: 24px; align-items: center; padding: 30px; border-radius: 32px; background: linear-gradient(135deg, #FEF9C3, #FFEDD5); border: 2px solid #FDE68A; }
@media (min-width: 900px) { .tp-cert-strip { grid-template-columns: 1.2fr 1fr; } }
.tp-cert-strip .tp-h2 { color: #854D0E; }
.tp-cert-strip .tp-lead { color: #92400E; margin-bottom: 18px; }
.tp-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tp-badge { width: 110px; height: 130px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; font-family: var(--tp-head); font-size: 18px; box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .35); }
.tp-badge .tp-ic { width: 46px; height: 46px; }
.tp-badge.b1 { background: linear-gradient(160deg, #F59E0B, #B45309); transform: rotate(-4deg); }
.tp-badge.b2 { background: linear-gradient(160deg, #94A3B8, #475569); transform: translateY(-8px); }
.tp-badge.b3 { background: linear-gradient(160deg, #FACC15, #CA8A04); transform: rotate(4deg); }
.tp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

.tp-kits { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 30px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #F43F5E, #F97316); box-shadow: 0 20px 40px -20px #F43F5E; flex-wrap: wrap; }
.tp-kits-ic { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.tp-kits-ic .tp-ic { width: 38px; height: 38px; }
.tp-kits > span:nth-child(2) { flex: 1; min-width: 220px; }
.tp-kits b { display: block; font-family: var(--tp-head); font-size: 26px; }
.tp-kits small { font-weight: 700; font-size: 15px; opacity: .95; }
.tp-kits .tp-btn { color: #E11D48; }

/* ---------------- Community cards + popup ---------------- */
.tp-ccard { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 18px; border-radius: 24px; background: #fff; border: 2px solid var(--ss); box-shadow: var(--tp-shadow); cursor: pointer; transition: transform .2s, border-color .2s; font: inherit; color: inherit; width: 100%; }
.tp-ccard:hover { transform: translateY(-3px); border-color: var(--sc); }
.tp-ccard-top { display: flex; align-items: center; gap: 8px; }
.tp-ccard-top .tp-stars { margin-left: auto; }
.tp-ccard-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--sc); }
.tp-ccard-title { font-family: var(--tp-head); font-size: 21px; font-weight: 800; line-height: 1.15; }
.tp-ccard-aim { font-weight: 700; color: var(--tp-muted); font-size: 14px; line-height: 1.45; flex: 1; }
.tp-ccard-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tp-ccard-by { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13px; color: #64748B; }
.tp-ccard-by .tp-ic { width: 15px; height: 15px; }
.tp-modal { position: fixed; inset: 0; z-index: 55; background: rgba(30, 27, 75, .5); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .18s; }
.tp-modal.show { opacity: 1; }
.tp-modal-card { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 28px; padding: 24px; border-top: 8px solid var(--sc); transform: scale(.96); transition: transform .18s; }
.tp-modal.show .tp-modal-card { transform: none; }
.tp-modal-card h3 { font-size: 27px; font-weight: 800; margin: 8px 40px 2px 0; line-height: 1.15; }
.tp-cm-by { margin: 0 0 12px; font-weight: 800; color: var(--tp-muted); }
.tp-cm-sec b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sc); }
.tp-cm-sec p { margin: 2px 0 12px; font-weight: 600; color: #334155; white-space: pre-wrap; line-height: 1.55; }
.tp-cm-yt { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: #DC2626; margin-bottom: 12px; text-decoration: none; }
.tp-cm-rate { margin-top: 16px; text-align: center; padding: 14px; border-radius: 18px; background: #FFFBEB; }
.tp-cm-rate b { font-size: 13px; color: #92400E; }
.tp-cm-stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0; }
.tp-cm-stars button { background: none; border: 0; cursor: pointer; padding: 2px; }
.tp-cm-stars svg { width: 34px; height: 34px; fill: #E2E8F0; transition: transform .15s; }
.tp-cm-stars button:hover svg { transform: scale(1.15); }
.tp-cm-stars .on svg { fill: #F59E0B; }
.tp-cm-msg { margin: 0; font-size: 13px; font-weight: 700; color: #92400E; }
.tp-login, .tp-join, .tp-shop, .tp-nav-i { white-space: nowrap; }
@media (max-width: 1320px) { .tp-shop span { display: none; } .tp-nav-i { font-size: 14px; padding-right: 9px; } .tp-nav { gap: 2px; } }
@media (max-width: 1180px) { .tp-join { display: none; } .tp-nav-ic { width: 30px; height: 30px; border-radius: 10px; } }
.tp-empty .tp-ic { display: block; margin: 0 auto 8px; }

/* ---------------- Learn ---------------- */
.tp-back { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; text-decoration: none; opacity: .9; margin-bottom: 10px; font-size: 14px; }
.tp-back .tp-ic { width: 18px; height: 18px; }
.tp-track { position: relative; padding: 24px; border-radius: 30px; background: #fff; border: 2px solid var(--ss); box-shadow: var(--tp-shadow); overflow: hidden; }
.tp-track::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, var(--sc), var(--sc2)); }
.tp-track-head { display: flex; gap: 14px; align-items: flex-start; }
.tp-track-head h2 { margin: 0; font-size: 28px; font-weight: 800; color: var(--sc); }
.tp-track-head p { margin: 2px 0 0; font-weight: 700; color: var(--tp-muted); }
.tp-track-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sc), var(--sc2)); flex-shrink: 0; box-shadow: 0 10px 20px -10px var(--sc); }
.tp-track-ic .tp-ic { width: 32px; height: 32px; }
.tp-progress { height: 12px; border-radius: 999px; background: var(--ss); margin: 18px 0 6px; overflow: hidden; }
.tp-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sc), var(--sc2)); min-width: 12px; }
.tp-track-meta { font-size: 13.5px; font-weight: 700; color: var(--tp-muted); }
.tp-mini-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 6px; }
.tp-mini-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ss); color: var(--tp-ink); font-weight: 800; text-decoration: none; }
.tp-mini-list a:hover { box-shadow: inset 0 0 0 2px var(--sc); }
.tp-mini-list .e { font-size: 20px; }
.tp-mini-list .ok { margin-left: auto; color: #10B981; width: 20px; height: 20px; }
.tp-track-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tp-learn-tip { margin-top: 22px; display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #FFFBEB; border-color: #FDE68A; }
.tp-learn-tip-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: #FACC15; color: #713F12; flex-shrink: 0; }
.tp-learn-tip b { font-family: var(--tp-head); font-size: 20px; color: #854D0E; }
.tp-learn-tip p { margin: 2px 0 0; font-weight: 700; color: #92400E; line-height: 1.55; }
.tp-learn-tip a { color: #B45309; text-decoration: underline; }

.tp-lessons { display: grid; gap: 12px; }
.tp-lesson-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: #fff; border: 2px solid var(--tp-line); box-shadow: var(--tp-shadow); text-decoration: none; color: var(--tp-ink); transition: transform .15s, border-color .15s; }
.tp-lesson-card:hover { transform: translateX(4px); border-color: var(--sc); }
.tp-lesson-card.done { border-color: #A7F3D0; background: linear-gradient(90deg, #F0FDF4, #fff 40%); }
.tp-lesson-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: var(--tp-head); font-weight: 800; font-size: 18px; color: var(--sc); background: var(--ss); }
.tp-lesson-card.done .tp-lesson-num { background: #10B981; color: #fff; }
.tp-lesson-num .tp-ic { width: 20px; height: 20px; }
.tp-lesson-emoji { font-size: 34px; flex-shrink: 0; }
.tp-lesson-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tp-lesson-txt b { font-family: var(--tp-head); font-size: 20px; line-height: 1.15; }
.tp-lesson-txt small { font-weight: 700; color: var(--tp-muted); font-size: 14px; }
.tp-lesson-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tp-lesson-tags .tp-ic { width: 13px; height: 13px; }
.tp-lesson-go { color: var(--sc); }
@media (max-width: 520px) { .tp-lesson-emoji { display: none; } }

.tp-lesson-hero { display: flex; gap: 18px; align-items: center; }
.tp-lesson-big { font-size: 64px; width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); flex-shrink: 0; }
@media (max-width: 600px) { .tp-lesson-big { font-size: 44px; width: 70px; height: 70px; border-radius: 22px; } }
.tp-lesson-layout { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 20px; align-items: start; }
@media (min-width: 960px) { .tp-lesson-layout { grid-template-columns: 1fr 320px; } .tp-lesson-side { position: sticky; top: 84px; } }
.tp-lesson-body { padding: 26px; font-size: 17px; line-height: 1.7; font-weight: 600; color: #334155; }
@media (max-width: 600px) { .tp-lesson-body { padding: 18px; } }
.tp-lesson-body h2 { font-size: 26px; font-weight: 800; color: var(--sc); margin: 22px 0 6px; }
.tp-lesson-body p { margin: 0 0 12px; }
.tp-lesson-body code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .88em; font-weight: 800; background: var(--ss); color: var(--sc); padding: 1px 6px; border-radius: 7px; }
.tp-ul { padding-left: 0; list-style: none; margin: 0 0 14px; display: grid; gap: 8px; }
.tp-ul li { position: relative; padding: 10px 14px 10px 40px; border-radius: 14px; background: #F8FAFC; }
.tp-ul li::before { content: '★'; position: absolute; left: 14px; top: 9px; color: var(--sc); }
.tp-steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: st; display: grid; gap: 10px; }
.tp-steps li { counter-increment: st; position: relative; padding: 12px 14px 12px 56px; border-radius: 16px; background: var(--ss); }
.tp-steps li::before { content: counter(st); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #fff; font-family: var(--tp-head); font-weight: 800; }
.tp-code { margin: 14px 0 18px; }
.tp-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; background: #1E293B; border-radius: 18px 18px 0 0; color: #94A3B8; font-size: 13px; font-weight: 800; }
.tp-code-bar span { display: flex; align-items: center; gap: 6px; }
.tp-code-bar .tp-ic { width: 16px; height: 16px; }
.tp-copy { background: #334155; color: #E2E8F0; border: 0; border-radius: 10px; padding: 5px 12px; font-weight: 900; font-size: 12.5px; cursor: pointer; }
.tp-code .tp-codebox { border-radius: 0 0 18px 18px; font-size: 15px; }
.tp-code figcaption { font-size: 14px; font-weight: 700; color: var(--tp-muted); padding: 6px 4px 0; }
.tp-box { border-radius: 18px; padding: 14px 16px; margin: 14px 0; border: 2px solid; }
.tp-box > b { display: block; font-family: var(--tp-head); font-size: 18px; }
.tp-box p { margin: 2px 0 0 !important; }
.tp-box.tip { background: #FFFBEB; border-color: #FDE68A; } .tp-box.tip > b { color: #B45309; }
.tp-box.wire { background: #ECFDF5; border-color: #A7F3D0; } .tp-box.wire > b { color: #047857; }
.tp-box.try { background: #FDF2F8; border-color: #FBCFE8; } .tp-box.try > b { color: #BE185D; }
.tp-lesson-end { margin: 24px 0 10px; text-align: center; }
@keyframes tpYay { 30% { transform: scale(1.12) rotate(-2deg); } 60% { transform: scale(.97); } }
.tp-yay { animation: tpYay .8s; }
.tp-prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.tp-prevnext a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--ss); color: var(--sc); font-weight: 900; text-decoration: none; max-width: 48%; }
.tp-prevnext small { display: block; font-size: 11.5px; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .06em; }
.tp-prevnext .next { margin-left: auto; text-align: right; }
.tp-side-cta { padding: 20px; text-align: center; margin-bottom: 16px; background: linear-gradient(170deg, var(--ss), #fff 60%); }
.tp-side-cta b { display: block; font-family: var(--tp-head); font-size: 22px; color: var(--sc); }
.tp-side-cta p { font-weight: 700; color: var(--tp-muted); font-size: 14px; margin: 4px 0 14px; }
.tp-side-ic { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 18px; display: grid; place-items: center; background: var(--sc); color: #fff; }
.tp-side-ic .tp-ic { width: 30px; height: 30px; }
.tp-side-err { color: #DC2626 !important; margin: 10px 0 0 !important; }
.tp-side-list { padding: 16px; }
.tp-side-list > b { font-family: var(--tp-head); font-size: 18px; color: var(--sc); }
.tp-side-list ol { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; }
.tp-side-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; color: #334155; font-weight: 700; font-size: 14px; text-decoration: none; }
.tp-side-list a:hover { background: #F8FAFC; }
.tp-side-list .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 900; background: #F1F5F9; color: #64748B; flex-shrink: 0; }
.tp-side-list .cur a { background: var(--ss); color: var(--sc); font-weight: 900; }
.tp-side-list .cur .n { background: var(--sc); color: #fff; }
.tp-side-list .done .n { background: #10B981; color: #fff; }
.w-full { width: 100%; }

/* ---------------- Certify ---------------- */
.tp-soon { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: #FEF9C3; border: 2px dashed #FACC15; color: #854D0E; font-weight: 700; margin-bottom: 22px; }
.tp-soon .tp-ic { color: #CA8A04; }
.tp-levels { display: grid; gap: 18px; }
@media (min-width: 960px) { .tp-levels { grid-template-columns: repeat(3, 1fr); } }
.tp-level { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 20px 20px; border-radius: 30px; background: linear-gradient(180deg, var(--ss), #fff 45%); border: 2px solid var(--ss); box-shadow: var(--tp-shadow); }
.tp-level .tp-badge { transform: none; }
.tp-level-txt { width: 100%; }
.tp-level-txt h2 { font-size: 30px; font-weight: 800; color: var(--sc); margin: 8px 0 10px; }
.tp-level .tp-ul li { background: #fff; border: 1px solid var(--tp-line); font-weight: 700; font-size: 14.5px; }
.tp-level .tp-ul li::before { color: var(--sc); }
.tp-level-exam { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--sc); font-size: 14px; margin: 0; }
.tp-level-exam .tp-ic { width: 18px; height: 18px; }
.tp-cert-cta { margin-top: 30px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #ECFDF5; border-color: #A7F3D0; }
.tp-cert-cta b { font-family: var(--tp-head); font-size: 24px; color: #047857; }
.tp-cert-cta p { margin: 0; font-weight: 700; color: #065F46; }
.tp-create[hidden], .tp-modal[hidden] { display: none; }

/* ---------------- My Space ---------------- */
.tp-me-hi { display: flex; align-items: center; gap: 18px; }
.tp-avatar.xl { width: 84px; height: 84px; font-size: 38px; background: rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); flex-shrink: 0; }
@media (max-width: 600px) { .tp-avatar.xl { width: 60px; height: 60px; font-size: 28px; } }
.tp-myspace { margin-top: -26px; position: relative; padding-bottom: 20px; }
.tp-continue { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 26px; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--sc), #EC4899); box-shadow: 0 18px 34px -18px var(--sc); flex-wrap: wrap; }
.tp-continue-ic { width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.tp-continue-ic .tp-ic { width: 30px; height: 30px; }
.tp-continue-txt { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.tp-continue-txt small { font-weight: 800; opacity: .9; }
.tp-continue-txt b { font-family: var(--tp-head); font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.tp-continue-txt em { font-style: normal; font-weight: 700; opacity: .85; font-size: 14px; }
.tp-continue .tp-btn { color: var(--sc); }
.tp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
@media (min-width: 800px) { .tp-stats { grid-template-columns: repeat(4, 1fr); } }
.tp-stats a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border-radius: 22px; background: #fff; border: 2px solid var(--ss); box-shadow: var(--tp-shadow); text-decoration: none; color: var(--tp-ink); }
.tp-stats .tp-ic { grid-row: span 2; width: 44px; height: 44px; padding: 9px; box-sizing: border-box; border-radius: 14px; background: var(--sc); color: #fff; }
.tp-stats b { font-family: var(--tp-head); font-size: 26px; line-height: 1; color: var(--sc); }
.tp-stats span { font-weight: 800; font-size: 13px; color: var(--tp-muted); }
.tp-me-list { padding: 18px; }
.tp-me-list-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tp-me-list-h h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--sc); flex: 1; }
.tp-me-list-h a { display: flex; align-items: center; gap: 4px; font-weight: 900; font-size: 13.5px; color: var(--sc); text-decoration: none; }
.tp-me-list-h a .tp-ic { width: 16px; height: 16px; }
.tp-me-row { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 14px; text-decoration: none; color: var(--tp-ink); }
a.tp-me-row:hover { background: var(--ss); }
.tp-me-row + .tp-me-row { border-top: 1px solid var(--tp-line); }
.tp-me-row b { font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tp-me-row small { font-weight: 700; color: var(--tp-muted); font-size: 13px; }
.tp-me-empty { font-weight: 700; color: var(--tp-muted); margin: 8px 4px; }
.tp-me-empty a { color: var(--sc); }
.tp-me-track { padding: 10px 4px; }
.tp-me-track > div:first-child { display: flex; justify-content: space-between; font-weight: 800; }
.tp-me-track > div:first-child b { color: var(--sc); }
.tp-me-track .tp-progress { margin: 6px 0; }
.tp-me-track a, .tp-me-track em { font-weight: 800; font-size: 13.5px; color: var(--sc); text-decoration: none; font-style: normal; }
.tp-me-badges { display: flex; gap: 10px; justify-content: center; padding: 6px 0; }
.tp-me-badges .tp-badge { width: 84px; height: 100px; font-size: 14px; }
.tp-me-badges .tp-badge .tp-ic { width: 34px; height: 34px; }
.tp-badge.off { filter: grayscale(1); opacity: .45; }
.tp-me-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tp-me-links a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--tp-line); font-weight: 800; font-size: 14px; color: #334155; text-decoration: none; }
.tp-me-links a .tp-ic { width: 18px; height: 18px; }
.tp-me-links a.out { color: #DC2626; margin-left: auto; }

/* community page extras */
.tp-month { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 14px; font-weight: 700; }
.tp-month span { background: rgba(255, 255, 255, .2); padding: 7px 12px; border-radius: 12px; }
.tp-comm-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tp-clear { font-weight: 800; color: #64748B; text-decoration: none; font-size: 14px; }
.tp-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tp-fchip { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; text-decoration: none; background: #fff; border: 2px solid var(--tp-line); color: #475569; }
.tp-fchip.cat:hover, .tp-fchip.cat.on { border-color: #F97316; }
.tp-fchip.theme:hover, .tp-fchip.theme.on { border-color: #10B981; }
.tp-fchip.cat.on { background: #F97316; color: #fff; }
.tp-fchip.theme.on { background: #10B981; color: #fff; }
.tp-share-cta { display: flex; gap: 14px; align-items: center; margin-top: 26px; padding: 18px; background: #FFF7ED; border-color: #FED7AA; }
.tp-share-cta .tp-side-ic { margin: 0; flex-shrink: 0; }
.tp-share-cta div > b:first-child { display: block; font-family: var(--tp-head); font-size: 20px; color: #C2410C; }
.tp-share-cta p { margin: 2px 0 0; font-weight: 700; color: #9A3412; }
.tp-proj-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 48px; }
.tp-proj-band .tp-btn { color: var(--sc); }
.tp-app-login { display: grid; gap: 24px; padding: 26px; align-items: center; }
@media (min-width: 800px) { .tp-app-login { grid-template-columns: 300px 1fr; } }
.tp-app-login h2 { font-size: 30px; font-weight: 800; color: #7C3AED; margin: 0 0 6px; }
.tp-app-login p { font-weight: 700; color: var(--tp-muted); margin: 0; }
.tp-ic.sm { width: 18px; height: 18px; }
.tp-lesson-layout > *, .tp-grid > *, .tp-duo > * { min-width: 0; }
@media (max-width: 600px) { .tp-code .tp-codebox, .tp-codebox { font-size: 12.5px; padding: 14px; } }

/* ---------------- TinkerPy popups (assets/js/tp-dialog.js) ---------------- */
.tp-dlg { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30, 27, 75, .5); opacity: 0; transition: opacity .16s; font-family: 'Nunito', system-ui, sans-serif; }
.tp-dlg.show { opacity: 1; }
.tp-dlg-card { width: 100%; max-width: 420px; background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(30, 27, 75, .55); border-top: 7px solid var(--dc); transform: translateY(10px) scale(.97); transition: transform .16s; color: #1E1B4B; }
.tp-dlg.show .tp-dlg-card { transform: none; }
.tp-dlg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tp-dlg-head h3 { margin: 0; font-family: 'Baloo 2', 'Nunito', sans-serif; font-size: 24px; font-weight: 800; line-height: 1.15; }
.tp-dlg-ic { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: var(--dc); box-shadow: 0 8px 16px -8px var(--dc); }
.tp-dlg-ic svg { width: 24px; height: 24px; }
.tp-dlg-msg { margin: 4px 0 10px; font-weight: 700; color: #475569; line-height: 1.5; }
.tp-dlg-fields label { display: block; margin: 12px 0 6px; font-weight: 900; font-size: 14px; color: #334155; }
.tp-dlg-fields label small { font-weight: 700; color: #94A3B8; }
.tp-dlg-fields input, .tp-dlg-fields textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 14px; border: 2px solid #E2E8F0; font: 700 17px 'Nunito', system-ui, sans-serif; color: #1E1B4B; outline: none; background: #F8FAFC; transition: border-color .15s, box-shadow .15s; resize: vertical; }
.tp-dlg-fields input:focus, .tp-dlg-fields textarea:focus { border-color: var(--dc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dc) 18%, transparent); background: #fff; }
.tp-dlg-err { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: #FEF2F2; color: #B91C1C; font-weight: 800; font-size: 14px; }
.tp-dlg-btns { display: flex; gap: 10px; margin-top: 18px; }
.tp-dlg-btns button { flex: 1; padding: 13px; border-radius: 15px; font-weight: 900; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.tp-dlg-cancel { background: #F1F5F9; color: #475569; }
.tp-dlg-ok { background: var(--dc); color: #fff; box-shadow: 0 10px 18px -10px var(--dc); }
.tp-dlg-ok:disabled { opacity: .6; }

/* ---------------- Home: feature sections ---------------- */
.tp-jump { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: -26px; position: relative; z-index: 2; }
.tp-jump a { display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: 18px; background: #fff; box-shadow: 0 12px 24px -14px rgba(49, 46, 129, .45); font-weight: 900; color: var(--sc); text-decoration: none; transition: transform .15s; }
.tp-jump a:hover { transform: translateY(-3px); }
.tp-jump .tp-ic { width: 34px; height: 34px; padding: 7px; box-sizing: border-box; border-radius: 12px; background: var(--sc); color: #fff; }
@media (max-width: 600px) { .tp-jump { gap: 6px; } .tp-jump a { padding: 7px 10px 7px 7px; font-size: 13px; border-radius: 14px; } .tp-jump .tp-ic { width: 28px; height: 28px; padding: 6px; } }

.tp-feat { position: relative; overflow: hidden; margin: 34px 12px 0; border-radius: 40px; color: #fff; padding: 52px 0; scroll-margin-top: 70px; }
@media (min-width: 1200px) { .tp-feat { margin-left: auto; margin-right: auto; max-width: 1240px; } }
.tp-feat::before, .tp-feat::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.tp-feat::before { width: 340px; height: 340px; right: -90px; top: -120px; }
.tp-feat::after { width: 200px; height: 200px; left: -70px; bottom: -80px; }
.tp-feat-code { background: radial-gradient(circle at 85% 90%, rgba(34, 211, 238, .55), transparent 40%), linear-gradient(135deg, #2563EB, #1D4ED8 45%, #0891B2); }
.tp-feat-app { background: radial-gradient(circle at 10% 90%, rgba(244, 114, 182, .55), transparent 40%), linear-gradient(135deg, #7C3AED, #9333EA 50%, #DB2777); }
.tp-feat-prod { background: radial-gradient(circle at 90% 10%, rgba(253, 224, 71, .6), transparent 40%), linear-gradient(135deg, #F59E0B, #F97316 60%, #EF4444); }
.tp-feat-comm { background: radial-gradient(circle at 15% 15%, rgba(250, 204, 21, .45), transparent 40%), linear-gradient(135deg, #F97316, #EC4899); }
.tp-feat-proj { background: radial-gradient(circle at 85% 85%, rgba(163, 230, 53, .5), transparent 40%), linear-gradient(135deg, #059669, #10B981 50%, #0EA5E9); }
.tp-feat .tp-eyebrow { background: rgba(255, 255, 255, .2); color: #fff; }
.tp-feat h2 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; line-height: 1.05; margin: 12px 0 12px; text-shadow: 0 3px 0 rgba(0, 0, 0, .08); }
.tp-feat-lead { font-size: 18px; font-weight: 700; line-height: 1.55; opacity: .96; max-width: 620px; margin: 0; }
.tp-feat-in { position: relative; z-index: 1; display: grid; gap: 34px; align-items: center; }
@media (min-width: 920px) { .tp-feat-in { grid-template-columns: 1.05fr .95fr; } .tp-feat-in.rev .tp-feat-txt { order: 2; } }
.tp-feat-head { position: relative; z-index: 1; text-align: center; margin-bottom: 30px; }
.tp-feat-head .tp-feat-lead { margin: 0 auto; }
.tp-feat-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.tp-feat-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .14); font-weight: 700; line-height: 1.45; }
.tp-feat-list li > span:first-child { font-size: 24px; line-height: 1; }
.tp-feat-btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.tp-feat-btns.center { justify-content: center; margin-top: 28px; }
.tp-feat-art { position: relative; min-height: 330px; display: flex; align-items: center; justify-content: center; }

/* Code art */
.tp-code-win { width: min(380px, 92%); background: #0F172A; border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); overflow: hidden; }
.tp-code-win .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1E293B; }
.tp-code-win .bar i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; } .tp-code-win .bar i:nth-child(2) { background: #FBBF24; } .tp-code-win .bar i:nth-child(3) { background: #34D399; }
.tp-code-win .bar span { margin-left: 8px; color: #94A3B8; font: 700 12.5px 'JetBrains Mono', monospace; }
.tp-code-win pre { margin: 0; padding: 18px 20px 22px; font: 700 16px/1.75 'JetBrains Mono', ui-monospace, monospace; color: #E2E8F0; }
.tp-code-win .k { color: #F472B6; } .tp-code-win .f { color: #60A5FA; } .tp-code-win .n { color: #34D399; } .tp-code-win .c { color: #94A3B8; font-style: italic; }
.tp-sim-card { position: absolute; right: 2%; bottom: 6px; padding: 14px 18px; border-radius: 22px; background: #fff; color: #1E1B4B; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); text-align: center; }
.tp-sim-card .lbl { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #3B82F6; }
.tp-sim-card .leds { display: flex; gap: 10px; margin: 10px 0 6px; justify-content: center; }
.tp-sim-card .leds i { width: 26px; height: 26px; border-radius: 50%; background: #E2E8F0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }
.tp-sim-card .leds i.blink { background: #FACC15; box-shadow: 0 0 18px #FACC15; animation: tpBlink 1s steps(1) infinite; }
.tp-sim-card .leds i.b2 { background: #22C55E; box-shadow: 0 0 18px #22C55E; animation-delay: .5s; }
@keyframes tpBlink { 50% { background: #E2E8F0; box-shadow: none; } }
.tp-sim-card .run { font-weight: 900; font-size: 13px; color: #16A34A; }

/* Home: TinkerPy Code · TinkerPy Simulator · AI Simulation Lab */
.tp-feat-tpcode { background: radial-gradient(circle at 90% 85%, rgba(34, 211, 238, .5), transparent 40%), linear-gradient(135deg, #4338CA, #4F46E5 45%, #7C3AED); }
.tp-feat-tpsim { background: radial-gradient(circle at 10% 15%, rgba(250, 204, 21, .45), transparent 38%), linear-gradient(135deg, #BE185D, #DB2777 45%, #F97316); }
.tp-feat-sim { background: radial-gradient(circle at 88% 12%, rgba(250, 204, 21, .45), transparent 38%), radial-gradient(circle at 8% 92%, rgba(52, 211, 153, .5), transparent 40%), linear-gradient(135deg, #0E7490, #0891B2 45%, #4F46E5); }
.hp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 0; }
.hp-tiles div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .95); color: #1E1B4B; box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .55); }
.hp-tiles i { font-style: normal; font-size: 26px; line-height: 1; }
.hp-tiles b { font: 800 16px/1.2 'Baloo 2', system-ui, sans-serif; margin-top: 4px; }
.hp-tiles span { font-weight: 700; font-size: 13px; line-height: 1.4; color: #475569; }
.sim-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.sim-stats span { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .16); font-weight: 800; font-size: 13px; line-height: 1.2; }
.sim-stats b { font: 800 30px/1 'Baloo 2', system-ui, sans-serif; }
.hp-art { min-height: 400px; min-width: 0; }
.tp-feat-tpcode .tp-feat-in > *, .tp-feat-flash .tp-feat-in > *, .tp-feat-tpsim .tp-feat-in > *, .tp-feat-sim .tp-feat-in > * { min-width: 0; }
.hp-win { position: relative; width: min(430px, 96%); background: #0F172A; border-radius: 24px; overflow: hidden; box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .7); color: #E2E8F0; }
.hp-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1E293B; }
.hp-bar i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; } .hp-bar i:nth-child(2) { background: #FBBF24; } .hp-bar i:nth-child(3) { background: #34D399; }
.hp-bar span { margin-left: 8px; color: #CBD5E1; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-bar em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 12px; border-radius: 999px; padding: 3px 10px; background: #16A34A; color: #fff; white-space: nowrap; }
.hp-chip { position: absolute; z-index: 3; padding: 9px 14px; border-radius: 16px; background: #fff; color: #1E1B4B; font-weight: 900; font-size: 14px; white-space: nowrap; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .55); animation: hpFloat 5s ease-in-out infinite; }
@keyframes hpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.tp-feat-tpcode .hp-chip.c1 { left: -4px; top: 2%; } .tp-feat-tpcode .hp-chip.c2 { right: -4px; top: 30%; animation-delay: -1.7s; } .tp-feat-tpcode .hp-chip.c3 { left: 2%; bottom: 3%; animation-delay: -3.3s; }
.tp-feat-tpsim .hp-chip.c1 { left: -4px; top: 3%; } .tp-feat-tpsim .hp-chip.c2 { right: -4px; bottom: -2%; animation-delay: -2s; }
.tp-feat-sim .hp-chip.c1 { left: -4px; top: 4%; } .tp-feat-sim .hp-chip.c2 { right: -4px; top: 12%; animation-delay: -1.6s; }
/* code editor */
.hp-code { font: 700 14.5px/1.85 'JetBrains Mono', ui-monospace, monospace; padding: 14px 0 60px; min-height: 330px; white-space: pre; overflow: hidden; }
.hp-code .ln { display: block; }
.hp-code .ln u { display: inline-block; width: 34px; text-align: right; margin-right: 14px; color: #475569; text-decoration: none; }
.hp-code .k { color: #F472B6; } .hp-code .f { color: #60A5FA; } .hp-code .n { color: #FDBA74; } .hp-code .c { color: #64748B; font-style: italic; }
.hp-code .h { font: italic 700 10.5px Nunito, sans-serif; color: #A5B4FC; background: rgba(165, 180, 252, .14); border-radius: 4px; padding: 0 4px; margin-right: 3px; }
.hp-cur { display: inline-block; width: 2px; height: 17px; background: #FDE047; vertical-align: -3px; animation: hpBlink 1s steps(1) infinite; }
@keyframes hpBlink { 50% { opacity: 0; } }
.hp-ac { position: absolute; left: 96px; top: 186px; width: 210px; background: #1E293B; border: 1px solid #334155; border-radius: 10px; padding: 4px; font: 700 12.5px 'JetBrains Mono', monospace; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(6px); transition: .25s; }
.hp-ac.show { opacity: 1; transform: none; }
.hp-ac div { padding: 5px 8px; border-radius: 6px; color: #CBD5E1; } .hp-ac div.on { background: #4F46E5; color: #fff; }
.hp-ac small { color: #94A3B8; font-family: Nunito, sans-serif; font-size: 11px; margin-left: 6px; }
.hp-cbtn { position: absolute; right: 14px; bottom: 14px; border-radius: 18px; padding: 9px 14px; font: 900 13px Nunito, sans-serif; color: #fff; background: #4F46E5; box-shadow: 0 6px 16px -4px rgba(79, 70, 229, .8); transition: background .3s; }
.hp-cbtn.ok { background: #16A34A; box-shadow: 0 6px 16px -4px rgba(22, 163, 74, .8); }
.hp-up { position: absolute; left: 14px; right: 170px; bottom: 26px; height: 8px; border-radius: 4px; background: #1E293B; overflow: hidden; opacity: 0; transition: opacity .3s; }
.hp-up.show { opacity: 1; } .hp-up i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22D3EE, #34D399); transition: width 1.6s ease; }
/* virtual board */
.hp-vs { display: grid; grid-template-columns: 205px 1fr; }
.hp-vcode { font: 700 11.5px/2 'JetBrains Mono', monospace; color: #CBD5E1; padding: 10px 0; border-right: 1px solid #1E293B; white-space: pre; overflow: hidden; min-width: 0; }
.hp-vcode div { padding: 0 8px; border-left: 3px solid transparent; transition: background .2s; }
.hp-vcode div.run { background: rgba(250, 204, 21, .16); border-left-color: #FACC15; color: #fff; }
.hp-vboard { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.hp-tile { border-radius: 16px; background: #1E293B; padding: 10px 8px 8px; text-align: center; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.hp-tile.wide { grid-column: span 2; min-height: 74px; }
.hp-tile small { color: #64748B; font: 900 11px Nunito, sans-serif; letter-spacing: .05em; }
.hp-led { width: 34px; height: 34px; border-radius: 50%; background: #334155; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); transition: .15s; }
.hp-led.on { background: #FACC15; box-shadow: 0 0 22px #FACC15; } .hp-led.g.on { background: #22C55E; box-shadow: 0 0 22px #22C55E; }
.hp-servo { position: relative; width: 60px; height: 40px; }
.hp-servo b { position: absolute; left: 4px; right: 4px; bottom: 0; height: 16px; border-radius: 5px; background: #475569; }
.hp-servo i { position: absolute; left: 30px; bottom: 10px; width: 4px; height: 32px; margin-left: -2px; border-radius: 3px; background: #F97316; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.hp-buzz { position: relative; width: 40px; height: 40px; }
.hp-buzz b { position: absolute; inset: 8px; border-radius: 50%; background: #0B0F19; box-shadow: inset 0 0 0 4px #334155; }
.hp-buzz i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #F472B6; opacity: 0; }
.hp-buzz.on i { animation: hpWave .8s ease-out infinite; } .hp-buzz.on i:nth-child(3) { animation-delay: .4s; }
@keyframes hpWave { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.hp-slider { width: 90%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #1E293B, #FDE047); position: relative; }
.hp-slider b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; left: 30%; transition: left .6s; }
.hp-val { font: 900 15px 'JetBrains Mono', monospace; color: #FDE047; }
/* lab scenes */
.hp-scene { display: none; } .hp-scene.on { display: block; animation: hpFade .5s; }
@keyframes hpFade { from { opacity: 0; } to { opacity: 1; } }
.sim-svg { display: block; width: 100%; height: auto; padding: 6px 8px 0; }
.sim-flow { animation: simFlow 1.1s linear infinite; } @keyframes simFlow { to { stroke-dashoffset: -26; } }
.sim-glow { animation: simGlow 2.4s ease-in-out infinite; filter: drop-shadow(0 0 12px #FDE047); } @keyframes simGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.hp-ping { animation: hpPing 1.6s ease-out infinite; transform-origin: 96px 120px; } .hp-ping.p2 { animation-delay: .8s; }
@keyframes hpPing { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.hp-walker { animation: hpWalk 3.2s ease-in-out infinite alternate; } @keyframes hpWalk { to { transform: translateX(-90px); } }
.hp-rotor { transform-origin: 180px 112px; animation: hpSpin .8s linear infinite; } @keyframes hpSpin { to { transform: rotate(360deg); } }
.hp-dots { display: flex; justify-content: center; gap: 6px; padding: 4px 0 14px; }
.hp-dots i { width: 8px; height: 8px; border-radius: 50%; background: #334155; transition: .3s; } .hp-dots i.on { background: #22D3EE; width: 22px; border-radius: 4px; }
@media (max-width: 600px) {
  .hp-tiles { grid-template-columns: 1fr; gap: 8px; } .hp-tiles div { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; padding: 12px; } .hp-tiles b { margin: 0; } .hp-tiles span { flex-basis: 100%; }
  .sim-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .sim-stats span { padding: 9px 10px; font-size: 11.5px; } .sim-stats b { font-size: 24px; }
  .hp-art { min-height: 360px; } .hp-code { font-size: 12px; } .hp-ac { left: 70px; top: 160px; }
  .hp-vs { grid-template-columns: 1fr; } .hp-vcode { font-size: 11px; border-right: 0; border-bottom: 1px solid #1E293B; }
  .hp-chip { font-size: 12px; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) { .hp-chip, .hp-cur, .hp-buzz i, .hp-scene, .sim-flow, .sim-glow, .hp-ping, .hp-walker, .hp-rotor { animation: none !important; } }

/* App art */
.tp-phone { position: relative; width: 250px; border-radius: 40px; background: #F5F3FF; border: 8px solid #1E1B4B; padding: 30px 14px 16px; box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .6); color: #1E1B4B; }
.tp-phone .notch { position: absolute; top: 9px; left: 50%; width: 70px; height: 10px; margin-left: -35px; border-radius: 8px; background: #1E1B4B; }
.tp-phone-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
.tp-phone-bar span { font-weight: 900; color: #16A34A; font-size: 11px; }
.tp-phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-phone-tiles span { position: relative; aspect-ratio: 1; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--t) 45%, #fff); }
.tp-phone-tiles span.on { background: color-mix(in srgb, var(--t) 20%, #fff); box-shadow: inset 0 0 0 2.5px var(--t), 0 8px 18px -10px var(--t); }
.tp-phone-tiles span.wide { grid-column: span 2; aspect-ratio: auto; flex-direction: row; gap: 10px; padding: 12px 0 24px; }
.tp-phone-tiles span.wide small { position: absolute; bottom: 5px; }
.tp-phone-tiles em { font-style: normal; font-size: 30px; }
.tp-phone-tiles span.wide em { font-size: 24px; }
.tp-phone-tiles small { font-weight: 900; font-size: 11.5px; color: #475569; }
.tp-phone-tiles .spin { display: inline-block; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tp-bubble { position: absolute; left: 4%; top: 18%; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; color: #7C3AED; font-weight: 900; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .5); }
@media (max-width: 600px) { .tp-phone { width: 220px; } .tp-bubble { left: 0; top: 4%; } }

/* Products */
.tp-boards { position: relative; z-index: 1; display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .tp-boards { grid-template-columns: 1fr 1fr; } }
.tp-board-card { position: relative; background: #fff; color: #1E1B4B; border-radius: 30px; padding: 24px; box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .5); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transition: transform .2s; }
.tp-board-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.tp-board-card.mini { --sc: #D97706; --ss: #FEF3C7; }
.tp-board-card.pro { --sc: #7C3AED; --ss: #EDE9FE; }
.tp-board-art { width: 100%; border-radius: 22px; background: var(--ss); padding: 14px 20px 6px; box-sizing: border-box; }
.tp-board-art svg { width: 100%; height: auto; display: block; }
.tp-board-card h3 { font-size: 30px; font-weight: 800; margin: 0; color: var(--sc); }
.tp-board-card p { margin: 0; font-weight: 700; color: #475569; line-height: 1.5; }
.tp-specs { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tp-specs li { padding: 6px 12px; border-radius: 999px; background: var(--ss); color: #1E1B4B; font-weight: 800; font-size: 13.5px; }
.tp-specs b { color: var(--sc); font-size: 16px; }
.tp-ribbon { position: absolute; top: 16px; right: -8px; padding: 6px 14px; border-radius: 10px 0 0 10px; background: #22C55E; color: #fff; font-weight: 900; font-size: 12.5px; box-shadow: 0 8px 16px -8px #16A34A; }

/* Community */
.tp-feat-comm .tp-ccards { position: relative; z-index: 1; }
.tp-feat-comm .tp-ccard { color: #1E1B4B; }
.tp-comm-empty { position: relative; z-index: 1; display: flex; gap: 18px; align-items: center; max-width: 620px; margin: 0 auto; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .18); border: 2px dashed rgba(255, 255, 255, .6); }
.tp-comm-trophy { font-size: 56px; animation: tpFloat 4s ease-in-out infinite; }
.tp-comm-empty b { font-family: var(--tp-head); font-size: 26px; }
.tp-comm-empty p { margin: 4px 0 0; font-weight: 700; opacity: .95; }

/* Projects */
.tp-projects { position: relative; z-index: 1; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tp-proj { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 26px; background: #fff; color: #1E1B4B; text-decoration: none; box-shadow: 0 20px 36px -22px rgba(0, 0, 0, .5); border-bottom: 6px solid var(--sc); transition: transform .2s; }
.tp-proj:hover { transform: translateY(-5px) rotate(.6deg); }
.tp-proj-e { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 36px; background: color-mix(in srgb, var(--sc) 16%, #fff); margin-bottom: 4px; }
.tp-proj b { font-family: var(--tp-head); font-size: 23px; color: var(--sc); }
.tp-proj .d { font-weight: 700; color: #475569; font-size: 14.5px; line-height: 1.45; flex: 1; }
.tp-proj-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tp-proj-foot .tp-chip { --sc: #475569; background: #F1F5F9; }
.tp-proj .go { display: flex; align-items: center; gap: 4px; font-weight: 900; font-size: 14px; color: var(--sc); }
.tp-proj .go .tp-ic { width: 17px; height: 17px; }
.tp-feat .tp-btn.white { color: #1E1B4B; }
@media (min-width: 900px) { .tp-projects { grid-template-columns: repeat(3, 1fr); } }

/* ---- TinkerPy logo + "powered by TinkerSpace.in" (tp_logo) ---- */
.tp-logo-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; vertical-align: middle; }
.tp-powered {
  display: block; margin-top: 6px; padding-left: 2px; white-space: nowrap;
  font-family: 'Nunito', system-ui, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .04em; line-height: 1.1;
  color: #94A3B8;
}
.tp-powered b { font-weight: 900; color: #6366F1; }
.tp-logo-wrap-sm .tp-logo { font-size: 20px; }
.tp-logo-wrap-sm .tp-powered { font-size: 7px; }
.tp-logo-wrap-lg .tp-powered { font-size: 9.5px; margin-top: 6px; }
.tp-logo-dark .tp-logo > span:not(.tp-logo-py) { filter: brightness(1.3) saturate(1.1); }
.tp-logo-dark .tp-powered { color: #94A3B8; }
.tp-logo-dark .tp-powered b { color: #A5B4FC; }

/* ==========================================================
   Teams · Mentor inbox · invitations
   ========================================================== */
.tp-avatar { position: relative; }
.tp-badge-dot { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #EF4444; color: #fff; font: 900 11px/18px 'Nunito', sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.tp-invite-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #10B981, #0EA5E9); box-shadow: 0 14px 30px -16px rgba(16,185,129,.8); }
.tp-invite-banner > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 700; line-height: 1.35; }
.tp-invite-banner small { display: block; opacity: .85; font-weight: 800; font-size: 12.5px; }
.tp-invite-ic { font-size: 28px; }
.tp-invite-banner .tp-btn { color: #047857; }

.tm-page { padding-top: 22px; padding-bottom: 50px; }
.tm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.tm-head h2 { margin: 0; font: 800 24px var(--tp-head); }
.tm-head h2 small { font-size: 15px; color: #8B8FB8; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tm-card { --tc: #6366F1; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 22px; text-decoration: none; color: #1E1B4B; background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--tc) 25%, #fff); box-shadow: 0 12px 26px -18px color-mix(in srgb, var(--tc) 80%, #000); transition: transform .15s, box-shadow .2s; }
.tm-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px color-mix(in srgb, var(--tc) 90%, #000); }
.tm-card b { font: 800 19px var(--tp-head); margin-top: 6px; }
.tm-card small { color: #6B6F99; font-weight: 700; }
.tm-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; font-weight: 800; color: #4C4F80; }
.tm-dot { --tc: #6366F1; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 800 22px var(--tp-head); color: #fff; background: var(--tc); flex-shrink: 0; }
.tm-card .tm-dot { background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 65%, #000)); }
.tm-dot.xl { width: 62px; height: 62px; border-radius: 18px; font-size: 32px; background: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.tm-invites { margin-bottom: 22px; padding: 16px; border-radius: 22px; background: #ECFDF5; border: 1.5px solid #A7F3D0; }
.tm-invites h2 { margin: 0 0 10px; font: 800 20px var(--tp-head); color: #047857; }
.tm-invite { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #fff; margin-top: 8px; flex-wrap: wrap; }
.tm-invite-t { flex: 1; min-width: 160px; }
.tm-invite-t b { display: block; font-size: 16px; }
.tm-invite-t small { color: #6B6F99; font-weight: 700; }
.tm-empty { text-align: center; padding: 34px 22px; }
.tm-empty-ic { font-size: 46px; }
.tm-empty h3 { font: 800 22px var(--tp-head); margin: 6px 0; }
.tm-empty p { color: #4C4F80; max-width: 520px; margin: 0 auto 16px; }
.tm-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 26px; }
.tm-how div { padding: 14px 16px; border-radius: 18px; background: #F5F3FF; }
.tm-how b { display: block; color: #4338CA; font-weight: 900; }
.tm-how span { color: #4C4F80; font-size: 14px; font-weight: 600; }
.tm-mentor-link { margin-top: 16px; color: #4C4F80; font-weight: 700; }

.tm-band-in { padding-top: 22px !important; padding-bottom: 26px !important; }
.tm-back { display: inline-flex; align-items: center; gap: 6px; color: #fff; opacity: .9; font-weight: 800; text-decoration: none; font-size: 14px; }
.tm-back .tp-ic { width: 16px; height: 16px; }
.tm-title { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.tm-title h1 { margin: 0; }
.tm-title p { margin: 4px 0 0; }
.tm-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .tm-cols { grid-template-columns: 1fr; } }
.tm-sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 10px; }
.tm-sec-h h2 { margin: 0; font: 800 19px var(--tp-head); }
.tm-sec-h small { font-size: 11px; font-weight: 900; color: #10B981; text-transform: uppercase; letter-spacing: .1em; }
.tm-sec-h small::before { content: '●'; margin-right: 4px; animation: tmBlink 1.6s infinite; }
@keyframes tmBlink { 50% { opacity: .2; } }
.tm-chat { padding: 16px; display: flex; flex-direction: column; height: min(640px, 72vh); }
.tm-msgs { flex: 1; overflow-y: auto; padding: 6px 4px; display: flex; flex-direction: column; gap: 8px; background: #F8F7FF; border-radius: 16px; }
.tm-msg { max-width: 82%; align-self: flex-start; background: #fff; border-radius: 16px 16px 16px 4px; padding: 8px 12px; box-shadow: 0 2px 6px -3px rgba(30,27,75,.25); }
.tm-msg.mine { align-self: flex-end; background: #6366F1; color: #fff; border-radius: 16px 16px 4px 16px; }
.tm-msg b { font-size: 12.5px; color: #6366F1; }
.tm-msg b em { font-style: normal; font-size: 10px; background: #FCE7F3; color: #BE185D; border-radius: 6px; padding: 1px 5px; margin-left: 4px; }
.tm-msg p { margin: 2px 0; font-weight: 600; line-height: 1.4; word-break: break-word; }
.tm-msg small { font-size: 10.5px; opacity: .6; font-weight: 700; }
.tm-send, .tm-add { display: flex; gap: 8px; margin-top: 10px; }
.tm-send input, .tm-add input { flex: 1; min-width: 0; height: 44px; border-radius: 14px; border: 1.5px solid #E0DCF7; padding: 0 14px; font: 700 15px 'Nunito', sans-serif; outline: none; }
.tm-send input:focus, .tm-add input:focus { border-color: #6366F1; }
.tm-quiet { color: #8B8FB8; font-weight: 700; text-align: center; padding: 16px 8px; margin: 0; }
.tm-side { display: flex; flex-direction: column; gap: 18px; }
.tm-box { padding: 16px; }
.tm-work { --wc: #3B82F6; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-decoration: none; color: #1E1B4B; }
.tm-work + .tm-work { border-top: 1px solid #F0EEFB; }
.tm-work:hover { background: #F8F7FF; }
.tm-work-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--wc); flex-shrink: 0; }
.tm-work-ic .tp-ic { width: 20px; height: 20px; }
.tm-work-t { flex: 1; min-width: 0; }
.tm-work-t b { display: block; font-weight: 900; overflow-wrap: anywhere; word-break: break-word; }   /* long names like Touch_Me_Not_Game wrap instead of running under the chip */
.tm-work > .pl-chip, .tm-work > .tm-acc, .tm-work > .tm-unshare { flex-shrink: 0; }
.tm-work-t small { color: #6B6F99; font-weight: 700; font-size: 12.5px; }
.tm-acc { flex-shrink: 0; font-size: 11.5px; font-weight: 900; padding: 3px 10px; border-radius: 999px; }
.tm-acc.edit { background: #DCFCE7; color: #15803D; }
.tm-acc.view { background: #FEF3C7; color: #B45309; }
.tm-unshare { flex-shrink: 0; font: 900 11.5px 'Nunito', sans-serif; padding: 3px 10px; border-radius: 999px; border: 1.5px solid #FECACA; background: #fff; color: #DC2626; cursor: pointer; margin-left: 4px; }
.tm-unshare:hover { background: #FEF2F2; } .tm-unshare:disabled { opacity: .5; }
.hub-row .tm-unshare { flex: 0 0 auto; padding: 6px 10px; border-radius: 12px; }
.tm-mem { display: flex; align-items: center; gap: 10px; padding: 8px 2px; }
.tm-mem + .tm-mem { border-top: 1px solid #F0EEFB; }
.tm-mem-t { flex: 1; min-width: 0; }
.tm-mem-t b { display: block; font-weight: 800; }
.tm-mem-t small { color: #6B6F99; font-weight: 700; font-size: 12.5px; }
.tm-x { width: 32px; height: 32px; border-radius: 10px; border: 0; background: #FEE2E2; color: #DC2626; display: grid; place-items: center; cursor: pointer; }
.tm-x .tp-ic { width: 15px; height: 15px; }
.tm-hint { font-size: 12.5px; font-weight: 700; color: #6B6F99; margin: 6px 2px 10px; }
.tm-hint.ok { color: #15803D; }
.tm-hint.bad { color: #DC2626; }
.tm-danger { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E0DCF7; }
.tm-link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #DC2626; font: 800 14px 'Nunito', sans-serif; cursor: pointer; padding: 4px 0; }
.tm-link-btn .tp-ic { width: 16px; height: 16px; }

/* =====================================================================
   My Code / My Apps — two columns: my projects (left) · Teams (right).
   Phone: Teams on top, then my projects.
   ===================================================================== */
.pl-page { padding-top: 26px; padding-bottom: 60px; }
.pl-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.pl-main { min-width: 0; }
.pl-head { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; }
.pl-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--tp-ink); }
.pl-head h2 small, .tpn-head h2 small { font: 900 12px 'Nunito', sans-serif; color: #fff; background: var(--pc, #6366F1); border-radius: 999px; padding: 2px 9px; vertical-align: 3px; margin-left: 4px; }
.pl-head.sub { margin-top: 26px; }
.pl-list { display: grid; gap: 10px; }

.pl-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 14px 14px 14px;
  background: #fff; border: 1px solid var(--tp-line); border-radius: 20px;
  box-shadow: 0 8px 22px -18px rgba(49, 46, 129, .45); transition: box-shadow .2s, transform .15s, border-color .2s;
}
.pl-row:hover { box-shadow: 0 14px 30px -18px rgba(49, 46, 129, .55); border-color: color-mix(in srgb, var(--pc, #6366F1) 35%, var(--tp-line)); }
.pl-row.is-recent { border: 2px solid color-mix(in srgb, var(--pc, #6366F1) 55%, #fff); background: linear-gradient(135deg, color-mix(in srgb, var(--pc, #6366F1) 7%, #fff), #fff 60%); }
.pl-ic {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg, #3B82F6, #06B6D4); box-shadow: 0 8px 16px -10px #3B82F6;
}
.pl-ic.app { background: linear-gradient(135deg, #6366F1, #A855F7); box-shadow: 0 8px 16px -10px #8B5CF6; }
.pl-ic.alt { background: linear-gradient(135deg, #10B981, #0EA5E9); }
.pl-ic .tp-ic { width: 24px; height: 24px; }
.is-locked .pl-ic { background: linear-gradient(135deg, #7C3AED, #DB2777); }
.pl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.pl-open { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; min-width: 0; }
.pl-open:hover .pl-name { color: var(--pc, #4F46E5); }
.pl-name { font-weight: 900; font-size: 16.5px; color: var(--tp-ink); line-height: 1.25; overflow-wrap: anywhere; display: flex; align-items: center; gap: 5px; }
.pl-lock { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #EDE9FE; color: #7C3AED; }
.pl-lock .tp-ic { width: 13px; height: 13px; }
.pl-desc { font-size: 13.5px; color: #475569; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pl-meta { font-size: 12.5px; color: #94A3B8; font-weight: 700; }
.pl-cont { color: var(--pc, #4F46E5); font-weight: 900; }
.pl-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; border: 0;
  font: 800 12px/1.2 'Nunito', sans-serif; background: #F1F5F9; color: #475569; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
button.pl-chip { cursor: pointer; transition: filter .15s, transform .1s; }
button.pl-chip:hover { filter: brightness(.96); transform: translateY(-1px); }
.pl-chip.wait { background: #FEF3C7; color: #92400E; }
.pl-chip.live { background: #EDE9FE; color: #6D28D9; box-shadow: inset 0 0 0 1.5px #C4B5FD; }
.pl-chip.bad { background: #FEE2E2; color: #B91C1C; }
.pl-chip.team.edit { background: #DCFCE7; color: #15803D; }
.pl-chip.team.view { background: #FFEDD5; color: #C2410C; }
.pl-chip.mentor { background: #FCE7F3; color: #BE185D; }
.pl-chip.friend.edit { background: #DBEAFE; color: #1D4ED8; }
.pl-chip.friend.view { background: #CCFBF1; color: #0F766E; }
.pl-chip.edited { background: #FDF2F8; color: #9D174D; }
.pl-chip.link { background: #E0F2FE; color: #0369A1; }
.pl-acts { display: flex; gap: 4px; flex-shrink: 0; align-self: center; }
.pl-act {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: #F5F3FF; color: #6366F1; transition: background .15s, color .15s, transform .1s;
}
.pl-act .tp-ic { width: 18px; height: 18px; }
.pl-act:hover { background: var(--pc, #6366F1); color: #fff; transform: translateY(-1px); }
.pl-act.del { background: #FEF2F2; color: #EF4444; }
.pl-act.del:hover { background: #EF4444; color: #fff; }
.pl-act:disabled { opacity: .35; cursor: not-allowed; transform: none; background: #F1F5F9; color: #94A3B8; }
.pl-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 38px 20px; background: #fff; border: 2px dashed var(--tp-line); border-radius: 22px; color: #64748B; font-weight: 700; }
.pl-empty b { color: var(--tp-ink); font-size: 18px; }
.pl-empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3B82F6, #06B6D4); margin-bottom: 4px; }
.pl-empty-ic.app { background: linear-gradient(135deg, #6366F1, #A855F7); }

/* team chip popover */
.pl-pop {
  position: fixed; z-index: 90; width: 270px; padding: 8px; border-radius: 18px; background: #fff;
  border: 1px solid var(--tp-line); box-shadow: 0 22px 50px -18px rgba(30, 27, 75, .45); animation: plPop .14s ease-out;
}
@keyframes plPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pl-pop-h { font-weight: 900; font-size: 13px; color: var(--tp-ink); padding: 6px 8px 8px; border-bottom: 1px solid #F1F0FA; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-pop p { margin: 4px 8px 8px; font-size: 13px; font-weight: 700; color: #475569; line-height: 1.4; }
.pl-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; font-family: inherit; color: var(--tp-ink); }
.pl-pop button > span:first-child { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #F5F3FF; flex-shrink: 0; }
.pl-pop button b { display: block; font-size: 14px; font-weight: 900; }
.pl-pop button small { display: block; font-size: 11.5px; font-weight: 700; color: #94A3B8; }
.pl-pop button:hover { background: #F8F7FF; }
.pl-pop button.on { background: #ECFDF5; box-shadow: inset 0 0 0 1.5px #86EFAC; }
.pl-pop button.on b::after { content: ' ✓'; color: #16A34A; }
.pl-pop button.rm b { color: #DC2626; }
.pl-pop button.rm > span:first-child { background: #FEF2F2; color: #DC2626; }
.tp-dlg-warn { display: block; margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: #FEF2F2; color: #B91C1C; font-weight: 900; }

/* ---------------- Teams column ---------------- */
.tpn {
  position: sticky; top: 84px; background: #fff; border: 1px solid var(--tp-line); border-radius: 24px; padding: 16px;
  box-shadow: var(--tp-shadow); display: flex; flex-direction: column; gap: 10px;
  background-image: radial-gradient(420px 160px at 100% 0, #ECFDF5 0%, transparent 70%);
}
.tpn-head { display: flex; align-items: center; gap: 8px; }
.tpn-head h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 800; color: var(--tp-ink); display: flex; align-items: center; gap: 6px; }
.tpn-head h2 small { --pc: #10B981; }
.tpn-new { display: inline-flex; align-items: center; gap: 4px; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 12px; font: 900 13px 'Nunito', sans-serif; color: #fff; background: linear-gradient(135deg, #10B981, #0EA5E9); box-shadow: 0 8px 16px -10px #10B981; }
.tpn-new .tp-ic { width: 16px; height: 16px; }
.tpn-sub { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #64748B; margin: 6px 2px 0; }
.tpn-quiet { color: #94A3B8; font-weight: 700; font-size: 14px; margin: 0; }
.tpn-dot { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; font: 800 18px var(--tp-head); color: #fff; background: var(--tc, #6366F1); box-shadow: 0 6px 14px -8px var(--tc, #6366F1); }
.tpn-invites { display: grid; gap: 8px; padding: 10px; border-radius: 18px; background: #FFFBEB; border: 1.5px solid #FDE68A; }
.tpn-invites .tpn-sub { margin: 0 2px; color: #B45309; }
.tpn-inv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 8px 10px; }
.tpn-inv-t { flex: 1; min-width: 120px; display: flex; flex-direction: column; }
.tpn-inv-t b { font-weight: 900; color: var(--tp-ink); }
.tpn-inv-t small { font-size: 12px; font-weight: 700; color: #64748B; }
.tpn-inv-b { display: flex; gap: 6px; }
.tpn-btn { border: 0; cursor: pointer; padding: 7px 12px; border-radius: 11px; font: 900 13px 'Nunito', sans-serif; background: #EEF2FF; color: #4338CA; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.tpn-btn .tp-ic { width: 16px; height: 16px; }
.tpn-btn.ok { background: #10B981; color: #fff; }
.tpn-btn.no { background: #FEE2E2; color: #B91C1C; }
.tpn-btn.done { background: #E0E7FF; color: #4338CA; cursor: default; font-size: 12px; }
.tpn-list { display: grid; gap: 8px; }
.tpn-team {
  display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 16px; text-decoration: none; color: inherit;
  background: #FAFAFF; border: 1.5px solid #EEEBFB; transition: border-color .15s, transform .1s, background .15s;
}
a.tpn-team:hover { border-color: #A7F3D0; background: #F0FDF9; transform: translateY(-1px); }
.tpn-team-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tpn-team-t b { font-weight: 900; font-size: 15px; color: var(--tp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpn-role { align-self: flex-start; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 999px; }
.tpn-role.lead { background: #FEF3C7; color: #92400E; }
.tpn-role.mem { background: #E0F2FE; color: #0369A1; }
.tpn-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11.5px; font-weight: 800; color: #94A3B8; }
.tpn-state { font-size: 12px; font-weight: 800; }
.tpn-go { color: #CBD5E1; }
.tpn-go .tp-ic { width: 18px; height: 18px; }
.tpn-team.is-hidden { background: #F3F4F6; border-color: #E5E7EB; filter: grayscale(1); }
.tpn-team.is-hidden .tpn-team-t b, .tpn-team.is-hidden .tpn-state { color: #6B7280; }
.tpn-team.is-hidden .tpn-btn { filter: none; }
.tpn-team.is-banned { background: #FEF2F2; border-color: #FCA5A5; }
.tpn-team.is-banned .tpn-dot { background: #DC2626; }
.tpn-team.is-banned .tpn-team-t b, .tpn-team.is-banned .tpn-state { color: #B91C1C; }
.tpn-team.is-banned .tpn-btn:not(.done) { background: #DC2626; color: #fff; }
.tpn-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 10px; border: 2px dashed #D1FAE5; border-radius: 18px; color: #64748B; font-weight: 700; font-size: 13.5px; }
.tpn-empty b { font-size: 16px; color: var(--tp-ink); }
.tpn-shared { display: grid; gap: 6px; }
.tpn-work { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 14px; background: #FAFAFF; border: 1px solid #EEEBFB; }
.tpn-work-a { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; min-width: 0; }
.tpn-work-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.tpn-work-ic.app { background: linear-gradient(135deg, #6366F1, #A855F7); }
.tpn-work-ic .tp-ic { width: 17px; height: 17px; }
.tpn-work-t { min-width: 0; display: flex; flex-direction: column; }
.tpn-work-t b { font-weight: 900; font-size: 14px; color: var(--tp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpn-work-t small { font-size: 11.5px; font-weight: 700; color: #94A3B8; }
.tpn-work .pl-chip { align-self: flex-start; margin-left: 41px; }
.tpn-rules { border: 0; background: none; cursor: pointer; font: 800 13px 'Nunito', sans-serif; color: #6366F1; padding: 4px; align-self: center; }
.tpn-rules:hover { text-decoration: underline; }

/* ---------------- Team rules popup ---------------- */
.tpr-wrap { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(30, 27, 75, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.tpr-wrap.show { opacity: 1; }
.tpr { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 30px 70px -20px rgba(30, 27, 75, .6); transform: translateY(8px) scale(.98); transition: transform .2s; }
.tpr-wrap.show .tpr { transform: none; }
.tpr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tpr-head > div { flex: 1; }
.tpr-head h3 { margin: 0; font-size: 22px; color: var(--tp-ink); }
.tpr-head p { margin: 0; font-weight: 700; color: #64748B; font-size: 13.5px; }
.tpr-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #D1FAE5, #E0F2FE); }
.tpr-count { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.tpr-count svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.tpr-count circle { fill: none; stroke: #E0E7FF; stroke-width: 3.5; }
.tpr-count .tpr-ring { stroke: #6366F1; stroke-dasharray: 97.4; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; stroke-linecap: round; }
.tpr-count b { position: absolute; inset: 0; display: grid; place-items: center; font: 900 15px 'Nunito', sans-serif; color: #4338CA; }
.tpr-count.done circle { stroke: #10B981; }
.tpr-count.done b { color: #059669; }
.tpr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tpr-list li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #F8F7FF; font-size: 13.5px; font-weight: 600; color: #475569; line-height: 1.45; }
.tpr-list li b { color: var(--tp-ink); font-weight: 900; }
.tpr-li-ic { font-size: 18px; flex-shrink: 0; width: 26px; text-align: center; }
.tpr-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: #FEF2F2; color: #B91C1C; font-weight: 800; font-size: 13.5px; line-height: 1.45; border: 1.5px solid #FECACA; }
.tpr-wait { text-align: center; font-weight: 800; color: #6366F1; margin: 14px 0 2px; }
.tpr-foot { margin-top: 14px; display: grid; gap: 10px; }
.tpr-name { display: grid; gap: 4px; font-weight: 900; font-size: 13px; color: #475569; }
.tpr-name input { font: 800 16px 'Nunito', sans-serif; padding: 11px 13px; border-radius: 13px; border: 2px solid var(--tp-line); outline: 0; color: var(--tp-ink); }
.tpr-name input:focus { border-color: #10B981; }
.tpr-agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 800; font-size: 14px; color: var(--tp-ink); cursor: pointer; }
.tpr-agree input { width: 20px; height: 20px; accent-color: #10B981; flex-shrink: 0; margin-top: 1px; }
.tpr-err { margin: 0; color: #DC2626; font-weight: 800; font-size: 13.5px; }
.tpr-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tpr-btn { border: 0; cursor: pointer; padding: 12px 18px; border-radius: 14px; font: 900 15px 'Nunito', sans-serif; }
.tpr-btn.ghost { background: #F1F5F9; color: #475569; }
.tpr-btn.go { background: linear-gradient(135deg, #10B981, #0EA5E9); color: #fff; box-shadow: 0 10px 20px -10px #10B981; }
.tpr-btn.go:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

@media (max-width: 900px) {
  .pl-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tpn { position: static; order: -1; }   /* phone & tablet: Teams on top, then my projects */
}
@media (max-width: 560px) {
  .pl-row { flex-wrap: wrap; padding: 12px; gap: 10px 12px; }
  .pl-ic { width: 42px; height: 42px; border-radius: 13px; }
  .pl-body { flex-basis: calc(100% - 56px); }
  .pl-acts { width: 100%; justify-content: flex-end; padding-top: 8px; border-top: 1px dashed #EEEBFB; }
  .pl-act { width: 40px; height: 36px; }
}

/* team page additions: work rows with rights chips, chat limits, deleted / report */
.tm-work-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.tm-work .pl-chip { flex-shrink: 0; }
#tmCount { font-weight: 900; color: #64748B; }
#tmCount.full { color: #DC2626; }
.tm-chat-note { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: #94A3B8; line-height: 1.4; }
.tm-full { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #FEF2F2; color: #B91C1C; font-weight: 800; font-size: 13.5px; }
.tm-hidden-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border-radius: 18px; background: #F3F4F6; border: 1.5px dashed #9CA3AF; color: #374151; font-weight: 700; }
.tm-hidden-bar span { flex: 1; min-width: 200px; }
.tm-team.is-hidden .tm-chat, .tm-team.is-hidden .tm-box { filter: grayscale(.9); }
.tm-link-btn.done { cursor: default; color: #B45309; }
.tm-link-btn.rules { color: #6366F1; }
.tm-box .tm-sec-h small { color: #64748B; letter-spacing: .02em; text-transform: none; }
.tm-box .tm-sec-h small::before { content: none; }
.tm-danger { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tm-index .tm-how { margin-top: 0; }
.tpr-foot[hidden], .tpr-wait[hidden], .tpr-err[hidden] { display: none; }
.tm-send[hidden], .tm-full[hidden] { display: none; }

/* ---------------- My Code / My Apps: search, sort, pin ---------------- */
.pl-tools { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.pl-search { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; background: #fff; border: 1.5px solid var(--tp-line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.pl-search:focus-within { border-color: var(--pc, #6366F1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc, #6366F1) 14%, transparent); }
.pl-search svg { width: 18px; height: 18px; color: #94A3B8; flex-shrink: 0; }
.pl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 700 15px 'Nunito', sans-serif; color: var(--tp-ink); }
.pl-sort { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 12px; height: 44px; background: #fff; border: 1.5px solid var(--tp-line); border-radius: 14px; }
.pl-sort span { font: 900 12px 'Nunito', sans-serif; color: #94A3B8; text-transform: uppercase; letter-spacing: .05em; }
.pl-sort select { border: 0; outline: 0; background: none; font: 800 14px 'Nunito', sans-serif; color: var(--tp-ink); cursor: pointer; padding: 6px 2px; }
.pl-none { margin: 0 0 12px; padding: 16px; text-align: center; border: 2px dashed var(--tp-line); border-radius: 18px; color: #64748B; font-weight: 700; }
.pl-row[hidden] { display: none; }
.pl-row.is-pinned { border-color: color-mix(in srgb, #F59E0B 55%, #fff); box-shadow: 0 10px 24px -18px rgba(217, 119, 6, .6); }
.pl-chip.pin { background: #FEF3C7; color: #B45309; }
.pl-row:not(.is-pinned) .pl-chip.pin { display: none; }
.pl-row:not(.is-pinned) .pl-labels:not(:has(.pl-chip:not(.pin))) { display: none; }
.pl-act.pin-btn { background: #FFFBEB; color: #D97706; }
.pl-act.pin-btn:hover { background: #F59E0B; color: #fff; }
.pl-act.pin-btn[aria-pressed="true"] { background: #F59E0B; color: #fff; }
.pl-act.pin-btn[aria-pressed="true"] svg path:first-child { fill: currentColor; }
.pl-flash { animation: plFlash .7s ease-out; }
@keyframes plFlash { 0% { transform: scale(1.015); box-shadow: 0 0 0 4px rgba(245, 158, 11, .35); } }
@media (max-width: 560px) { .pl-sort { flex: 1; } .pl-sort select { flex: 1; } }

/* =====================================================================
   App / Code intro pages (app/about.php, code/about.php)
   ===================================================================== */
.sp-hero { position: relative; overflow: hidden; color: #fff; padding: 46px 0 60px; }
.sp-hero.sp-app, .sp-end.sp-app { background: radial-gradient(circle at 12% 95%, rgba(244, 114, 182, .55), transparent 42%), radial-gradient(circle at 95% 5%, rgba(56, 189, 248, .35), transparent 38%), linear-gradient(135deg, #6D28D9, #9333EA 52%, #DB2777); }
.sp-hero.sp-code, .sp-end.sp-code { background: radial-gradient(circle at 88% 92%, rgba(34, 211, 238, .55), transparent 42%), radial-gradient(circle at 5% 5%, rgba(129, 140, 248, .45), transparent 38%), linear-gradient(135deg, #1D4ED8, #2563EB 45%, #0891B2); }
.sp-hero::before, .sp-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.sp-hero::before { width: 380px; height: 380px; right: -110px; top: -150px; }
.sp-hero::after { width: 220px; height: 220px; left: -80px; bottom: -110px; }
.sp-hero-in { position: relative; z-index: 1; display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .sp-hero-in { grid-template-columns: 1.15fr 1fr; } }
.sp-hero .tp-eyebrow { background: rgba(255, 255, 255, .2); color: #fff; }
.sp-hero h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 800; line-height: 1.02; margin: 14px 0 14px; text-shadow: 0 4px 0 rgba(0, 0, 0, .08); }
.sp-hl { background: linear-gradient(90deg, #FDE68A, #FFFFFF 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-lead { font-size: 18.5px; font-weight: 700; line-height: 1.55; opacity: .96; max-width: 620px; margin: 0; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.sp-chips span { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .17); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); font-weight: 900; font-size: 14px; }
.sp-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-btns.center { justify-content: center; }
.sp-go { font-size: 17px; padding: 15px 24px; }
.sp-note { margin: 14px 0 0; font-weight: 800; font-size: 13.5px; opacity: .9; }
.sp-note a { color: inherit; text-decoration: underline; }
.sp-hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.sp-hero-art .tp-phone { transform: rotate(-4deg); }
.sp-hero-art .tp-bubble { left: 2%; top: 6%; }
.sp-board { position: absolute; right: 0; bottom: 4%; width: 170px; padding: 10px 10px 8px; border-radius: 22px; background: rgba(255, 255, 255, .95); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .55); text-align: center; color: #1E1B4B; }
.sp-board svg { width: 100%; height: auto; display: block; }
.sp-board span { display: inline-block; margin-top: 4px; font-weight: 900; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #FEF3C7; color: #92400E; animation: spOn 2.6s infinite; }
@keyframes spOn { 0%, 55% { opacity: .35; } 62%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(250, 204, 21, .4); } }
.sp-fly { position: absolute; left: 40%; top: 32%; width: 46px; height: 46px; border-radius: 14px; background: #FDE047; color: #1E1B4B; display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .5); animation: spFly 2.6s cubic-bezier(.4, 0, .2, 1) infinite; z-index: 3; }
.sp-fly b { font: 900 22px/1 'JetBrains Mono', ui-monospace, monospace; margin-top: 4px; }
.sp-fly small { font-size: 9px; font-weight: 900; text-transform: uppercase; margin-top: -8px; }
@keyframes spFly { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 12% { opacity: 1; transform: translate(0, 0) scale(1); } 55% { transform: translate(150px, 170px) scale(1); opacity: 1; } 62%, 100% { transform: translate(160px, 180px) scale(.3); opacity: 0; } }
.sp-tap { animation: spTap 2.6s infinite; }
@keyframes spTap { 0%, 8% { transform: scale(1); } 4% { transform: scale(.9); } }
@media (max-width: 600px) { .sp-hero-art { min-height: 380px; } .sp-board { width: 130px; right: -6px; } .sp-fly { left: 30%; } }

.sp-jump { margin-top: -26px; position: relative; z-index: 2; }
.sp-sec { padding: 60px 0; scroll-margin-top: 70px; }
.sp-tint { background: linear-gradient(180deg, #F0F9FF, #FFFFFF); }
.sp-tint2 { background: linear-gradient(180deg, #ECFDF5, #FFFFFF); }
.sp-tint3 { background: linear-gradient(180deg, #FEFCE8, #FFFFFF); }
.sp-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.sp-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; line-height: 1.1; margin: 12px 0 10px; color: var(--tp-ink); }
.sp-head p { font-size: 17px; font-weight: 700; color: #475569; line-height: 1.55; margin: 0; }
.sp-word { display: inline-block; padding: 0 12px; border-radius: 14px; background: linear-gradient(135deg, #0EA5E9, #6366F1); color: #fff; transform: rotate(-2deg); }

.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.sp-steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 22px 22px; border-radius: 28px; background: #fff; border: 2px solid color-mix(in srgb, var(--sc) 25%, #fff); box-shadow: 0 18px 34px -24px var(--sc); font-weight: 700; color: #475569; line-height: 1.5; }
.sp-steps li b { font: 800 22px var(--tp-head); color: var(--tp-ink); }
.sp-n { position: absolute; top: -16px; left: 22px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 900 19px 'Nunito', sans-serif; color: #fff; background: var(--sc); box-shadow: 0 8px 16px -8px var(--sc); }
.sp-ico { font-size: 40px; line-height: 1; margin-top: 6px; }

.sp-flow { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sp-flow-card { padding: 22px; border-radius: 28px; background: #fff; border: 2px solid color-mix(in srgb, var(--sc) 25%, #fff); box-shadow: 0 18px 34px -26px var(--sc); }
.sp-flow-t { display: block; font-weight: 900; color: var(--sc); margin-bottom: 16px; }
.sp-flow-card p { margin: 14px 0 0; font-weight: 700; color: #475569; line-height: 1.55; }
.sp-flow-card code, .sp-facts code, .sp-callout code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; background: #EEF2FF; color: #4338CA; padding: 1px 6px; border-radius: 6px; }
.sp-lane { display: flex; align-items: center; gap: 6px; }
.sp-node { flex-shrink: 0; width: 78px; padding: 10px 4px; border-radius: 18px; text-align: center; font-size: 30px; line-height: 1; background: #F8FAFC; border: 2px solid #E2E8F0; }
.sp-node small { display: block; margin-top: 6px; font: 900 10.5px/1.25 'Nunito', sans-serif; color: #475569; }
.sp-node.phone { background: #F5F3FF; border-color: #C4B5FD; }
.sp-node.board { background: #ECFEFF; border-color: #67E8F9; }
.sp-node.out { background: #FFFBEB; border-color: #FCD34D; }
.sp-wire { position: relative; flex: 1; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--sc) 55%, #fff) 0 8px, transparent 8px 14px); min-width: 30px; }
.sp-wire.short { flex: .4; }
.sp-pkt { position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin-top: -15px; border-radius: 9px; display: grid; place-items: center; font: 900 16px 'JetBrains Mono', monospace; font-style: normal; color: #1E1B4B; background: #FDE047; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); animation: spPkt 2.2s ease-in-out infinite; }
@keyframes spPkt { 0% { left: -4px; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 26px); opacity: 0; } }
.sp-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 22px; }
.sp-facts div, .sp-three div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--tp-line); }
.sp-facts span, .sp-three span { font-size: 28px; }
.sp-facts b, .sp-three b { font-weight: 900; color: var(--tp-ink); font-size: 16px; }
.sp-facts small, .sp-three small { font-weight: 700; color: #64748B; font-size: 13.5px; line-height: 1.5; }

.sp-cats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.sp-cat { padding: 16px; border-radius: 24px; background: #fff; border: 2px solid color-mix(in srgb, var(--sc) 22%, #fff); box-shadow: 0 16px 30px -26px var(--sc); transition: transform .15s; }
.sp-cat:hover { transform: translateY(-3px); }
.sp-cat-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-cat-h span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--sc) 14%, #fff); }
.sp-cat-h b { font: 800 19px var(--tp-head); color: var(--tp-ink); }
.sp-cat-i { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-cat-i span { padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; background: color-mix(in srgb, var(--sc) 9%, #fff); color: color-mix(in srgb, var(--sc) 70%, #1E1B4B); }
.sp-callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(135deg, #F5F3FF, #FDF2F8); border: 2px dashed #C4B5FD; }
.sp-callout > span { font-size: 32px; }
.sp-callout b { font-weight: 900; color: var(--tp-ink); font-size: 16.5px; }
.sp-callout p { margin: 4px 0 0; font-weight: 700; color: #475569; line-height: 1.6; }

.sp-code2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.sp-codecard { padding: 16px; border-radius: 26px; background: #fff; border: 1px solid var(--tp-line); box-shadow: 0 18px 36px -26px rgba(49, 46, 129, .5); }
.sp-codecard.dark { background: #0F1630; border-color: #1E2A55; color: #E0E7FF; }
.sp-codecard-h { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: #F1EEFF; margin-bottom: 14px; }
.sp-codecard.dark .sp-codecard-h { background: #151D3B; }
.sp-tab { flex: 1; text-align: center; padding: 8px; border-radius: 10px; font-weight: 900; font-size: 13.5px; color: #64748B; }
.sp-tab.on { background: #fff; color: #1E1B4B; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .2); }
.sp-codecard.dark .sp-tab.on { background: #0A0F24; color: #A5F3FC; }
.sp-blk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; font-weight: 900; color: #fff; font-size: 14px; }
.sp-blk.hat { background: #F59E0B; border-radius: 16px 16px 4px 4px; margin-top: 8px; }
.sp-blk.cmd { background: #0E7490; margin-left: 16px; border-radius: 4px 4px 14px 14px; border-left: 4px solid #06B6D4; }
.sp-blk.hat.out { background: #F97316; }
.sp-blk.cmd.out { background: #6D28D9; border-left-color: #8B5CF6; }
.sp-blk i { font-style: normal; background: rgba(0, 0, 0, .2); padding: 2px 9px; border-radius: 999px; font-size: 12.5px; }
.sp-blk em, .sp-codecard pre em { font-style: normal; display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border-radius: 8px; background: #fff; color: #111827; font-family: 'JetBrains Mono', monospace; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.sp-codecard pre { margin: 0; font: 700 14px/1.9 'JetBrains Mono', ui-monospace, monospace; white-space: pre-wrap; }
.sp-codecard pre em { background: #86EFAC; height: 24px; min-width: 24px; box-shadow: none; }
.sp-codecard .c { color: #64748B; } .sp-codecard .k { color: #F472B6; } .sp-codecard .v { color: #67E8F9; } .sp-codecard .f { color: #FCD34D; } .sp-codecard .s { color: #C4B5FD; } .sp-codecard .n { color: #FDBA74; }
.sp-three { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }

.sp-feats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sp-feat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 24px; background: #fff; border: 1px solid var(--tp-line); box-shadow: 0 14px 28px -24px var(--sc); transition: transform .15s, box-shadow .2s; }
.sp-feat:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -22px var(--sc); }
.sp-feat-e { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--sc) 14%, #fff); }
.sp-feat b { font: 800 19px var(--tp-head); color: var(--tp-ink); }
.sp-feat small { font-weight: 700; color: #64748B; font-size: 14px; line-height: 1.5; }

.sp-end { position: relative; overflow: hidden; color: #fff; margin: 0 12px 30px; border-radius: 40px; padding: 56px 0; text-align: center; }
.sp-end-in { position: relative; z-index: 1; }
.sp-end-e { font-size: 48px; }
.sp-end h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; margin: 10px 0 8px; line-height: 1.1; }
.sp-end p { font-weight: 700; font-size: 17px; opacity: .95; margin: 0 0 22px; }
.sp-end .sp-note { margin-top: 18px; }

/* Code page extras */
.sp-codewin { width: min(420px, 100%); }
.sp-sim { position: absolute; right: 0; bottom: 0; }
.sp-explain { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.sp-explain ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-explain li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--tp-line); font-weight: 700; color: #475569; line-height: 1.5; }
.sp-explain li code { font-family: 'JetBrains Mono', monospace; font-weight: 800; color: #1D4ED8; background: #EFF6FF; padding: 1px 7px; border-radius: 7px; white-space: nowrap; }
.sp-explain li > span:first-child { font-size: 22px; line-height: 1.2; }

/* =====================================================================
   AppSpace — publish wizard (appspace/publish.php)
   ===================================================================== */
.asp-band .tp-band-in { padding-bottom: 46px; }
.asp-back { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 900; text-decoration: none; opacity: .9; margin-bottom: 10px; }
.asp-back .tp-ic { width: 18px; height: 18px; }
.asp { padding-top: 22px; padding-bottom: 60px; }
.asp-cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) { .asp-cols { grid-template-columns: minmax(0, 1fr); } }
.asp-nav { list-style: none; margin: 0 0 14px; padding: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #fff; border: 1px solid var(--tp-line); border-radius: 20px; box-shadow: var(--tp-shadow); }
.asp-nav button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; border: 0; border-radius: 14px; background: none; cursor: pointer; font: 900 14px 'Nunito', sans-serif; color: #64748B; }
.asp-nav button:disabled { opacity: .45; cursor: not-allowed; }
.asp-nav .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #EEF2FF; color: #4338CA; font-size: 13px; flex-shrink: 0; }
.asp-nav li.ok .n { background: #10B981; color: #fff; }
.asp-nav li.on button { background: linear-gradient(135deg, #7C3AED, #EC4899); color: #fff; }
.asp-nav li.on .n { background: rgba(255, 255, 255, .25); color: #fff; }
@media (max-width: 560px) { .asp-nav .t { font-size: 11.5px; } .asp-nav button { flex-direction: column; gap: 3px; padding: 8px 2px; } }
.asp-card { background: #fff; border: 1px solid var(--tp-line); border-radius: 26px; padding: 22px; box-shadow: var(--tp-shadow); }
.asp-card h2 { margin: 0 0 4px; font-size: 26px; color: var(--tp-ink); }
.asp-lead { margin: 0 0 16px; font-weight: 700; color: #64748B; }
.asp-quiet { color: #94A3B8; font-weight: 700; }
.asp-f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.asp-f > label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-weight: 900; color: var(--tp-ink); font-size: 14.5px; }
.asp-f > label small { font-weight: 700; color: #94A3B8; font-size: 12.5px; }
.asp-f input:not([type=checkbox]), .asp-f textarea, .asp-coupon input { width: 100%; font: 700 15.5px 'Nunito', sans-serif; padding: 11px 13px; border-radius: 14px; border: 2px solid var(--tp-line); outline: 0; color: var(--tp-ink); background: #fff; resize: vertical; }
.asp-f input:focus, .asp-f textarea:focus, .asp-coupon input:focus { border-color: #8B5CF6; }
.asp-f input:disabled { background: #F8FAFC; color: #64748B; }
.asp-f textarea { line-height: 1.55; }
.asp-count { align-self: flex-end; color: #94A3B8; font-weight: 800; font-size: 12px; }
.asp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.asp-auto { border: 0; cursor: pointer; padding: 3px 10px; border-radius: 999px; font: 900 12px 'Nunito', sans-serif; color: #7C3AED; background: #F5F3FF; }
.asp-auto:hover { background: #EDE9FE; }
.asp-autoall { border: 0; cursor: pointer; margin: 0 0 16px; padding: 10px 16px; border-radius: 14px; font: 900 14.5px 'Nunito', sans-serif; color: #fff; background: linear-gradient(135deg, #8B5CF6, #EC4899); box-shadow: 0 10px 20px -12px #8B5CF6; }
.asp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.asp-row.end { justify-content: flex-end; }
.asp-icon-row { flex-direction: row; align-items: center; gap: 16px; }
.asp-icon-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.asp-icon { width: 96px; height: 96px; border-radius: 26px; flex-shrink: 0; display: grid; place-items: center; cursor: pointer; overflow: hidden; border: 2.5px dashed #C4B5FD; background: #F5F3FF; color: #7C3AED; text-align: center; }
.asp-icon i { font-style: normal; font-size: 32px; font-weight: 900; line-height: 1; }
.asp-icon small { display: block; font-weight: 900; font-size: 12px; }
.asp-icon.has { border: 0; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
.asp-icon img { width: 100%; height: 100%; object-fit: cover; }
.asp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; text-decoration: none; padding: 11px 18px; border-radius: 14px; font: 900 15px 'Nunito', sans-serif; background: #EEF2FF; color: #4338CA; }
.asp-btn.sm { padding: 8px 13px; font-size: 13.5px; border-radius: 12px; }
.asp-btn.go { background: linear-gradient(135deg, #7C3AED, #EC4899); color: #fff; box-shadow: 0 12px 22px -12px #7C3AED; }
.asp-btn.big { width: 100%; padding: 16px; font-size: 17px; margin-top: 8px; }
.asp-btn.ghost { background: #F1F5F9; color: #475569; }
.asp-btn.danger { background: #FEE2E2; color: #B91C1C; }
.asp-btn:disabled { opacity: .45; cursor: not-allowed; }
.asp-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.asp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.asp-chip { border: 2px solid #FED7AA; background: #fff; color: #C2410C; cursor: pointer; padding: 5px 12px; border-radius: 999px; font: 800 13px 'Nunito', sans-serif; }
.asp-chip.on { background: #F97316; border-color: #F97316; color: #fff; }
.asp-av { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; font: 900 16px 'Nunito', sans-serif; color: #fff; background: linear-gradient(135deg, #6366F1, #EC4899); }
.asp-av.sm { width: 34px; height: 34px; font-size: 13px; }
.asp-av.lg { width: 96px; height: 96px; font-size: 32px; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
.asp-av img { width: 100%; height: 100%; object-fit: cover; }
.asp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.asp-pick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 18px; border: 2px solid var(--tp-line); background: #fff; cursor: pointer; font-family: 'Nunito', sans-serif; color: var(--tp-ink); }
.asp-pick button span { font-size: 30px; }
.asp-pick button b { font-weight: 900; font-size: 16px; }
.asp-pick button small { color: #94A3B8; font-weight: 700; }
.asp-pick button.on { border-color: #8B5CF6; background: #F5F3FF; box-shadow: 0 0 0 3px #EDE9FE; }
.asp-vis { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12.5px; font-weight: 800; color: #64748B; cursor: pointer; }
.asp-vis input { accent-color: #10B981; width: 16px; height: 16px; }
.asp-terms { max-height: 380px; overflow-y: auto; padding: 4px 16px; border-radius: 18px; background: #F8F7FF; border: 1px solid var(--tp-line); }
.asp-terms li { margin: 10px 0; font-weight: 600; color: #475569; line-height: 1.55; }
.asp-terms b { color: var(--tp-ink); }
.asp-agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 900; color: var(--tp-ink); cursor: pointer; }
.asp-agree input { width: 22px; height: 22px; accent-color: #10B981; flex-shrink: 0; }
.asp-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.asp-checks li { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; font-weight: 800; }
.asp-checks li.ok { background: #ECFDF5; color: #047857; }
.asp-checks li.no { background: #FEF2F2; color: #B91C1C; }
.asp-fix { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-weight: 700; color: #B91C1C; margin: 0 0 14px; }
.asp-price { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #FEF3C7, #FCE7F3); margin-bottom: 12px; }
.asp-price-n { font: 800 38px var(--tp-head); color: #7C2D12; white-space: nowrap; }
.asp-price-n s { font-size: 22px; color: #A8A29E; }
.asp-price b { display: block; font-weight: 900; color: var(--tp-ink); }
.asp-price small { font-weight: 700; color: #78716C; }
.asp-coupon { display: flex; gap: 8px; }
.asp-coupon input { text-transform: uppercase; }
.asp-cmsg { min-height: 20px; margin: 6px 2px 4px; font-weight: 800; color: #047857; }
.asp-cmsg.bad { color: #B91C1C; }
.asp-small { text-align: center; font-weight: 700; color: #94A3B8; font-size: 13px; margin: 8px 0 0; }
.asp-paid { padding: 14px 16px; border-radius: 16px; background: #ECFDF5; color: #047857; font-weight: 800; }
.asp-lock { text-align: center; padding: 20px; font-size: 40px; }
.asp-lock b { display: block; font-size: 20px; color: var(--tp-ink); margin: 6px 0; }
.asp-lock p { font-size: 15px; font-weight: 700; color: #64748B; }
.asp-st { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding: 16px 18px; border-radius: 22px; border: 2px solid; }
.asp-st > span { font-size: 30px; line-height: 1; }
.asp-st b { display: block; font-size: 17px; color: var(--tp-ink); }
.asp-st small { display: block; font-weight: 700; color: #475569; font-size: 14px; line-height: 1.5; margin-top: 2px; }
.asp-st.draft { background: #F8FAFC; border-color: #E2E8F0; }
.asp-st.wait { background: #FFFBEB; border-color: #FDE68A; }
.asp-st.bad { background: #FEF2F2; border-color: #FECACA; }
.asp-st.live { background: #ECFDF5; border-color: #A7F3D0; }
.asp-st.live.hid { background: #F3F4F6; border-color: #D1D5DB; }
.asp-st-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.asp-side { position: sticky; top: 84px; }
.asp-prev-h { font-weight: 900; color: #64748B; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 4px 4px 8px; }
.asp-prev { padding: 16px; border-radius: 24px; background: #fff; border: 1px solid var(--tp-line); box-shadow: var(--tp-shadow); }
.asp-prev-top { display: flex; gap: 12px; align-items: center; }
.asp-prev-ic { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, #EDE9FE, #FCE7F3); }
.asp-prev-ic img { width: 100%; height: 100%; object-fit: cover; }
.asp-prev-ic i { font-style: normal; font-size: 30px; }
.asp-prev-top b { display: block; font: 800 19px var(--tp-head); color: var(--tp-ink); line-height: 1.15; }
.asp-prev-top small { font-weight: 800; color: #94A3B8; }
.asp-prev-tag { margin: 12px 0 8px; font-weight: 700; color: #475569; line-height: 1.45; }
.asp-prev-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.asp-prev-cats span { padding: 3px 9px; border-radius: 999px; background: #FFEDD5; color: #C2410C; font-weight: 800; font-size: 11.5px; }
.asp-prev-by { display: flex; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--tp-line); }
.asp-prev-by b { display: block; font-weight: 900; color: var(--tp-ink); font-size: 14px; }
.asp-prev-by small { display: block; font-weight: 700; color: #94A3B8; font-size: 12px; }
.asp-save { text-align: center; font-weight: 800; color: #94A3B8; font-size: 12.5px; min-height: 18px; }
.asp-crop-wrap { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(30, 27, 75, .6); }
.asp-crop { background: #fff; border-radius: 26px; padding: 20px; width: min(340px, 100%); text-align: center; }
.asp-crop h3 { margin: 0; color: var(--tp-ink); }
.asp-crop p { margin: 2px 0 12px; color: #64748B; font-weight: 700; font-size: 13px; }
.asp-crop-box { margin: 0 auto; border-radius: 22px; overflow: hidden; touch-action: none; cursor: grab; box-shadow: 0 0 0 3px #C4B5FD; max-width: 100%; }
.asp-crop-box.round { border-radius: 50%; }
.asp-crop-box canvas { display: block; width: 100%; height: 100%; }
.asp-zoom { width: 100%; margin: 14px 0; accent-color: #8B5CF6; }

/* AppSpace cards (store style) */
.tp-ccard-top { align-items: center; gap: 12px; }
.tp-ccard-top .tp-stars { margin-left: 0; }
.tp-ccard-ic { width: 60px; height: 60px; border-radius: 18px; flex-shrink: 0; }
.tp-ccard-img { width: 60px; height: 60px; border-radius: 18px; overflow: hidden; flex-shrink: 0; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .45); }
.tp-ccard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-ccard-tt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-ccard-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tp-ccard-title { overflow: hidden; text-overflow: ellipsis; }
.tp-ccard-by { gap: 8px; padding-top: 10px; border-top: 1px dashed var(--tp-line); }
.tp-ccard-by > span:not(.tp-ccard-av) { min-width: 0; display: flex; flex-direction: column; }
.tp-ccard-by b { color: var(--tp-ink); font-weight: 900; }
.tp-ccard-by small { font-weight: 700; color: #94A3B8; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-ccard-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; font: 900 11px 'Nunito', sans-serif; color: #fff; background: linear-gradient(135deg, #6366F1, #EC4899); }
.tp-ccard-av img { width: 100%; height: 100%; object-fit: cover; }
.tp-ccard-v { margin-left: auto; font-weight: 900; color: #F59E0B; }
/* detail popup */
.tp-cm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.tp-cm-icon { width: 76px; height: 76px; border-radius: 22px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: var(--sc); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
.tp-cm-icon img { width: 100%; height: 100%; object-fit: cover; }
.tp-cm-icon .tp-ic { width: 34px; height: 34px; }
.tp-cm-pub { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.tp-cm-pub b { display: block; font-weight: 900; color: var(--tp-ink); }
.tp-cm-pub small { display: block; font-weight: 700; color: #94A3B8; font-size: 12.5px; }
.tp-cm-sec p.pre { white-space: pre-line; }
.pl-chip.draft { background: #F1F5F9; color: #475569; box-shadow: inset 0 0 0 1.5px #CBD5E1; } a.pl-chip { text-decoration: none; }
.tp-cm-yt[hidden] { display: none !important; }
.asp-icon-row label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 900; color: var(--tp-ink); font-size: 14.5px; } .asp-icon-row label small { font-weight: 700; color: #94A3B8; font-size: 12.5px; }

/* ---------------- project icons (includes/icon_lib.php) ---------------- */
.pi { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22%; flex-shrink: 0; color: #fff; background: linear-gradient(145deg, var(--pa), var(--pb)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 8px 16px -10px var(--pa); position: relative; overflow: hidden; }
.pi::after { content: ''; position: absolute; width: 90%; height: 90%; right: -38%; top: -42%; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pi svg { width: 58%; height: 58%; position: relative; z-index: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); }
.pi.sm { width: 40px; height: 40px; }
.pi.xs { width: 32px; height: 32px; border-radius: 10px; }
.pi.lg { width: 96px; height: 96px; }

/* ---------------- icon library + project details popups (tp-projectinfo.js) ---------------- */
.ppi-wrap { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 14px; background: rgba(30, 27, 75, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s; }
.ppi-wrap.show { opacity: 1; }
.ppi { width: 100%; max-width: 380px; max-height: calc(100vh - 28px); overflow-y: auto; background: #fff; border-radius: 26px; padding: 18px 20px; box-shadow: 0 30px 70px -20px rgba(30, 27, 75, .6); transform: translateY(8px) scale(.98); transition: transform .18s; }
.ppi.wide { max-width: 520px; }
.ppi-wrap.show .ppi { transform: none; }
.ppi-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ppi-h h3 { flex: 1; margin: 0; font-size: 22px; color: var(--tp-ink); }
.ppi-x { border: 0; background: #F1F5F9; width: 34px; height: 34px; border-radius: 11px; cursor: pointer; font-weight: 900; color: #475569; }
.ppi-note { margin: -4px 0 10px; font-weight: 700; color: #64748B; font-size: 13px; text-align: center; }
.ppi-prev { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; background: #F8F7FF; margin-bottom: 12px; }
.ppi-prev b { font: 800 20px var(--tp-head); color: var(--tp-ink); }
.ppi-prev small { font-weight: 800; color: #94A3B8; margin-left: auto; }
.ppi-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border: 2px solid var(--tp-line); border-radius: 14px; margin-bottom: 12px; }
.ppi-search:focus-within { border-color: #8B5CF6; }
.ppi-search svg { width: 18px; height: 18px; color: #94A3B8; }
.ppi-search input { flex: 1; border: 0; outline: 0; font: 700 15px 'Nunito', sans-serif; color: var(--tp-ink); background: none; min-width: 0; }
.ppi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.ppi-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px; border: 2px solid transparent; background: #fff; cursor: pointer; }
.ppi-grid button:hover { background: #F8F7FF; }
.ppi-grid button.on { border-color: #8B5CF6; background: #F5F3FF; }
.ppi-grid small { font: 800 11.5px 'Nunito', sans-serif; color: #475569; }
.ppi-none { grid-column: 1 / -1; text-align: center; color: #94A3B8; font-weight: 700; }
.ppi-sub, .ppi-sec-t { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #94A3B8; margin: 14px 2px 8px; }
.ppi-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.ppi-cols button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; cursor: pointer; background: linear-gradient(145deg, var(--pa), var(--pb)); box-shadow: 0 0 0 2px #E2E8F0; }
.ppi-cols button.on { box-shadow: 0 0 0 3px var(--pa); transform: scale(1.1); }
.ppi-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.ppi-btn { border: 0; cursor: pointer; padding: 11px 18px; border-radius: 14px; font: 900 15px 'Nunito', sans-serif; background: #EEF2FF; color: #4338CA; }
.ppi-btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.ppi-btn.go { background: linear-gradient(135deg, #7C3AED, #EC4899); color: #fff; }
.ppi-btn.ghost { background: #F1F5F9; color: #475569; }
.ppi-btn:disabled { opacity: .5; }
.ppi-iconrow { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ppi-iconrow > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.ppi-iconrow b { font-weight: 900; color: var(--tp-ink); }
.ppi-iconrow small { font-weight: 700; color: #94A3B8; font-size: 12.5px; }
.ppi-icon { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 22%; }
.ppi-f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-weight: 900; color: var(--tp-ink); font-size: 14px; }
.ppi-f small { font-weight: 700; color: #94A3B8; }
.ppi-f input, .ppi-f textarea { font: 700 15px 'Nunito', sans-serif; padding: 10px 12px; border-radius: 13px; border: 2px solid var(--tp-line); outline: 0; color: var(--tp-ink); resize: vertical; width: 100%; }
.ppi-f input:focus, .ppi-f textarea:focus { border-color: #8B5CF6; }
.ppi-f input:disabled { background: #F8FAFC; color: #64748B; }
.ppi-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ppi-vis { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #64748B; font-weight: 800; }
.ppi-vis input { width: auto; accent-color: #10B981; }
.ppi-maker { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #F8F7FF; }
.ppi-maker > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ppi-maker b { font-weight: 900; color: var(--tp-ink); }
.ppi-maker small { font-weight: 700; color: #94A3B8; font-size: 12.5px; }
.ppi-makeredit { padding: 12px; border-radius: 18px; background: #F8F7FF; }
.ppi-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; font: 900 15px 'Nunito', sans-serif; color: #fff; background: linear-gradient(135deg, #6366F1, #EC4899); }
.ppi-av.lg { width: 72px; height: 72px; font-size: 24px; }
.ppi-av img { width: 100%; height: 100%; object-fit: cover; }
.ppi-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ppi-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ppi-pick button { padding: 10px; border-radius: 14px; border: 2px solid var(--tp-line); background: #fff; font: 900 14.5px 'Nunito', sans-serif; cursor: pointer; color: var(--tp-ink); }
.ppi-pick button.on { border-color: #8B5CF6; background: #F5F3FF; }
.ppi-err { margin: 4px 0 0; color: #DC2626; font-weight: 800; }
.ppi-err[hidden] { display: none; }
.ppi-crop { margin: 0 auto; border-radius: 50%; overflow: hidden; touch-action: none; cursor: grab; max-width: 100%; box-shadow: 0 0 0 3px #C4B5FD; }
.ppi-crop canvas { display: block; width: 100%; height: 100%; }
.ppi-zoom { width: 100%; margin: 12px 0 0; accent-color: #8B5CF6; }

/* =====================================================================
   My Code / My Apps as an icon grid (App Store style)
   ===================================================================== */
.pl-main .pl-list { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; }
.pl-list .pl-row { position: relative; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 12px; padding: 14px 14px 12px; border-radius: 22px; min-height: 112px; }
.pl-list .pl-row:hover { transform: translateY(-2px); }
.pl-list .pl-ic { width: auto; height: auto; background: none; box-shadow: none; border-radius: 22%; padding: 0; }
.pl-list .pl-ic .pi { width: 68px; height: 68px; }
.pl-list .pl-body { flex: 1 1 0; min-width: 0; gap: 5px; padding-right: 26px; }
.pl-list .pl-name { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-list .pl-name .pl-lock { display: inline-grid; vertical-align: -3px; }
.pl-list .pl-desc { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-list .pl-meta { font-size: 12px; }
.pl-list .pl-labels { gap: 4px; }
.pl-list .pl-chip { font-size: 11px; padding: 3px 8px; }
.pl-list .pl-row.is-recent { border-width: 2px; }
.pl-ribbon { position: absolute; top: -9px; left: 14px; z-index: 2; padding: 2px 9px; border-radius: 999px; font: 900 11px 'Nunito', sans-serif; color: #fff; background: var(--pc, #6366F1); box-shadow: 0 4px 10px -4px var(--pc, #6366F1); }
.pl-pinmark { display: none; position: absolute; top: 44px; right: 12px; font-size: 14px; }
.pl-row.is-pinned .pl-pinmark { display: block; }
.pl-list .pl-row:not(.is-pinned) .pl-chip.pin, .pl-list .pl-chip.pin { display: none; }
.pl-more { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 10px; border: 0; cursor: pointer; background: #F5F3FF; color: #6366F1; font: 900 18px/1 'Nunito', sans-serif; display: grid; place-items: center; }
.pl-more:hover, .menu-open .pl-more { background: var(--pc, #6366F1); color: #fff; }
.pl-list .pl-acts { display: none; position: absolute; z-index: 20; top: 44px; right: 10px; width: 200px; flex-direction: column; gap: 2px; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--tp-line); box-shadow: 0 22px 44px -18px rgba(30, 27, 75, .45); border-top: 1px solid var(--tp-line); }
.pl-list .pl-row.menu-open { z-index: 30; }
.pl-list .pl-row.menu-open .pl-acts { display: flex; }
.pl-list .pl-act { width: 100%; height: auto; justify-content: flex-start; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: none; color: var(--tp-ink); font: 800 14px 'Nunito', sans-serif; transform: none; }
.pl-list .pl-act:hover { background: #F5F3FF; color: #4338CA; transform: none; }
.pl-list .pl-act .tp-ic, .pl-list .pl-act svg { width: 18px; height: 18px; color: #6366F1; }
.pl-list .pl-act.del, .pl-list .pl-act.del .tp-ic { color: #DC2626; background: none; }
.pl-list .pl-act.del:hover { background: #FEF2F2; color: #DC2626; }
.pl-list .pl-act.pin-btn { background: none; color: var(--tp-ink); }
.pl-list .pl-act.pin-btn svg { color: #D97706; }
.pl-list .pl-act.pin-btn[aria-pressed="true"] { background: #FFFBEB; color: #92400E; }
.pl-list .pl-act:disabled { opacity: .4; background: none; }
@media (max-width: 560px) {
  .pl-main .pl-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pl-list .pl-row { flex-direction: column; align-items: flex-start; padding: 12px; gap: 8px; min-height: 0; }
  .pl-list .pl-body { padding-right: 0; width: 100%; flex-basis: auto; }
  .pl-list .pl-ic .pi { width: 60px; height: 60px; }
  .pl-list .pl-acts { width: auto; min-width: 180px; padding-top: 6px; border-top: 1px solid var(--tp-line); right: 6px; }
  .pl-list .pl-act { width: 100%; height: auto; }
  .pl-list .pl-desc { display: none; }
  .pl-pinmark { top: 12px; right: 44px; }
}
/* teams column + AppSpace: project icons */
.tpn-work-ic .pi, .tpn-work-ic.pi { width: 32px; height: 32px; border-radius: 10px; }
.tp-ccard-top .pi { width: 60px; height: 60px; }
.tp-cm-icon .pi { width: 76px; height: 76px; }
@media (max-width: 560px) {
  .pl-main .pl-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pl-list .pl-row { min-width: 0; }
  .pl-list .pl-labels { max-width: 100%; }
  .pl-list .pl-chip { max-width: 100%; }
}
.pl-list .pl-row, .pl-list .pl-body { min-width: 0; }
.ppi-groups { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: thin; }
.ppi-groups button { flex-shrink: 0; border: 1.5px solid var(--tp-line); background: #fff; color: #475569; cursor: pointer; padding: 5px 11px; border-radius: 999px; font: 800 12.5px 'Nunito', sans-serif; white-space: nowrap; }
.ppi-groups button.on { background: #7C3AED; border-color: #7C3AED; color: #fff; }
.ppi-gl { flex-shrink: 0; align-self: center; font: 900 10.5px 'Nunito', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #94A3B8; padding-left: 6px; }
.ppi-grid { max-height: 300px; overflow-y: auto; padding: 2px; }

/* ==========================================================
   My Apps — store-style list (like a phone's app store):
   embossed icon · bold title · creator in small letters · all left aligned.
   Desktop 4 per row + Teams · Tablet 3 + Teams · Phone 3 (Teams on top)
   ========================================================== */
.st-page .pl-main .pl-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.st-page .pl-list .pl-row.st-item { display: block; padding: 0; min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.st-page .pl-list .pl-row.st-item:hover { transform: none; }
.st-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.st-ic { position: relative; display: block; width: 100%; max-width: 128px; aspect-ratio: 1; margin-bottom: 9px; }
.st-ic .pi { width: 100%; height: 100%; border-radius: 23%;
  /* embossed: light top edge, dark bottom edge, soft drop shadow */
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.18), 0 3px 0 color-mix(in srgb, var(--pa) 55%, #000), 0 14px 22px -10px rgba(15,23,42,.55);
  transition: transform .15s, box-shadow .15s; }
.st-tile:hover .st-ic .pi { transform: translateY(-3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.18), 0 5px 0 color-mix(in srgb, var(--pa) 55%, #000), 0 20px 26px -12px rgba(15,23,42,.6); }
.st-tile:active .st-ic .pi { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 color-mix(in srgb, var(--pa) 55%, #000), 0 6px 12px -8px rgba(15,23,42,.5); }
.st-tile:focus-visible { outline: 3px solid var(--pc, #8B5CF6); outline-offset: 4px; border-radius: 14px; }
.st-pin { display: none; position: absolute; top: -6px; left: -6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px -2px rgba(0,0,0,.35); font-size: 13px; line-height: 26px; text-align: center; }
.st-item.is-pinned .st-pin { display: block; }
.st-badge { position: absolute; right: -6px; bottom: -6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px -2px rgba(0,0,0,.35); font-size: 14px; line-height: 28px; text-align: center; }
.st-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; color: #0F172A; font-weight: 900; font-size: 15px; line-height: 1.2; }
.st-by { display: block; width: 100%; margin-top: 2px; color: #64748B; font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-item.is-locked .st-name::after { content: ' 🔒'; font-size: .8em; }
.st-item.pl-flash .st-ic .pi { animation: stFlash .7s; }
@keyframes stFlash { 40% { transform: scale(1.08); } }
@media (max-width: 1100px) { .st-page .pl-main .pl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 900px) {          /* tablet: apps + Teams side by side */
  .st-page .pl-cols { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .st-page .tpn { position: sticky; order: 0; }
}
@media (max-width: 640px) {
  .st-page .pl-main .pl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .st-name { font-size: 13.5px; }
  .st-by { font-size: 11px; }
  .st-pin, .st-badge { width: 22px; height: 22px; line-height: 22px; font-size: 11px; }
}

/* details sheet */
.st-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30,27,75,.45); opacity: 0; transition: opacity .18s; }
.st-sheet.show { opacity: 1; }
.st-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(30,27,75,.5); transform: translateY(10px); transition: transform .18s; }
.st-sheet.show .st-card { transform: none; }
.st-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 12px; border: 0; background: #F1F5F9; color: #475569; font-weight: 900; cursor: pointer; }
.st-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding-right: 36px; }
.st-ic.lg { width: 92px; flex-shrink: 0; margin: 0; }
.st-tt { min-width: 0; }
.st-tt h3 { margin: 0; font: 900 21px/1.2 'Nunito', sans-serif; color: #0F172A; overflow-wrap: anywhere; }
.st-tt .st-by { font-size: 13px; margin-top: 3px; }
.st-tt small { display: block; margin-top: 4px; color: #94A3B8; font-weight: 700; font-size: 12px; }
.st-go { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 16px; font: 900 16px 'Nunito', sans-serif; text-decoration: none; }
.st-btn svg { width: 19px; height: 19px; }
.st-btn.run { color: #fff; background: linear-gradient(135deg, #22C55E, #16A34A); box-shadow: 0 10px 20px -10px #16A34A; }
.st-btn.edit { color: #fff; background: linear-gradient(135deg, #8B5CF6, #6366F1); box-shadow: 0 10px 20px -10px #6366F1; }
.st-btn.edit.locked { background: #E2E8F0; color: #475569; box-shadow: none; }
.st-chipsx { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.st-chipsx:empty { display: none; }
.st-txt { font-size: 14px; color: #334155; background: #F8FAFC; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
.st-txt p { margin: 0; } .st-txt p + p { margin-top: 8px; }
.st-txt .ins { color: #475569; font-size: 13px; }
.st-acts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border-top: 1px solid #EEF0F6; padding-top: 12px; }
.st-acts button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border: 0; border-radius: 12px; background: none; color: #334155; font: 800 11.5px 'Nunito', sans-serif; cursor: pointer; }
.st-acts button:hover { background: #F5F3FF; }
.st-acts button:disabled { opacity: .35; cursor: not-allowed; }
.st-acts button svg { width: 22px; height: 22px; }
.st-acts button.del { color: #DC2626; }
/* AppSpace: same store look */
.st-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 20px; }
@media (max-width: 1100px) { .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; } }
.tp-ccard.st-store { padding: 0; gap: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.tp-ccard.st-store:hover { transform: none; }
.st-img { background: #fff; }
.st-img img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.st-img::after { display: none; }
.st-stars { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.st-stars .tp-stars svg { width: 11px; height: 11px; }
.st-stars small { color: #94A3B8; font-weight: 800; font-size: 11px; }
.st-kind { font-size: 12px; }
.st-sheet[hidden] { display: none; }
/* PRO in the publish wizard */
.asp-pro { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #FEF3C7, #FDE68A); border: 1.5px solid #F59E0B; margin: 10px 0; }
.asp-pro > div { flex: 1; min-width: 0; } .asp-pro b { display: block; color: #78350F; } .asp-pro small { color: #92400E; font-weight: 700; }
.asp-pro-b { flex-shrink: 0; padding: 6px 10px; border-radius: 999px; background: #1E1B4B; color: #FDE68A; font: 900 13px 'Nunito', sans-serif; }
.asp-or { text-align: center; color: #94A3B8; font-weight: 800; font-size: 12px; margin: 4px 0; }
/* TinkerPy PRO */
.tp-pro-strip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: 20px; text-decoration: none; color: #1E1B4B; background: #fff; border: 2px dashed #FCD34D; }
.tp-pro-strip.on { background: linear-gradient(135deg, #FEF3C7, #FDE68A); border: 2px solid #F59E0B; }
.tp-pro-strip > span:nth-child(2) { flex: 1; min-width: 0; } .tp-pro-strip b { display: block; } .tp-pro-strip small { color: #92400E; font-weight: 700; }
.tp-pro-badge { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; font: 900 13px 'Nunito', sans-serif; background: #E2E8F0; color: #475569; }
.tp-pro-strip.on .tp-pro-badge { background: #1E1B4B; color: #FDE68A; }
/* phone: the text keeps the full width next to the badge; the button goes under the text (it used to squeeze the text into a 3-word column) */
@media (max-width: 520px) {
  .tp-pro-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 8px; }
  .tp-pro-strip > .tp-btn { grid-column: 2; justify-self: start; }
}
.tp-pro-table { padding: 8px 18px; }
.tp-pro-h, .tp-pro-r { display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px; align-items: center; gap: 8px; padding: 12px 0; }
.tp-pro-h { border-bottom: 2px solid #F1F5F9; } .tp-pro-h b { text-align: center; } .tp-pro-h b.pro { color: #B45309; }
.tp-pro-r + .tp-pro-r { border-top: 1px solid #F1F5F9; }
.tp-pro-r span { font-weight: 700; color: #334155; }
.tp-pro-r i { font-style: normal; text-align: center; font-weight: 900; font-size: 18px; }
.tp-pro-r i.y { color: #16A34A; } .tp-pro-r i.n { color: #CBD5E1; } .tp-pro-r i.pro { color: #D97706; }
@media (max-width: 520px) { .tp-pro-table { padding: 6px 16px; } .tp-pro-h, .tp-pro-r { grid-template-columns: minmax(0, 1fr) 58px 58px; gap: 6px; } .tp-pro-h b { font-size: 14px; white-space: nowrap; } }   /* phone: more room for the feature text */

/* My Space: current certification course */
.tp-pro-strip.tp-course-strip { background: #FEFCE8; border: 2px solid #FDE047; }
.tp-course-strip .tp-pro-badge { font-size: 20px; }

/* Install-app buttons (assets/js/tp-install.js) — hidden inside the installed app */
[data-install-app][hidden], [data-install-wrap][hidden] { display: none !important; }
.tp-foot-install { margin-top: 12px; }
button.tp-pro-strip.tp-app-strip { width: 100%; text-align: left; cursor: pointer; font: inherit; background: #EEF2FF; border: 2px solid #C7D2FE; }
.tp-app-strip small { color: #4338CA !important; }

/* "Get the app" in the top bar (all public pages) */
.tp-getapp { flex: none; display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #6366F1, #EC4899); box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .7); border: 0; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; transition: filter .2s, transform .15s; }
.tp-getapp:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tp-getapp[hidden] { display: none; }
.tp-getapp .tp-ic { width: 19px; height: 19px; }
@media (max-width: 1180px) { .tp-getapp { width: 42px; padding: 0; } .tp-getapp span { display: none; } }

/* ---------- Home: the five Create spaces + Courses ---------- */
.hm-head { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.hm-head .tp-lead { margin-top: 6px; }
.hm-spaces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.hm-space { --tc: #3B82F6; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px 16px; border-radius: 24px; text-decoration: none; color: var(--tp-ink, #1E1B4B);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 9%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--tc) 18%, #fff);
  box-shadow: 0 14px 28px -20px color-mix(in srgb, var(--tc) 80%, transparent); transition: transform .18s, box-shadow .18s; }
.hm-space:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -20px color-mix(in srgb, var(--tc) 90%, transparent); }
.hm-space-ic { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 2px; }
.hm-space-ic .cri { width: 100%; height: 100%; overflow: visible; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.hm-space:hover .cri { transform: scale(1.15) rotate(-4deg); }
.hm-space b { font-family: var(--tp-head); font-size: 21px; line-height: 1.1; }
.hm-space .d { font-size: 14px; font-weight: 700; color: #475569; line-height: 1.4; flex: 1; }
.hm-pts { display: flex; flex-wrap: wrap; gap: 5px; }
.hm-pts i { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 12%, #fff); color: color-mix(in srgb, var(--tc) 80%, #000); }
.hm-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; font-weight: 900; font-size: 14px; color: var(--tc); }
.hm-go .tp-ic { width: 16px; height: 16px; }
.hm-courses { max-width: 980px; margin: 0 auto; }
.hm-mini { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hm-mini a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--tp-line, #E2E8F0); font-weight: 800; font-size: 14px; color: #334155; text-decoration: none; box-shadow: 0 6px 14px -10px rgba(30, 27, 75, .4); }
.hm-mini .tp-ic { width: 17px; height: 17px; }
@media (max-width: 1100px) { .hm-spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .hm-spaces { grid-template-columns: 1fr 1fr; gap: 10px; } .hm-space { padding: 14px 12px; } .hm-space b { font-size: 18px; } .hm-space .d { font-size: 12.5px; } .hm-pts { display: none; } .hm-space-ic { width: 46px; height: 46px; } }

/* ---------- ← Back button left of the logo (every page except Home) ---------- */
.tp-back-top { flex: none; width: 40px; height: 40px; margin-right: 6px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--tp-line, #E2E8F0); background: #fff; color: #334155; cursor: pointer; box-shadow: 0 4px 10px -8px rgba(30, 27, 75, .4); }
.tp-back-top:hover { color: #4F46E5; border-color: #C7D2FE; }
.tp-back-top .tp-ic { width: 20px; height: 20px; }
@media (max-width: 440px) { .tp-back-top { width: 36px; height: 36px; margin-right: 4px; } .tp-top-in:has(.tp-back-top) .tp-getapp { width: 36px; height: 36px; } }
.tp-backbar { max-width: 1240px; margin: 0 auto; padding: 8px 16px 0; }
.tp-backbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--tp-line, #E2E8F0); background: #fff; border-radius: 999px; padding: 6px 14px 6px 10px; font: inherit; font-weight: 800; font-size: 14px; color: #334155; cursor: pointer; box-shadow: 0 4px 10px -8px rgba(30, 27, 75, .4); }
.tp-backbtn:hover { color: #4F46E5; border-color: #C7D2FE; }
.tp-backbtn .tp-ic { width: 16px; height: 16px; }

/* Me: one list per Create space */
.tp-me-spaces { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------------- Shop button + "Shop" sheet (three categories) ---------------- */
.tp-shop { position: relative; }
.tp-shop.on { box-shadow: inset 0 0 0 2px #E11D48; }
.tp-shop-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #E11D48; color: #fff; font: 900 11px/19px 'Nunito', sans-serif; font-style: normal; text-align: center; border: 2px solid #fff; }
.tp-shopsheet .tp-create-card { max-width: 600px; }
.tp-shop-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tp-shop-tiles .tp-tile { padding: 12px 6px 14px; background: color-mix(in srgb, var(--tc) 6%, #fff); transition: background .2s, transform .2s; }
.tp-shop-tiles .tp-tile:hover, .tp-shop-tiles .tp-tile:focus-visible { background: color-mix(in srgb, var(--tc) 13%, #fff); transform: translateY(-2px); }
.tp-tile-shop-comp { --tc: #0EA5E9; --tc2: #22D3EE; }
.tp-tile-shop-kits { --tc: #F97316; --tc2: #FACC15; }
.tp-tile-shop-ready { --tc: #8B5CF6; --tc2: #EC4899; }
.tp-tile-shop-digital { --tc: #6366F1; --tc2: #06B6D4; }
.tp-tile-shop-reward { --tc: #F59E0B; --tc2: #EC4899; grid-column: span 2; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; }
.tp-tile-shop-reward .tp-tile-card { grid-row: span 2; width: 64px; }
.cri-wheel { transform-box: fill-box; transform-origin: center; }
:is(.tp-tile:hover, .tp-tile:active, .tp-tile:focus-visible) .cri-wheel { animation: criSpin .8s linear infinite; }
@keyframes criSpin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .tp-shop-tiles { gap: 8px; }
  .tp-shop-tiles .tp-tile b { font-size: 15.5px; }
  .tp-shop-tiles .tp-tile small { font-size: 11px; }
  .tp-shop-tiles .tp-tile-card { max-width: 60px; }
}

/* ---------------- Cart button (top bar; goes straight to the cart) ---------------- */
.tp-cart { position: relative; flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #E11D48; background: #FFF1F2; text-decoration: none; transition: background .2s, transform .15s; }
.tp-cart:hover { background: #FFE4E6; transform: translateY(-1px); }
.tp-cart.on { box-shadow: inset 0 0 0 2px #E11D48; }
.tp-cart .tp-ic { width: 22px; height: 22px; }
.tp-cart .tp-shop-n[hidden] { display: none; }
@media (max-width: 899px) {
  .tp-getapp { width: 40px; height: 40px; border-radius: 12px; }
  .tp-cart { width: 40px; height: 40px; }
  .tp-top-r { gap: 8px; }
}
/* small phones, logged in (back · logo · app · 🔔 · cart · avatar): everything fits in 390px — the avatar used to be cut off at the right edge */
@media (max-width: 440px) {
  .tp-top-in { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .tp-top-r { gap: 6px; }
  .tp-bell, .tp-cart { width: 36px; height: 36px; border-radius: 12px; }
  .tp-top-r .tp-getapp { width: 36px; height: 36px; border-radius: 12px; }
  .tp-me { flex-shrink: 0; }
}

/* ---------------- Menu sheets: colourful title, page behind stays still ---------------- */
.tp-grad { background: linear-gradient(90deg, #6366F1, #A855F7 35%, #EC4899 65%, #F97316); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
#tpCourse .tp-grad { background-image: linear-gradient(90deg, #10B981, #0EA5E9 45%, #6366F1); }
#tpShop .tp-grad { background-image: linear-gradient(90deg, #E11D48, #F97316 55%, #F59E0B); }
.tp-create-card h2 { font-weight: 900; }
html.tp-noscroll, html.tp-noscroll body { overflow: hidden; }
.tp-create, .tp-create-card, .sh-veil, .sh-sheet-b { overscroll-behavior: contain; }
@media (min-width: 621px) { #tpShop .tp-create-card { max-width: 680px; } #tpShop .tp-create-card h2 { font-size: 25px; } }
.tp-pro-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.tp-pro-price b { font-family: var(--tp-head); font-size: 34px; color: #1E1B4B; }
.tp-pro-price span { font-weight: 800; color: #64748B; }
.tp-pro-price s { color: #94A3B8; font-weight: 800; }
.tp-pro-price em { font-style: normal; font-weight: 900; font-size: 13px; color: #fff; background: #16A34A; padding: 3px 9px; border-radius: 999px; }
/* me/pro.php cards: Your devices · How do I get PRO? */
.tp-pro-devices { margin-bottom: 18px; }
.tp-pro-get { margin-top: 18px; }
.tp-pro-get p { margin: 0 0 12px; line-height: 1.55; }
.tp-pro-lead { font-weight: 800; margin: 0 0 12px; line-height: 1.45; }
.tp-pro-small { font-size: 14px; color: #64748B; font-weight: 600; line-height: 1.5; margin: 0; }
.tp-pro-get .tp-pro-small { margin: 4px 0 0; }
.tp-pro-note { font-weight: 800; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #F1F5F9; color: #475569; }
.tp-pro-note.ok { background: #F0FDF4; color: #15803D; }
.tp-dev-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tp-dev-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(99, 102, 241, .08); }
.tp-dev-ic { font-size: 20px; flex-shrink: 0; }
.tp-dev-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tp-dev-txt small { display: block; color: #64748B; font-weight: 700; }
.tp-dev-this { font-size: 12px; }

/* 2.26 Notifications: the 🔔 in the top bar and its drop-down list */
.tp-nt { position: relative; flex: none; }
.tp-bell { position: relative; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #7C3AED; background: #F5F3FF; border: 0; cursor: pointer; transition: background .2s, transform .15s; }
.tp-bell:hover { background: #EDE9FE; transform: translateY(-1px); }
.tp-bell .tp-ic { width: 22px; height: 22px; }
.tp-bell .tp-shop-n[hidden] { display: none; }
.tp-bell.ring .tp-ic { animation: tp-ring .9s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes tp-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.tp-nt-pop { position: absolute; top: calc(100% + 10px); right: -60px; z-index: 80; width: min(380px, calc(100vw - 24px)); max-height: min(520px, 75vh); overflow: auto;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 60px -16px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.06); padding: 10px; }
.tp-nt-pop[hidden] { display: none; }
.tp-nt-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 8px; }
.tp-nt-h b { font-size: 15px; color: #1E1B4B; }
.tp-nt-h button { border: 0; background: none; color: #7C3AED; font: 800 12.5px 'Nunito', sans-serif; cursor: pointer; }
.tp-nt-pop .nt-list { margin-top: 0; gap: 6px; }
.tp-nt-pop .nt-item { padding: 9px 10px; border-radius: 14px; }
.tp-nt-pop .nt-ic { width: 34px; height: 34px; font-size: 16px; }
.tp-nt-all { display: block; text-align: center; padding: 10px 6px 4px; font-weight: 900; font-size: 13px; color: #7C3AED; text-decoration: none; }
@media (max-width: 899px) { .tp-nt-pop { position: fixed; top: 64px; right: 12px; } }
/* the list styles also live here (pages without hub.css) */
.tp-nt-pop .nt-list { display: flex; flex-direction: column; }
.tp-nt-pop .nt-item { --nc: #6366F1; display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid rgba(15,23,42,.07); text-decoration: none; color: #1E1B4B; }
.tp-nt-pop .nt-item.unread { background: color-mix(in srgb, var(--nc) 6%, #fff); border-color: color-mix(in srgb, var(--nc) 30%, #fff); }
.tp-nt-pop .nt-ic { flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--nc) 14%, #fff); }
.tp-nt-pop .nt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-nt-pop .nt-t b { font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.tp-nt-pop .nt-t small { font-size: 12px; color: #64748B; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-nt-pop .nt-t i { font-style: normal; font-size: 11px; color: #94A3B8; font-weight: 700; }
.tp-nt-pop .nt-dot { width: 8px; height: 8px; border-radius: 50%; background: #E11D48; flex-shrink: 0; margin-top: 6px; }
.tp-nt-pop .nt-empty { text-align: center; padding: 26px 10px; color: #64748B; font-size: 13px; }
.tp-nt-pop .nt-empty div { font-size: 30px; } .tp-nt-pop .nt-empty b { display: block; color: #1E1B4B; margin: 4px 0; }
@media (max-width: 560px) {   /* team page on a phone: the access chip + Remove go under the name */
  .tm-work { flex-wrap: wrap; row-gap: 6px; }
  .tm-work-a { flex-basis: 100%; }
  .tm-work > .pl-chip, .tm-work > .tm-acc { margin-left: 52px; }
}

/* ---------------- Home: Flash new firmware (#flash-firmware · ESP Web Tools) ---------------- */
.tp-feat-flash { background: radial-gradient(circle at 88% 18%, rgba(249, 115, 22, .45), transparent 40%), radial-gradient(circle at 8% 92%, rgba(56, 189, 248, .35), transparent 42%), linear-gradient(135deg, #0F172A, #1E1B4B 55%, #312E81); }
.tp-flash-steps { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; gap: 10px; }
.tp-flash-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .1); font-weight: 700; line-height: 1.45; }
.tp-flash-steps .n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #F97316; color: #fff; font-weight: 900; box-shadow: 0 6px 14px -6px #F97316; }
.tp-flash-ver { margin: 0 0 16px; font-weight: 800; font-size: 15px; color: #E0E7FF; }
.tp-flash-ver b { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; }
.tp-flash-install { display: block; }
.tp-flash-btn { --sc: #F97316; font-size: 19px; padding: 17px 28px; border-radius: 20px; background: linear-gradient(135deg, #FB923C, #F97316 55%, #EA580C); box-shadow: 0 16px 30px -12px rgba(249, 115, 22, .9); }
.tp-flash-btn:hover { transform: translateY(-2px); }
.tp-flash-btn .tp-ic { width: 22px; height: 22px; }
.tp-flash-msg { display: block; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .95); color: #1E1B4B; font-weight: 700; line-height: 1.5; box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .6); max-width: 520px; }
.tp-flash-msg > b:first-child { display: block; font: 800 18px 'Baloo 2', 'Nunito', sans-serif; color: #EA580C; margin-bottom: 2px; }
.tp-flash-help { margin-top: 18px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); max-width: 560px; }
.tp-flash-help summary { cursor: pointer; padding: 12px 16px; font-weight: 900; list-style: none; display: flex; align-items: center; gap: 8px; }
.tp-flash-help summary::-webkit-details-marker { display: none; }
.tp-flash-help summary::before { content: '?'; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #38BDF8; color: #0F172A; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.tp-flash-help summary::after { content: '▾'; margin-left: auto; transition: transform .2s; }
.tp-flash-help[open] summary::after { transform: rotate(180deg); }
.tp-flash-help ul { margin: 0; padding: 0 16px 14px 40px; display: grid; gap: 7px; font-weight: 700; line-height: 1.45; color: #E0E7FF; }
/* the picture on the right: a short "video" (≈13 s, loops) — 1 laptop · 2 the board connects · 3 click Install ·
   4 the firmware flows into the board · 5 new features. Dark theme. index.php fills [data-fv] and sets data-p="1…5". */
.tp-flash-art { min-height: 0; }
.tp-fv { width: 440px; max-width: 100%; padding: 16px 16px 14px; border-radius: 28px; background: linear-gradient(160deg, rgba(30, 27, 75, .92), rgba(15, 23, 42, .96)); border: 1px solid rgba(165, 180, 252, .22); color: #E0E7FF; box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06); box-sizing: border-box; }
.tp-fv-box { position: relative; width: 100%; aspect-ratio: 408 / 250; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 78% 30%, rgba(99, 102, 241, .28), transparent 55%), radial-gradient(circle at 15% 85%, rgba(56, 189, 248, .14), transparent 50%), linear-gradient(180deg, #0B1022, #111836); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tp-fv-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 18px 18px; pointer-events: none; }
.tp-fv-stage { position: absolute; left: 0; top: 0; width: 408px; height: 250px; transform-origin: 0 0; }
.tp-fv-cap { margin: 12px 4px 8px; min-height: 2.6em; text-align: center; font: 800 18px/1.3 'Baloo 2', 'Nunito', sans-serif; color: #F1F5F9; transition: color .3s; }
.tp-fv[data-p="5"] .tp-fv-cap { color: #FB923C; }
.tp-fv-dots { display: flex; justify-content: center; gap: 7px; }
.tp-fv-dots i { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .22); transition: width .3s, background .3s; }
.tp-fv-dots i.on { width: 26px; background: #F97316; box-shadow: 0 0 10px rgba(249, 115, 22, .6); }

/* step 0: the title card — "Upgrade your board with the latest firmware in 3 easy steps" */
.tp-fv-intro { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, .3), transparent 60%), radial-gradient(circle at 78% 30%, rgba(99, 102, 241, .35), transparent 55%), linear-gradient(180deg, #0B1022, #111836); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.tp-fv[data-p="0"] .tp-fv-intro { opacity: 1; visibility: visible; transition: opacity .4s; }
.tp-fv-intro h3 { margin: 0; font: 800 27px/1.08 'Baloo 2', 'Nunito', sans-serif; color: #fff; letter-spacing: -.01em; }
.tp-fv-intro h3 em { font-style: normal; display: block; font-size: 22px; background: linear-gradient(90deg, #FDBA74, #F97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-fv-intro p { margin: 2px 0 8px; font: 900 13px 'Nunito', sans-serif; color: #C7D2FE; letter-spacing: .02em; }
.tp-fv-intro p b { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #F97316; color: #fff; }
.tp-fv-3 { display: flex; gap: 8px; }
.tp-fv-3 span { display: flex; align-items: center; gap: 5px; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(30, 27, 75, .9); border: 1px solid rgba(165, 180, 252, .35); color: #E0E7FF; font: 900 11px 'Nunito', sans-serif; white-space: nowrap; }
.tp-fv-3 i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #F97316; color: #fff; font: 900 10px 'Nunito', sans-serif; font-style: normal; }
.tp-fv[data-p="0"] .tp-fv-intro h3, .tp-fv[data-p="0"] .tp-fv-intro p { animation: tpFvUp .6s ease-out both; } .tp-fv[data-p="0"] .tp-fv-intro p { animation-delay: .2s; }
.tp-fv[data-p="0"] .tp-fv-3 span { animation: tpFvPop .45s ease-out both; }
.tp-fv[data-p="0"] .tp-fv-3 span:nth-child(1) { animation-delay: .6s; } .tp-fv[data-p="0"] .tp-fv-3 span:nth-child(2) { animation-delay: .85s; } .tp-fv[data-p="0"] .tp-fv-3 span:nth-child(3) { animation-delay: 1.1s; }
@keyframes tpFvUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* laptop: big in the middle, then smaller on the left */
.tp-fv-lap { position: absolute; left: 74px; top: 22px; width: 260px; transform-origin: 0 50%; transition: transform 1s cubic-bezier(.6, 0, .25, 1); }
.tp-fv[data-p="2"] .tp-fv-lap, .tp-fv[data-p="3"] .tp-fv-lap, .tp-fv[data-p="4"] .tp-fv-lap { transform: translate(-58px, 36px) scale(.62); }
.tp-fv[data-p="5"] .tp-fv-lap { transform: translate(-150px, 36px) scale(.62); opacity: .2; transition: transform .8s, opacity .8s; }
.tp-fv-scr { position: relative; height: 162px; border-radius: 14px 14px 4px 4px; background: #020617; border: 7px solid #334155; box-sizing: border-box; padding: 8px; box-shadow: 0 0 0 1px #475569, 0 18px 40px -16px rgba(99, 102, 241, .55); }
.tp-fv-base { height: 12px; margin: 0 -18px; border-radius: 0 0 12px 12px; background: linear-gradient(#64748B, #334155); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .8); }
.tp-fv-base::after { content: ''; display: block; width: 50px; height: 4px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #1E293B; }
.tp-fv-win { position: relative; height: 100%; border-radius: 7px; background: #0F172A; overflow: hidden; }
.tp-fv-bar { height: 16px; background: #1E293B; display: flex; align-items: center; gap: 4px; padding-left: 6px; }
.tp-fv-bar i { width: 6px; height: 6px; border-radius: 50%; background: #F87171; } .tp-fv-bar i:nth-child(2) { background: #FBBF24; } .tp-fv-bar i:nth-child(3) { background: #34D399; }
.tp-fv-bar span { margin-left: 6px; height: 8px; flex: 1; margin-right: 8px; border-radius: 4px; background: #334155; font: 800 6px/8px 'Nunito', sans-serif; color: #CBD5E1; padding-left: 4px; }
.tp-fv-page { position: absolute; inset: 16px 0 0; display: flex; align-items: center; justify-content: center; gap: 14px; flex-direction: column; transition: opacity .35s; }
/* page 1: Chrome + Edge */
.tp-fv-logos { display: flex; gap: 16px; }
.tp-fv-logo { width: 46px; height: 46px; border-radius: 50%; position: relative; }
.tp-fv-logo.chrome { background: conic-gradient(from -30deg, #EA4335 0 120deg, #FBBC05 0 240deg, #34A853 0); }
.tp-fv-logo.chrome::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: #4285F4; box-shadow: 0 0 0 4px #fff; }
.tp-fv-logo.edge { background: conic-gradient(from 200deg, #0C59A4, #1B9DE2, #35C1F1, #5FD27A, #0C59A4); }
.tp-fv-logo.edge::after { content: ''; position: absolute; left: 12px; top: 19px; width: 22px; height: 13px; border-radius: 0 0 12px 12px; background: #0F172A; }
.tp-fv-page small { font-weight: 900; font-size: 11px; color: #94A3B8; }
.tp-fv[data-p="1"] .tp-fv-logo { animation: tpFvPop .5s ease-out both; } .tp-fv[data-p="1"] .tp-fv-logo.edge { animation-delay: .2s; }
/* page 2: the TinkerPy install page */
.tp-fv-site { font: 800 12px 'Baloo 2', sans-serif; color: #E0E7FF; }
.tp-fv-btn { padding: 8px 11px; border-radius: 10px; background: linear-gradient(135deg, #FB923C, #EA580C); color: #fff; font: 900 11px 'Nunito', sans-serif; white-space: nowrap; box-shadow: 0 8px 18px -6px rgba(249, 115, 22, .8); transition: transform .15s; }
.tp-fv-send { display: none; font: 900 12px 'Nunito', sans-serif; color: #FDBA74; }
.tp-fv-bits { display: none; font: 800 11px ui-monospace, monospace; color: #64748B; letter-spacing: 2px; white-space: nowrap; }
.tp-fv-done { display: none; font: 900 13px 'Nunito', sans-serif; color: #4ADE80; }
.tp-fv-hand { position: absolute; font-size: 26px; left: 70%; top: 92%; opacity: 0; }
.tp-fv .pg1 { opacity: 1; } .tp-fv .pg2 { opacity: 0; }
.tp-fv:not([data-p="0"]):not([data-p="1"]):not([data-p="2"]) .pg1 { opacity: 0; } .tp-fv:not([data-p="0"]):not([data-p="1"]):not([data-p="2"]) .pg2 { opacity: 1; }
.tp-fv[data-p="3"] .tp-fv-hand { animation: tpFvHand 1.8s ease-in-out .2s both; }
.tp-fv[data-p="3"] .tp-fv-btn { animation: tpFvPress 1.8s ease-in-out .2s both; }
.tp-fv[data-p="4"] .tp-fv-btn, .tp-fv[data-p="5"] .tp-fv-btn { display: none; }
.tp-fv[data-p="4"] .tp-fv-send, .tp-fv[data-p="4"] .tp-fv-bits { display: block; }
.tp-fv[data-p="4"] .tp-fv-bits { animation: tpFvBits .6s steps(4) infinite; }
.tp-fv[data-p="5"] .tp-fv-done { display: block; animation: tpFvPop .4s ease-out both; }
@keyframes tpFvHand { 0% { opacity: 0; transform: translate(30px, 30px); } 20% { opacity: 1; } 60% { transform: translate(-60px, -62px); } 70% { transform: translate(-60px, -58px) scale(.88); } 80%, 100% { opacity: 1; transform: translate(-60px, -62px); } }
@keyframes tpFvPress { 0%, 62% { transform: none; } 70% { transform: scale(.92); filter: brightness(1.2); } 80%, 100% { transform: none; } }
@keyframes tpFvBits { 0% { text-indent: 0; } 100% { text-indent: 24px; } }
@keyframes tpFvPop { from { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); } to { transform: none; opacity: 1; } }

/* the board: slides in from the right */
.tp-fv-brd { position: absolute; left: 236px; top: 72px; width: 150px; opacity: 0; transform: translateX(170px); transition: transform .9s cubic-bezier(.3, 1.3, .5, 1) .45s, opacity .4s .45s; }
.tp-fv:not([data-p="0"]):not([data-p="1"]) .tp-fv-brd { opacity: 1; transform: none; }
.tp-fv[data-fv][data-p="5"] .tp-fv-brd, .tp-fv[data-fv][data-p="5"] .tp-fv-feat { transform: translateX(-107px); transition: transform .8s cubic-bezier(.6, 0, .25, 1); }   /* [data-fv] keeps this stronger than the :not(0):not(1) rule above */
.tp-fv[data-p="5"] .tp-fv-cable { opacity: 0; transition: opacity .3s; }
.tp-fv-pcb { position: relative; height: 82px; border-radius: 9px; background: linear-gradient(160deg, #1E40AF, #172554); border: 2px solid #3B82F6; box-shadow: 0 0 22px -4px rgba(59, 130, 246, .55), 0 14px 24px -12px rgba(0, 0, 0, .9), inset 0 0 0 3px rgba(255, 255, 255, .05); }
.tp-fv-pcb .pins { position: absolute; left: 18px; right: 10px; height: 8px; background: radial-gradient(circle, #FCD34D 2.2px, #92400E 2.6px, transparent 3px) 0 0 / 12.5px 8px repeat-x; }
.tp-fv-pcb .pins.t { top: 4px; } .tp-fv-pcb .pins.b { bottom: 4px; }
.tp-fv-pcb .usb { position: absolute; left: -7px; top: 31px; width: 14px; height: 18px; border-radius: 4px; background: linear-gradient(#E2E8F0, #94A3B8); border: 1px solid #64748B; }
.tp-fv-pcb .chip { position: absolute; left: 50px; top: 22px; width: 40px; height: 38px; border-radius: 4px; background: #020617; border: 1px solid #334155; color: #94A3B8; font: 800 6.5px/1.2 ui-monospace, monospace; display: grid; place-items: center; text-align: center; transition: box-shadow .4s, color .4s; }
.tp-fv-pcb .ant { position: absolute; right: 10px; top: 24px; width: 26px; height: 34px; border-radius: 3px; background: repeating-linear-gradient(90deg, #FCD34D 0 3px, transparent 3px 6px); opacity: .7; }
.tp-fv-pcb .pwr { position: absolute; left: 24px; top: 26px; width: 6px; height: 6px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 8px #EF4444; opacity: 0; transition: opacity .3s 1.3s; }
.tp-fv-pcb .led { position: absolute; left: 24px; top: 48px; width: 6px; height: 6px; border-radius: 50%; background: #334155; }
.tp-fv:not([data-p="0"]):not([data-p="1"]) .tp-fv-pcb .pwr { opacity: 1; }
.tp-fv[data-p="4"] .tp-fv-pcb .led { animation: tpFvBlink .25s steps(1) infinite; }
.tp-fv[data-p="4"] .tp-fv-pcb .chip { box-shadow: 0 0 18px rgba(251, 146, 60, .95); color: #FDBA74; }
.tp-fv[data-p="5"] .tp-fv-pcb .led { background: #22C55E; box-shadow: 0 0 10px #22C55E; }
.tp-fv[data-p="5"] .tp-fv-pcb { animation: tpFvGlow 1.2s ease-out both; }
@keyframes tpFvBlink { 50% { background: #38BDF8; box-shadow: 0 0 8px #38BDF8; } }
@keyframes tpFvGlow { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .8); } 100% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0), 0 0 22px -4px rgba(34, 197, 94, .6); } }
.tp-fv-name { margin-top: 7px; text-align: center; line-height: 1.1; }
.tp-fv-name b { display: block; font: 800 15px 'Baloo 2', sans-serif; color: #F8FAFC; }
.tp-fv-name small { font-weight: 800; font-size: 10.5px; color: #94A3B8; }

/* the USB cable + data running along it */
.tp-fv-cable { position: absolute; left: 0; top: 0; width: 408px; height: 250px; pointer-events: none; }
.tp-fv-cable path { fill: none; stroke-linecap: round; }
.tp-fv-cable .wire { stroke: #64748B; stroke-width: 5; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset .9s ease-out 1.1s; }
.tp-fv:not([data-p="0"]):not([data-p="1"]) .tp-fv-cable .wire { stroke-dashoffset: 0; }
.tp-fv-cable .data { stroke: #FB923C; stroke-width: 5; stroke-dasharray: 6 16; opacity: 0; filter: drop-shadow(0 0 3px #F97316); }
.tp-fv[data-p="4"] .tp-fv-cable .data { opacity: 1; animation: tpFvData .5s linear infinite; }
@keyframes tpFvData { to { stroke-dashoffset: -22; } }
.tp-fv-usb { position: absolute; left: 214px; top: 168px; transform: translateX(-50%) translateY(6px); padding: 2px 8px; border-radius: 999px; background: rgba(15, 23, 42, .9); border: 1px solid #64748B; color: #CBD5E1; font: 900 9.5px/1.4 'Nunito', sans-serif; white-space: nowrap; opacity: 0; transition: opacity .4s, transform .4s; pointer-events: none; }
.tp-fv[data-p="2"] .tp-fv-usb, .tp-fv[data-p="3"] .tp-fv-usb, .tp-fv[data-p="4"] .tp-fv-usb { opacity: 1; transform: translateX(-50%); transition-delay: 1.7s; }
.tp-fv[data-p="3"] .tp-fv-usb, .tp-fv[data-p="4"] .tp-fv-usb { transition-delay: 0s; }
.tp-fv[data-p="4"] .tp-fv-usb { border-color: #FB923C; color: #FDBA74; }

/* new features pop out of the board */
.tp-fv-feat { position: absolute; left: 236px; top: 72px; width: 150px; height: 82px; pointer-events: none; }
.tp-fv-feat span { position: absolute; left: 50%; top: 50%; padding: 4px 9px; border-radius: 999px; background: #1E1B4B; border: 1px solid rgba(251, 146, 60, .7); color: #fff; font-weight: 900; font-size: 11.5px; white-space: nowrap; box-shadow: 0 0 14px -4px rgba(249, 115, 22, .7); opacity: 0; transform: translate(-50%, -50%) scale(.3); }
.tp-fv[data-p="5"] .tp-fv-feat span { animation: tpFvOut .7s cubic-bezier(.3, 1.4, .5, 1) .7s both; }
.tp-fv-feat span:nth-child(1) { --x: -100px; --y: -36px; } .tp-fv-feat span:nth-child(2) { --x: 0px; --y: -58px; animation-delay: .82s !important; }
.tp-fv-feat span:nth-child(3) { --x: 100px; --y: -36px; animation-delay: .94s !important; } .tp-fv-feat span:nth-child(4) { --x: -112px; --y: 22px; animation-delay: 1.06s !important; }
.tp-fv-feat span:nth-child(5) { --x: 112px; --y: 22px; animation-delay: 1.18s !important; } .tp-fv-feat span:nth-child(6) { --x: 0px; --y: 100px; animation-delay: 1.3s !important; }
@keyframes tpFvOut { to { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); } }
@media (prefers-reduced-motion: reduce) { .tp-fv *, .tp-fv *::before, .tp-fv *::after { animation: none !important; transition: none !important; } }
@media (max-width: 600px) { .tp-fv { padding: 12px 12px 12px; border-radius: 24px; } .tp-fv-cap { font-size: 16px; } }
@media (max-width: 600px) {
  .tp-flash-btn { width: 100%; font-size: 17px; padding: 16px 18px; }
}

/* My Space › Course keys (me/index.php) */
.tp-me-keys .tp-nav-ic { font-size: 18px; }
.tp-keys-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; background: var(--ss); }
.tp-keys-top p { flex: 1 1 260px; margin: 0; font-weight: 700; font-size: 14px; color: #334155; line-height: 1.45; }
.tp-keys-count { display: flex; flex-direction: column; align-items: center; min-width: 84px; }
.tp-keys-count b { font-family: var(--tp-head); font-size: 40px; line-height: 1; color: #B45309; }
.tp-keys-count span { font-weight: 900; font-size: 12px; color: #92400E; text-transform: uppercase; letter-spacing: .03em; }
.tp-keys-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tp-keys-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 2px solid #FDE68A; background: #fff; }
.tp-keys-list li > span { grid-row: span 2; font-size: 22px; }
.tp-keys-list li b { font-weight: 900; font-size: 14px; }
.tp-keys-list li small { font-weight: 800; font-size: 12.5px; color: #64748B; }
.tp-keys-list li.soon { border-color: #FDBA74; background: #FFF7ED; }
.tp-keys-list li.soon small { color: #C2410C; }
.tp-keys-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.tp-keys-cols h3 { margin: 0 0 4px; font-size: 16px; color: #92400E; }
@media (max-width: 720px) { .tp-keys-cols { grid-template-columns: 1fr; } }
.tp-key-h.expired b, .tp-key-h.removed b { color: #94A3B8; }
.tp-key-h { border-radius: 0; }   /* plain rows (not links): a straight divider line, not a curved one */

/* 2.32: long names with no spaces (Smart_Parking_System_with_Display) wrap onto the next line instead of running off the screen */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6, b, strong { overflow-wrap: anywhere; }
/* TinkerPy Games: a fourth group (board · apps · games · code) */
.tp-tgroups { grid-template-columns: 1fr 2fr 1fr 2fr; }
@media (max-width: 1100px) and (min-width: 621px) and (min-height: 521px) { .tp-tgroups { grid-template-columns: 1fr 2fr; } .tp-tg-hw { grid-column: auto; } .tp-tg-hw .tp-tiles { max-width: none; } }
@media (max-width: 620px) and (orientation: portrait) { .tp-tgroups { grid-template-columns: 1fr; } .tp-tg-games .tp-tiles { width: 50%; margin: 0 auto; } }
@media (orientation: landscape) and (max-height: 520px) { .tp-tgroups { grid-template-columns: 1fr 2fr 1fr 2fr; } }
/* My Space: five counts (Projects · Apps · Games · Lessons · AppSpace) */
@media (min-width: 800px) { .tp-stats { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 799px) { .tp-stats a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Home › Create: six spaces (Games added) — 6 in a row on a wide screen, 3 on a tablet, 2 on a phone */
.hm-spaces { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .hm-spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .hm-spaces { grid-template-columns: 1fr 1fr; } }

