
@font-face{font-family:"Inter";src:url(/new-site/fonts/Inter-Regular.ttf) format("truetype");font-weight:400;font-display:block}
@font-face{font-family:"Inter";src:url(/new-site/fonts/Inter-Medium.ttf) format("truetype");font-weight:500;font-display:block}
@font-face{font-family:"Inter";src:url(/new-site/fonts/Inter-SemiBold.ttf) format("truetype");font-weight:600;font-display:block}
:root{--ease:cubic-bezier(.2,0,0,1);--out:cubic-bezier(.16,1,.3,1);--page:#0A0A0A;--bar:#1C1C1C;--pill:#1F1F1F;--pill-hover:#2A2A2A;--pill-active:#303030;--white:#FAFAFA;--soft:#ADADAD;--faint:#8A8A8A;--example:#666666;--example-waiting:#4D4D4D}
*{box-sizing:border-box}
.pre .header,.pre .hero{visibility:hidden}
html{scrollbar-gutter:stable}   /* the page keeps its scrollbar's room: nothing slides sideways as it comes and goes */
html,body{margin:0;background:var(--page);color:var(--white);font-family:"Inter",system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{min-height:100vh;overflow-x:hidden}

/* header: Figma "Header bar" 1180 x 56 and "Header, Features open". Behaviour and motion numbers are the Raven site header
   (wallet-manager, src/landing/landing.css + main.ts): colours change in 150 ms, the caret turns in 200 ms, the menu drops 4 px in 180 ms,
   then its titles, rows and card come in as a wave (220 ms each, 8 up, 25 ms apart), it closes 160 ms after the pointer leaves. */
.header{position:absolute;z-index:50;top:40px;left:50%;transform:translateX(-50%);width:min(1180px,calc(100vw - 48px));height:56px;border-radius:28px;background:var(--bar);box-shadow:0 8px 24px rgba(0,0,0,.4);display:flex;align-items:center;justify-content:space-between;padding:0 8px}
.header a{text-decoration:none;-webkit-tap-highlight-color:transparent}
.header a:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.brand{display:flex;align-items:center;gap:10px;height:40px;padding-right:12px;border-radius:20px;font-size:16px;line-height:22px;font-weight:600;letter-spacing:-.01em;color:#F2F2F2}
.disc{width:40px;height:40px;border-radius:50%;background:#000;display:grid;place-items:center}
.disc img{width:24px;height:20px;object-fit:contain;display:block}
.brand .disc{width:32px;height:32px}
.brand .disc img{width:18px;height:16px}
.links{position:absolute;left:50%;top:8px;transform:translateX(-50%);display:flex;gap:2px}
.link{height:40px;padding:0 12px;border-radius:20px;display:flex;align-items:center;gap:4px;font-size:14px;line-height:20px;font-weight:500;color:var(--soft);white-space:nowrap;transition:color .15s var(--ease)}
.link:hover,.link[aria-expanded="true"]{color:#F2F2F2}
.link svg{transition:transform .2s var(--ease)}
.link[aria-expanded="true"] svg{transform:rotate(180deg)}
.end{display:flex;align-items:center}
.login{height:40px;padding:0 12px;border-radius:20px;display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;font-weight:500;color:#F2F2F2;white-space:nowrap;transition:color .15s var(--ease)}
.login:hover{color:#FFFFFF}
.cta{height:40px;border-radius:20px;background:#F5F5F5;color:#0A0A0A;padding:0 14px 0 16px;display:flex;align-items:center;gap:6px;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;transition:background-color .15s var(--ease),transform .15s var(--ease)}
.cta:hover{background:#FFFFFF}
.cta:active{transform:scale(.98)}
@keyframes through{0%{transform:translateX(0);animation-timing-function:cubic-bezier(.55,0,.75,.2)}45%{transform:translateX(256px)}45.1%{transform:translateX(-256px);animation-timing-function:cubic-bezier(.16,1,.3,1)}100%{transform:translateX(0)}}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.cta:hover svg path{animation:through .46s both}}

/* The two menus, on ONE spacing system (Lime, 18 Nov 2026, on the first one: "none of the UI fits in it ... the spacing and
   sizing at the edges ... across all of them"). Figma "Features menu" 880 x 296 and "Tools menu" 744 x 248, corners 36,
   8 under the bar, centred.
   - 12 from every edge: the rows, the card and the heads all start 12 in (it was 16 on the left and 8 elsewhere).
   - a row is 44 high and fully round, 4 from the next; its picture is 16 in from the row's round end and its name 12 after
     the picture, so both sit clear of the curve (the picture was 8 in, inside the curve); 16 or more after the name.
   - a head is on the line the pictures start on (28 from the menu's edge), 24 from the top.
   - columns, and the card after them, are 8 apart. The card is 304 wide with corners 24 (36 less the 12 around it); its two
     buttons are 140 wide so their words have 17 each side (Browse profiles had 13).
   Features is three columns 176 wide and five rows; Tools is two columns 200 wide (Server layout maker is the longest
   name) and four rows, so Tools is the shorter menu: a row is the same row in both. */
.menu{position:absolute;top:64px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:176px 176px 176px 304px;column-gap:8px;align-items:start;width:880px;height:296px;padding:12px;border-radius:36px;background:var(--bar);box-shadow:0 2px 8px rgba(0,0,0,.4),0 12px 32px rgba(0,0,0,.6)}
.menu[hidden]{display:none}
@media (max-width:911px){.menu:not(.tmenu){display:none}}
.tmenu{grid-template-columns:200px 200px 304px;width:744px;height:248px}
@media (max-width:791px){.tmenu{display:none}}
.feat .ppic{position:absolute;left:68px;top:16px;width:168px;height:305px;display:block}
/* five words, centred on the bar, must keep 8 clear of Log in (measured with a real 15 scrollbar, since Wiki became Docs, 5 wider):
   under 985 wide each word gives up 4 a side, under 945 two more, so they stay centred down to 921 (Lime's 926 window included).
   Under 921 they stop being centred on the bar and sit in the room between the logo and Log in, so nothing overlaps; under 797
   Log in gives way to them. This is only so a small or zoomed window is not broken: the phone header is not designed yet. */
@media (max-width:984px){.link{padding:0 8px}}
@media (max-width:944px){.link{padding:0 6px}}
@media (max-width:920px){.links{position:static;transform:none;margin:0 auto}}
@media (max-width:796px){.login{display:none}}
/* ---------- the phone (under 760 wide): Figma section "Phone". The same bar 12 from the top with the logo, Add to Discord and a round menu
   button; the five words and Log in live in the menu, which is the bar opened into a sheet (how Raven's site does it). ---------- */
.burger{display:none;width:40px;height:40px;padding:0;border:0;border-radius:20px;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s var(--ease)}
.burger img,.sheetX img{display:block}
.burger:active,.sheetX:active{transform:scale(.94)}
.sheet{position:fixed;inset:12px 12px max(12px,env(safe-area-inset-bottom)) 12px;z-index:60;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0 16px 16px;border:0;border-radius:28px;background:var(--bar);color:#F2F2F2;box-shadow:0 8px 24px rgba(0,0,0,.4);flex-direction:column;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.sheet[open]{display:flex}
.sheet::-webkit-scrollbar{display:none}
.sheet::backdrop{background:var(--page)}
html:has(.sheet[open]){overflow:hidden}
.sheet a{text-decoration:none;-webkit-tap-highlight-color:transparent}
.sheet :is(a,button):focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.sheetTop{flex:none;display:flex;align-items:center;justify-content:space-between;height:56px;margin:0 -8px 8px}
.sheetX{width:40px;height:40px;padding:0;border:0;border-radius:20px;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s var(--ease)}
.srow{flex:none;display:flex;align-items:center;justify-content:space-between;width:100%;height:52px;margin:0;padding:0;border:0;border-bottom:1px solid #2A2A2A;background:none;font:600 20px/28px "Inter",system-ui,sans-serif;color:#F2F2F2;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.srow svg{color:var(--faint);transition:transform .2s var(--ease),color .15s var(--ease)}
.srow[aria-expanded="true"] svg{transform:rotate(180deg);color:#F2F2F2}
.sitems{flex:none;display:grid;grid-auto-flow:column;grid-template-columns:1fr 1fr;padding:8px 0 7px;border-bottom:1px solid #2A2A2A;overflow:hidden}
.sitems[hidden]{display:none}
.sitems a{display:flex;align-items:center;gap:12px;height:40px;font-size:14px;line-height:20px;font-weight:500;color:#F2F2F2;white-space:nowrap}
.sitems .ic{flex:none;box-sizing:border-box;width:18px;height:18px;display:block}
.sitems .ic img{display:block}
.sfoot{flex:none;display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:24px}
.swide{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:24px;font-size:15px;line-height:20px;font-weight:600;color:#F2F2F2;box-shadow:inset 0 0 0 1px #3A3A3A;transition:transform .15s var(--ease)}
.swide.white{background:#F5F5F5;color:#0A0A0A;box-shadow:none}
.swide:active{transform:scale(.98)}
/* two columns need 167 each for "Server layout maker": under 380 wide the rows go in one column */
@media (max-width:379px){.sitems{grid-auto-flow:row;grid-template-columns:1fr;grid-template-rows:none !important}}
@media (prefers-reduced-motion:no-preference){
  /* the bar becomes the sheet: it opens downward out of the bar's own shape, then its rows come in as a wave */
  .sheet[open]{animation:sheetOpen .32s cubic-bezier(.32,.72,0,1)}
  .sheet[open] :is(.srow,.sfoot){animation:waveIn .22s var(--ease) calc(60ms + var(--i,0) * 25ms) backwards}
  .sheet[data-closing]{animation:sheetShut .18s cubic-bezier(.5,0,1,.7) forwards}
}
@keyframes sheetOpen{from{clip-path:inset(0 0 calc(100% - 56px) 0 round 28px)}to{clip-path:inset(0 0 0 0 round 28px)}}
@keyframes sheetShut{from{clip-path:inset(0 0 0 0 round 28px)}to{clip-path:inset(0 0 calc(100% - 56px) 0 round 28px)}}
@media (max-width:759px){
  .header{top:12px;width:calc(100vw - 24px)}
  .header .links,.header .login{display:none}
  .header .end{gap:6px}
  .header .cta{padding:0 14px}
  .header .cta svg{display:none}
  .header .burger{display:block}
}
/* 44 to the thumb, the drawing stays 40 (Raven's): the menu button, the cross, Add to Discord and Build it */
@media (max-width:759px){:is(.burger,.sheetX,.header .cta,.go){position:relative}:is(.burger,.sheetX,.header .cta,.go)::after{content:"";position:absolute;inset:-2px 0}}
/* under 340 wide the name gives way and the disc stays */
@media (max-width:339px){.header .brand{font-size:0;gap:0;padding-right:0}}
@media (prefers-reduced-motion:no-preference){
  .menu:not([hidden]){animation:drop .18s var(--ease)}
  .menu:not([hidden]) :is(.col > *,.feat){animation:waveIn .22s var(--ease) calc(40ms + var(--i,0) * 25ms) backwards}
}
@keyframes drop{from{opacity:0;transform:translate(-50%,-4px)}}
@keyframes waveIn{from{opacity:0;translate:0 8px}}
.group{margin:0;height:36px;padding:12px 0 0 16px;font-size:13px;line-height:16px;font-weight:500;color:var(--faint)}
.item{display:flex;align-items:center;gap:12px;height:44px;padding:0 16px;border-radius:22px;font-size:14px;line-height:20px;font-weight:500;color:#F2F2F2;white-space:nowrap;transition:background-color .12s var(--ease)}
.item + .item{margin-top:4px}
.item:hover{background:#242424}
.item .ic{flex:none;box-sizing:border-box;width:18px;height:18px;display:block}
.item .ic img{display:block}
.feat{position:relative;align-self:stretch;overflow:hidden;border-radius:24px;background:#151515}   /* as high as the menu less the 12 above and below */
.pic{position:absolute;box-sizing:border-box;left:43px;top:16px;width:218px;height:268.14px;overflow:hidden;border:.545px solid #262626;border-radius:8.72px;background:#171717;color:#FFFFFF}
.pic *{position:absolute;margin:0;white-space:nowrap}
.pic img{display:block}
.pic .plan{left:8.18px;top:7.09px;font-size:7.63px;line-height:10.9px;font-weight:600}
.pic .x{left:191.29px;top:3.82px;width:17.44px;height:17.44px}
.pic .x img{left:4.36px;top:4.36px}
.pic .tabs{left:52.5px;top:3.82px;width:118.81px;height:17.44px}
.pic .tab{top:1.64px;height:14.17px;border-radius:7.085px}
.pic .tab b{left:6.54px;top:2.73px;font-size:6.54px;line-height:8.72px;font-weight:500;color:#A3A3A3}
.pic .tab.on{background:#FFFFFF}
.pic .tab.on b{color:#111111}
.pic .row{left:3.82px;width:209.28px;height:23.98px}
.pic .chipbox{left:4.36px;top:5.45px;width:13.08px;height:13.08px;border-radius:3.27px;background:#262626}
.pic .chipbox img{left:2.18px;top:2.18px;width:8.72px;height:8.72px;object-fit:contain}
.pic .name{left:23.98px;font-size:7.085px;line-height:9.81px;font-weight:500}
.pic .grip{left:200.02px;top:8.45px}
.pic .tag{height:9.81px;border-radius:3.27px}
.pic .tag b{left:4.36px;top:1.09px;font-size:5.995px;line-height:7.63px;font-weight:500}
.pic .tag.new{left:169.5px;width:21.8px;background:rgba(34,197,94,.14)}
.pic .tag.new b{color:#22C55E}
.pic .tag.changed{left:156.42px;width:34.88px;background:rgba(251,191,36,.14)}
.pic .tag.changed b{color:#FBBF24}
/* the card's foot is measured from its bottom, so it is the same foot in both menus: the buttons 8 up, the name 12 over them */
.feat .fade{position:absolute;left:0;bottom:92px;width:100%;height:52px;background:linear-gradient(rgba(21,21,21,0),#151515)}
.feat .under{position:absolute;left:0;bottom:0;width:100%;height:92px;background:#151515}
.feat .featName{position:absolute;margin:0;left:16px;bottom:60px;font-size:16px;line-height:24px;font-weight:600;color:#F2F2F2;white-space:nowrap}
.chip{position:absolute;bottom:8px;width:140px;height:40px;border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;background:#2C2C2C;color:#F2F2F2;transition:background-color .15s var(--ease),transform .15s var(--ease)}
.chip:hover{background:#363636}
.chip.white{background:#F5F5F5;color:#0A0A0A}
.chip.white:hover{background:#FFFFFF}
.chip:active{transform:scale(.98)}

/* heading. Proportions measured on the reference page (graphicalui.com), in em:
   line 1.333, pill 1.1em + 2px tall, pill starts .1em before the picture and ends .28em after the word,
   .16em between picture and word, a plain space between a pill and the words beside it. */
.hero{padding-top:200px;display:flex;flex-direction:column;align-items:center}
h1{margin:0;font-size:60px;line-height:80px;font-weight:500;letter-spacing:-.03em;color:var(--white);text-align:center}
.line{display:block;white-space:nowrap}
.rise{display:inline-block;position:relative}
.rise .ch{position:absolute;top:0;white-space:pre;will-change:transform}
.token{position:relative;display:inline-block;vertical-align:baseline;height:80px;padding:0;margin:0;border:0;background:none;font:inherit;letter-spacing:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:999px;isolation:isolate;-webkit-tap-highlight-color:transparent;transition:width .2s cubic-bezier(.19,1,.22,1)}
.token::before{content:"";position:absolute;z-index:-1;left:0;right:0;top:50%;height:calc(1.1em + 2px);transform:translateY(-50%);border-radius:inherit;background:var(--pill);transition:background-color .18s;pointer-events:none}
.token:hover::before{background:var(--pill-hover)}
.token:active::before{background:var(--pill-active)}
.token:focus-visible{outline:none}
.token:focus-visible::before{outline:2px solid #8B5CF6;outline-offset:4px}
.iconWindow{position:absolute;left:.1em;top:0;bottom:0;pointer-events:none}
.layer{position:absolute;left:0;top:0;bottom:0;transform-origin:50% 50%;will-change:transform,opacity}
.layer svg{position:absolute;display:block;overflow:visible}
.textWindow{position:absolute;top:0;bottom:0;white-space:nowrap;pointer-events:none}
.morph{display:inline-block;position:relative;white-space:pre}
.morph span{display:inline-block;position:relative;white-space:pre;will-change:transform,opacity}
.measure{position:absolute;left:0;top:0;visibility:hidden;white-space:pre;pointer-events:none}

/* prompt box: Figma "Prompt box, its looks". 760 x 88 at one line, grows to four lines (160), violet edge once clicked */
/* the note beside the box: small words centred over the start of a small ink arrow that runs at 45 degrees onto the box's top left corner */
/* line under the heading: Figma "Line under the heading". The live words, 18/28, 16 under the heading.
   The first screen's rhythm (18 Nov, "the spacing in the hero ... feels overstimulating"): three groups 96 apart
   (heading + line, box + server count, film); inside a group 16 or 24. Box top 500, count 612, film 736 in the Home frames. */
.sub{margin:16px 0 0;max-width:calc(100vw - 48px);font-size:18px;line-height:28px;font-weight:400;letter-spacing:-.01em;color:var(--soft);text-align:center;text-wrap:balance;overflow:hidden}
.sub span{display:block;will-change:transform}
.boxWrap{position:relative;margin-top:96px;width:min(760px,calc(100vw - 48px))}
.note{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none}
.note .say{position:absolute;font-size:16px;line-height:20px;font-weight:500;letter-spacing:-.01em;color:var(--white);white-space:nowrap;transform-origin:50% 100%;transform:translateX(-50%) rotate(-6deg)}
.note svg{position:absolute;overflow:visible}
@media (max-width:1100px){.note{display:none}}
.bar{width:100%;min-height:88px;border-radius:44px;background:var(--bar);box-shadow:0 8px 24px rgba(0,0,0,.4);display:flex;align-items:flex-end;padding:16px 16px 16px 36px;gap:16px;cursor:text;transition:background-color .15s ease,box-shadow .15s ease}
.bar:hover{background:#222222}
.bar:focus-within{background:var(--bar);box-shadow:0 8px 24px rgba(0,0,0,.4),inset 0 0 0 1.5px #8B5CF6}
.field{position:relative;flex:1;min-width:0;padding:16px 0}
.field textarea{display:block;width:100%;height:24px;max-height:96px;margin:0;padding:0;border:0;outline:0;resize:none;background:none;color:var(--white);caret-color:var(--white);font:400 17px/24px "Inter",system-ui,sans-serif;overflow-y:auto;scrollbar-gutter:stable}
/* its own thumb, never the browser's bar with arrows (which Chromium draws as soon as scrollbar-width is set) */
.field textarea::-webkit-scrollbar{width:10px;background:transparent}
.field textarea::-webkit-scrollbar-button{display:none;width:0;height:0}
.field textarea::-webkit-scrollbar-thumb{min-height:24px;border:3px solid transparent;border-radius:5px;background:#3A3A3A;background-clip:content-box}
@supports not selector(::-webkit-scrollbar){.field textarea{scrollbar-width:thin;scrollbar-color:#3A3A3A transparent}}
.ex{position:absolute;left:0;right:0;top:16px;font-size:17px;line-height:24px;color:var(--example);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:opacity .14s ease,color .15s ease}
.ex.fade{opacity:0}
.ex .caret{display:inline-block;width:1.5px;height:20px;margin-left:2px;vertical-align:-4px;background:var(--example);animation:blink 1.06s steps(1) infinite}
.bar.focused .ex{color:var(--example-waiting)}
.bar.focused .ex .caret,.bar.filled .ex{display:none}
@keyframes blink{50%{opacity:0}}
.go{flex:none;height:56px;border-radius:28px;border:0;background:#F5F5F5;color:#0A0A0A;padding:0 20px 0 22px;display:flex;align-items:center;gap:8px;font:600 19.6px/1 "Inter",system-ui,sans-serif;cursor:pointer;transition:transform .12s ease}
.go:active{transform:scale(.97)}
.go:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.token{transition:none}.token::before{transition:none}}

/* film: Figma "Film". Surround 1180 wide, corners 28, the bar's fill and shadow; the picture sits 8 in, 16:9, corners 20 (28 - 8).
   96 under the server count, so it rises from the bottom of the first screen and is cut by the fold. */
/* server count: Figma "Server count". Three real server icons 28 across, overlapping by 8 with a 2 px ring in the page colour,
   12 to the words; the live words, the number in white. 24 under the box (it belongs to the box), 96 above the film. */
.count{margin:24px 0 0;height:28px;display:flex;align-items:center;gap:12px}
.count .icons{display:flex}
.count .icons img{display:block;width:28px;height:28px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--page)}
.count .icons img + img{margin-left:-8px}
.count p{margin:0;font-size:15px;line-height:20px;letter-spacing:-.01em;color:var(--soft);white-space:nowrap}
.count b{font-weight:600;color:var(--white)}
.film{margin:96px 0 0;width:min(1180px,calc(100vw - 48px));padding:8px;border-radius:28px;background:var(--bar);box-shadow:0 8px 24px rgba(0,0,0,.4);will-change:transform}
.film video{display:block;width:100%;aspect-ratio:16/9;border-radius:20px;background:#050505;object-fit:cover}

/* Replace 6 bots with one: Figma "Replace 6 bots with one, ... showing" (three frames, one per feature).
   160 under the film. Heading 48/52. One card 1180 x 421, corners 28, the bar's fill and shadow, 48 under the heading:
   the feature's video 720 x 405 sits 8 in (corners 20), the three features are a list 340 wide, 56 from the video and from the card's edge.
   The one showing has its name at 32/36 with its line and a 2 px time bar; the others are names at 22/28 in grey.
   Behaviour and timings are the Raven site's moves list (wallet-manager, src/landing/landing.css): the next name grows while the last
   shrinks (480 ms), the line and bar fold open, the next video comes out of a soft blur, and the bar's end moves on to the next one. */
.feats,.tpls,.faq,.help{margin-top:160px;width:min(1180px,calc(100vw - 48px));display:flex;flex-direction:column;align-items:center}
.feats h2,.tpls h2,.faq h2,.help h2{margin:0;font-size:48px;line-height:52px;font-weight:500;letter-spacing:-.03em;color:var(--white);text-align:center;text-wrap:balance}
.fcard{position:relative;margin-top:48px;width:100%;height:421px;border-radius:28px;background:var(--bar);box-shadow:0 8px 24px rgba(0,0,0,.4)}
.fshot{position:absolute;left:8px;top:8px;width:720px;height:405px;border-radius:20px;overflow:hidden;background:#050505}
.fshot video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;filter:blur(6px);transform:scale(1.02);transition:opacity .26s var(--ease),filter .26s var(--ease),transform .26s var(--ease)}
.fshot video[data-on]{opacity:1;filter:none;transform:none;transition:opacity .42s var(--out),filter .52s var(--out),transform .7s var(--out)}
.flist{position:absolute;left:784px;top:50%;transform:translateY(-50%);width:340px;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:20px}
.fmove{cursor:pointer}
.fmove h3{margin:0;font-size:inherit;font-weight:inherit}
.fname{display:block;width:100%;margin:0;padding:0;border:0;border-radius:6px;background:none;text-align:left;cursor:pointer;font-family:inherit;color:var(--faint);font-size:22px;line-height:28px;font-weight:500;letter-spacing:-.02em;transition:color .3s var(--ease),font-size .48s var(--out),line-height .48s var(--out),letter-spacing .48s var(--out)}
.fname:focus-visible{outline:2px solid #8B5CF6;outline-offset:4px}
.fmove:hover .fname{color:var(--soft)}
.fmore{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .48s var(--out),opacity .2s var(--ease)}
.fmore > div{min-height:0;overflow:hidden}
.fmove[aria-current="true"],.fmove[aria-current="true"] .fname{cursor:default}
.fmove[aria-current="true"] .fname{color:#F2F2F2;font-size:32px;line-height:36px;letter-spacing:-.03em}
.fmove[aria-current="true"] .fmore{grid-template-rows:1fr;opacity:1;transition:grid-template-rows .48s var(--out),opacity .36s var(--ease) .12s}
.fline{margin:0;padding-top:10px;font-size:16px;line-height:24px;color:var(--soft)}
.fbar{display:block;height:2px;margin-top:10px;border-radius:1px;overflow:hidden;background:#373737}
.fbar i{display:block;width:100%;height:100%;background:#F2F2F2;transform:scaleX(0);transform-origin:left}
.frun .fmove[aria-current="true"] .fbar i{animation:ffill var(--dur,5s) linear forwards}
@keyframes ffill{to{transform:scaleX(1)}}
.more{margin-top:32px;display:flex;align-items:center;gap:6px;font-size:14px;line-height:20px;font-weight:500;color:var(--soft);text-decoration:none;white-space:nowrap;border-radius:10px;transition:color .15s var(--ease)}
.more:hover{color:#F2F2F2}
.more svg{transition:transform .2s var(--ease)}
.more:hover svg{transform:translateX(2px)}
.more:focus-visible{outline:2px solid #8B5CF6;outline-offset:4px}

/* Start with a template: Figma "Start with a template" (and ", pointer on a card"). 160 under the section above. Heading 48/52.
   48 under it a strip of the fifteen live templates runs across the whole window, right to left, and loops; both ends fade out over 200.
   Lime 16 Nov: the flat list was "too plain", "more like our last one, with a thing going across it". It does not stop under the pointer.
   The card is the live site's card, raised (Lime 16 Nov: "more like our last one ... upgrade it", then "improve it a lot", "make better";
   the live card was opened and measured on peakbot.pro). 352 x 336, corners 28, #171717, a 1 px outline in the template's category colour.
   8 in, a flat tint of that colour 336 x 164 (corners 20) holding a small server window 296 wide that runs off its bottom edge:
   the real logo on a white tile 28, the server's name 13/20, a caret, a hairline, then the first four real channels on 28 rows
   (hash, the emoji as a Twemoji picture 14 across, the name 13/20), the first one lit as the channel in view.
   Under it the name 20/28 Semi Bold with the category as a tag at the right, the live line (14/20, two lines at most), a hairline,
   then "17 channels, 6 roles" 13/20 with one 8 px dot per role in that role's own colour at the right.
   Colours are mixed solid onto the card (outline 45%, tint 16%, tag 18%); no gradient, no glow. Under the pointer the card rises 4
   and its outline strengthens to 80%. The strip keeps moving. */
.tstrip{width:100vw;margin-top:8px;padding:40px 0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 200px,#000 calc(100% - 200px),transparent);mask-image:linear-gradient(90deg,transparent,#000 200px,#000 calc(100% - 200px),transparent)}
.ttrack{display:flex;width:max-content;animation:tmove 100s linear infinite;animation-play-state:paused;will-change:transform}
.ttrack.on{animation-play-state:running}
@keyframes tmove{to{transform:translateX(-50%)}}
.tset{display:flex;gap:20px;margin:0;padding:0 20px 0 0;list-style:none}
.tcard{display:block;position:relative;width:352px;height:336px;border-radius:28px;background:#171717;box-shadow:inset 0 0 0 1px var(--o),0 8px 24px rgba(0,0,0,.4);text-decoration:none;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.tcard:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px var(--oh),0 8px 24px rgba(0,0,0,.4)}
.tcard:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
.tcard::after{content:"";position:absolute;left:24px;right:24px;top:284px;height:1px;background:#262626}
.ttint{position:absolute;left:8px;top:8px;width:336px;height:164px;border-radius:20px;background:var(--t);overflow:hidden}
.twin{position:absolute;left:20px;top:16px;width:296px;height:200px;border-radius:12px;background:#0E0E0E;box-shadow:inset 0 0 0 1px #262626}
.tlogo{position:absolute;left:12px;top:8px;width:28px;height:28px;border-radius:8px;background:#FFFFFF;display:grid;place-items:center}
.tlogo img{display:block;width:16px;height:16px}
.tsrv{position:absolute;left:50px;top:12px;right:36px;font-size:13px;line-height:20px;font-weight:600;color:#F2F2F2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.twin > svg{position:absolute;right:12px;top:16px;color:var(--faint)}
.tch{position:absolute;left:1px;right:1px;top:44px;padding:7px 5px 0;border-top:1px solid #1F1F1F}
.tch span{display:flex;align-items:center;height:28px;padding-left:8px;border-radius:6px;font-size:13px;line-height:20px;color:var(--soft);white-space:nowrap;overflow:hidden}
.tch i{flex:none;width:20px;font-style:normal;font-weight:500;color:#6B6B6B}
.tch img{flex:none;display:block;width:14px;height:14px;margin-right:8px}
.tch .on{background:#1F1F1F;color:#F2F2F2;font-weight:500}
.tcard h3,.tcard .h3{position:absolute;left:24px;top:188px;margin:0;font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--white);white-space:nowrap}
.ttag{position:absolute;right:24px;top:189px;height:26px;padding:0 10px;border-radius:13px;background:var(--g);color:var(--x);font-size:12px;line-height:26px;font-weight:500;white-space:nowrap}
.tline{position:absolute;left:24px;top:228px;width:304px;height:40px;margin:0;font-size:14px;line-height:20px;color:#A3A3A3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tfacts{position:absolute;left:24px;top:296px;margin:0;font-size:13px;line-height:20px;color:var(--faint);white-space:nowrap}
.tdots{position:absolute;right:24px;top:302px;display:flex;gap:5px}
.tdots b{width:8px;height:8px;border-radius:50%}
.tpls .more{margin-top:-8px}

/* No pricing section on the home page (Lime 16 Nov, after two tries at a short one: "nah honestly dont need that"). Pricing lives on its own page. */

/* Common Questions: Figma "Common Questions" (and ", pointer on a row"). 160 under the templates. Heading 48/52.
   48 under it the live page's twelve questions, word for word (they have to match the page's FAQPage block), as one centred column
   760 wide: each a filled row (the bar's fill, corners 20), 8 apart, the question 17/24 with 20 above and below and 24 at the sides,
   a caret 20 across at the right. The first one is open: its answer 15/24 sits 8 under the question, 668 wide, 22 above the row's end.
   Opening and closing are the Raven site's questions (wallet-manager, .lp-q / .lp-a): the row grows over 260 ms without moving the page,
   the answer fades in as it grows, the caret turns in 220 ms. Under the pointer a row goes #222222 and its caret white. */
.qs{margin-top:48px;width:760px;max-width:100%;display:flex;flex-direction:column;gap:8px}
.q{border-radius:28px;background:var(--bar);transition:background-color .15s var(--ease)}
.q:hover{background:#222222}
.q h3{margin:0;font-size:inherit;font-weight:inherit}
.q button{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;width:100%;margin:0;padding:20px 24px;border:0;border-radius:20px;background:none;cursor:pointer;font-family:inherit;font-size:17px;line-height:24px;font-weight:500;letter-spacing:-.01em;color:#F2F2F2;text-align:left}
.q button:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.q button svg{flex:none;margin-top:2px;color:var(--faint);transition:transform .22s var(--ease),color .15s var(--ease)}
.q:hover button svg{color:#F2F2F2}
.q[data-open] button svg{transform:rotate(180deg)}
.a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .26s var(--ease)}
.q[data-open] .a{grid-template-rows:1fr}
.a > div{margin-top:-12px;min-height:0;overflow:hidden}
.a p{margin:0;padding:0 68px 22px 24px;font-size:15px;line-height:24px;color:var(--soft);opacity:0;transform:translateY(-4px);transition:opacity .18s var(--ease),transform .26s var(--ease)}
.q[data-open] .a p{opacity:1;transform:none;transition:opacity .24s var(--ease) 60ms,transform .26s var(--ease)}

/* Need Help?: Figma "Need Help?". 160 under the questions. One card 1180 x 288 (corners 28, the bar's fill and shadow) with everything
   centred: the heading 48/52 64 down, the live fact "Average response time under 1 hour" 16/24 12 under it, then 32 on a white
   Join Support Server button 48 tall with the Discord logo. Kept to one line of reading (Lime 16 Nov: "a lot of reading here").
   The bare card "sucks" (Lime, same day), so it has what the live card has, scattered tiles at both sides, but ours hold the page's own
   hand-drawn emojis: four at the left (96, 60, 76, 64 across, corners 28% of the size, #242424, each tilted a few degrees) and the
   same four places mirrored at the right. They are decoration, hidden from readers, and they do not move once they have come in. */
.hcard{position:relative;overflow:hidden;box-sizing:border-box;width:100%;height:288px;padding-top:64px;border-radius:28px;background:var(--bar);box-shadow:0 8px 24px rgba(0,0,0,.4);display:flex;flex-direction:column;align-items:center}
.hcard > h2,.hcard > p,.hcard > a{position:relative}
.tile{position:absolute;background:#242424;transform:rotate(var(--r))}
.tile svg{position:absolute;display:block}
@media (prefers-reduced-motion:no-preference){.hcard.seen .tile{animation:tilein .56s var(--out) calc(180ms + var(--i) * 55ms) backwards}}
@keyframes tilein{from{opacity:0;transform:rotate(var(--r)) scale(.4)}}
.hfact{margin:12px 0 0;font-size:16px;line-height:24px;color:var(--soft);text-align:center}
.wbtn{margin-top:32px;height:48px;padding:0 20px;border-radius:24px;background:#F5F5F5;color:#0A0A0A;display:flex;align-items:center;gap:8px;font-size:16px;line-height:24px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background-color .15s var(--ease),transform .15s var(--ease)}
.wbtn:hover{background:#FFFFFF}
.wbtn:active{transform:scale(.98)}
.wbtn:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.wbtn:hover svg path{animation:through .46s both}}
.dlogo{flex:none;width:20px;height:20px;background:#0A0A0A;-webkit-mask:url(/new-site/icons/social-discord.svg) center/contain no-repeat;mask:url(/new-site/icons/social-discord.svg) center/contain no-repeat}

/* Footer: Figma "Footer". 160 under the help card, on the same 1180. The logo and name at the left; from 432 in, four columns 163 wide,
   32 apart, with the live site's own links: a heading 13/18 in grey, then links 14/20, 12 apart (the Raven site footer's numbers).
   64 under the longest column a row 40 tall: the copyright, 24 on the notice Discord requires, and at the right the language,
   28 on the three social marks 18 across, 20 apart. 48 to the end of the page. No brand paragraph: less to read. */
.foot{width:min(1180px,calc(100vw - 48px));margin:160px auto 0;padding-bottom:48px}
.foot a{text-decoration:none;-webkit-tap-highlight-color:transparent}
.foot a:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px;border-radius:6px}
.fgrid{display:flex;align-items:flex-start}
.fbrand{flex:0 0 432px}
.fbrand a{display:inline-flex;align-items:center;gap:10px;height:40px;border-radius:20px;font-size:16px;line-height:22px;font-weight:600;letter-spacing:-.01em;color:#F2F2F2}
.fcols{display:grid;grid-template-columns:repeat(4,163px);column-gap:32px}
.fcols p{margin:0;font-size:13px;line-height:18px;color:var(--faint)}
.fcols ul{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:12px}
.fcols a{display:block;width:fit-content;font-size:14px;line-height:20px;font-weight:500;color:var(--soft);white-space:nowrap;transition:color .15s var(--ease)}
.fcols a:hover{color:#F2F2F2}
.frow2{margin-top:64px;min-height:40px;display:flex;align-items:center}
.fcopy{margin:0;font-size:14px;line-height:20px;color:var(--soft);white-space:nowrap}
.fnote{margin:0 auto 0 24px;font-size:14px;line-height:20px;color:var(--faint)}
.flang{display:flex;align-items:center;gap:6px;margin-right:28px;font-size:14px;line-height:20px;font-weight:500;color:var(--soft)}
.soc{flex:none;display:block;width:18px;height:18px;margin-left:20px;background:var(--faint);-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat;transition:background-color .15s var(--ease)}
.flang + .soc{margin-left:0}
.soc:hover{background:#F2F2F2}
@media (max-width:1227px){
  .hcard{height:auto;padding:48px 24px}
  .tile{display:none}
  .foot{margin-top:96px}
  .fgrid{flex-wrap:wrap}
  .fbrand{flex-basis:100%;margin-bottom:32px}
  .fcols{flex:1;grid-template-columns:repeat(4,minmax(0,1fr))}
  .frow2{flex-wrap:wrap;gap:12px 0}
  .fnote{flex-basis:100%;order:3;margin:0}
  .fcopy{margin-right:auto}
}
@media (max-width:700px){.fcols{grid-template-columns:1fr 1fr;row-gap:32px}.fcols a{white-space:normal}}
.wait{opacity:0}
/* narrower than the card: the video goes on top and the list under it (the phone layout is not designed yet) */
@media (max-width:1227px){
  .feats,.tpls,.faq,.help{margin-top:96px}
  .feats h2,.tpls h2,.faq h2,.help h2{font-size:36px;line-height:40px}
  .fcard{height:auto;padding:8px}
  .fshot{position:relative;left:0;top:0;width:100%;height:auto;aspect-ratio:16/9}
  .flist{position:static;transform:none;width:auto;padding:24px 20px 20px}
}
/* ---------- the home page on a phone: Figma "Home, phone" (390 wide). The same parts one under the other, 20 from each side,
   never wider than 480. The heading is three lines, 33/44 on a 390 screen and never over 36/48: its type is the column over 10.6,
   because the longest line it can show (the pill saying Community, then "Server") is 10.42 of the type wide and has to fit; groups in the first screen 48 apart; sections 80 apart with 32/36 headings. ---------- */
br.ph{display:none}
@media (max-width:759px){
  .hero{padding-top:116px}
  h1{font-size:min(36px,calc((100vw - 40px) / 10.6));line-height:1.33333}
  .line{display:inline}
  br.ph{display:inline}
  .token{height:1.33333em}
  .sub{width:min(480px,calc(100vw - 40px));max-width:none;font-size:16px;line-height:24px}
  .boxWrap{margin-top:48px;width:min(480px,calc(100vw - 40px))}
  .bar{min-height:64px;border-radius:32px;padding:12px 12px 12px 24px;gap:12px}
  .field{padding:8px 0}
  .ex{top:8px}
  .go{height:40px;border-radius:20px;padding:0 14px 0 16px;gap:6px;font-size:14px}
  .go svg{width:16px;height:16px}
  .film{margin-top:48px;width:min(480px,calc(100vw - 40px))}
  .feats,.tpls,.faq,.help{margin-top:80px;width:min(480px,calc(100vw - 40px))}
  .feats h2,.tpls h2,.faq h2,.help h2{font-size:32px;line-height:36px}
  /* Replace 6 bots with one: the list over the film (Raven's moves card on a phone) */
  .fcard{display:flex;flex-direction:column;height:auto;margin-top:32px;padding:28px 12px 12px}
  .flist{order:-1;position:static;transform:none;width:auto;padding:0 12px;gap:14px}
  .fname{font-size:18px;line-height:24px}
  .fmove[aria-current="true"] .fname{font-size:28px;line-height:32px}
  .fline{padding-top:6px;font-size:15px;line-height:22px}
  .fshot{position:relative;left:auto;top:auto;width:100%;height:auto;aspect-ratio:720/405;margin-top:24px}
  .tstrip{-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
  .qs{margin-top:32px}
  .q button{gap:12px;padding:16px 16px 16px 20px;font-size:16px}
  .a > div{margin-top:-8px}
  .a p{padding:0 20px 20px}
  .hcard{padding:40px 20px}
  .hfact{font-size:15px;line-height:22px}
  .wbtn{margin-top:24px}
  .foot{width:min(480px,calc(100vw - 40px));margin-top:80px;padding-bottom:max(40px,env(safe-area-inset-bottom))}
  .fbrand{margin-bottom:40px}
  .fcols{flex:0 0 100%;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:0;row-gap:40px}
  .frow2{margin-top:48px;gap:0}
  .flang{order:1;margin-right:auto}
  .soc{order:2}
  .fcopy{order:3;flex-basis:100%;margin:24px 0 0}
  .fnote{order:4;flex-basis:100%;margin:8px 0 0}
}
@media (prefers-reduced-motion:reduce){.fshot video,.fname,.fmore,.tcard,.a,.a p,.q button svg{transition:none}.ttrack{animation:none}.tstrip{overflow-x:auto;-webkit-mask-image:none;mask-image:none}.tstrip::-webkit-scrollbar{height:14px;background:transparent}.tstrip::-webkit-scrollbar-button{display:none;width:0;height:0}.tstrip::-webkit-scrollbar-track{margin:0 24px}.tstrip::-webkit-scrollbar-thumb{min-width:48px;border:5px solid transparent;border-radius:7px;background:#333333;background-clip:content-box}.tset[aria-hidden]{display:none}.tset{padding-left:24px}}
/* Build it opens the onboarding page (demo/): the prompt box travels into its chat box, the film's frame becomes its window, the header stays */

/* ---------- the onboarding page (fourth pass, 17 Nov 2026) ----------
   Figma: page Website and ads, section "Demo after Build it" (6842:1728). Every number here is that section's.
   Its own page (/onboarding), opened by Build it on the home page. A top bar with three step buttons, then one window
   (the home film's own frame: 1180 wide, corners 28, panes 8 in with corners 20): the chat on the left, the server on the
   right (a list of everything in it, and beside it what PeakBot does, each message as a card).
   CORNERS, two kinds only (frame "Onboarding, corners"): anything pressed or a small label is fully round; a box is 28,
   then 20, then 12 as it nests. MOTION (frame "Onboarding, how it moves"): things arrive from their own middle, one thing
   becomes the next, the old leaves before the new arrives.
   Every class starts with d- so nothing here can collide with the home page's or the tools page's names. */
.d-steps{position:absolute;left:50%;top:8px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;margin:0;padding:0;list-style:none}
.d-steps[hidden]{display:none}
.d-step{height:40px;padding:0 14px 0 8px;border:0;border-radius:20px;background:#232323;display:flex;align-items:center;gap:8px;font:500 14px/20px "Inter",system-ui,sans-serif;color:var(--faint);white-space:nowrap;cursor:pointer;will-change:transform;transition:background-color .15s var(--ease),color .15s var(--ease),transform .12s ease}
.d-step b{width:24px;height:24px;border-radius:12px;background:#2E2E2E;display:grid;place-items:center;font-size:12px;line-height:16px;font-weight:600;color:var(--faint);font-variant-numeric:tabular-nums;transition:background-color .15s var(--ease),color .15s var(--ease)}
.d-step:hover:enabled{background:#2A2A2A;color:#F2F2F2}
.d-step:active:enabled{transform:scale(.97)}
.d-step:enabled:not([aria-current]){color:var(--soft)}
.d-step[aria-current],.d-step[aria-current]:hover{background:#2E2E2E;color:#F2F2F2;cursor:default;transform:none}
.d-step[aria-current] b{background:#F5F5F5;color:#0A0A0A}
.d-step:disabled{cursor:default}
/* a step that is done: a tick where its number was */
.d-step.d-done,.d-step.d-done b{color:var(--soft)}
.d-step b svg{display:block}
.d-join{width:12px;height:2px;border-radius:1px;background:#333333}
.d-ring[hidden],.d-pop[hidden],.d-state[hidden],.d-facts:empty,.d-demo[hidden],.d-win[hidden],.d-fun[hidden],.d-quiet[hidden]{display:none}
/* on the home page, once Build it is pressed, only the bar and this window are left */
html.demoing,html.demoing body{height:100%;overflow:hidden}
html.demoing .hero,html.demoing .foot,html.demoing .links,html.demoing .menu,html.demoing .cta{display:none}

.d-demo{position:absolute;z-index:40;top:128px;left:50%;transform:translateX(-50%);width:min(1180px,calc(100vw - 48px));height:min(calc(100vh - 160px),960px);min-height:560px}
.d-win{height:100%;padding:8px;border-radius:28px;background:var(--bar);box-shadow:0 8px 24px rgba(0,0,0,.4);display:grid;grid-template-columns:380px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:8px}
.d-demo button,.d-pop button,.d-steps button{font-family:"Inter",system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
.d-demo button:focus-visible,.d-pop button:focus-visible,.d-steps button:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.d-demo img,.d-pop img{display:block}
:where(.d-demo) :where(p,h3,dl,dd,ul){margin:0}

/* ---- the chat pane: 380 wide, 20 in */
.d-chat{min-width:0;min-height:0;padding:20px;border-radius:20px;background:var(--page);display:flex;flex-direction:column}
.d-chead{flex:none;height:28px;display:flex;align-items:center;gap:10px;font-size:14px;line-height:20px;font-weight:600;color:#F2F2F2;white-space:nowrap}
.d-ai{flex:none;width:28px;height:28px;border-radius:10px;background:var(--bar);display:grid;place-items:center}
/* the count of messages left: the number is its own badge beside fixed words */
.d-left{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12px;line-height:16px;font-weight:500;color:var(--faint)}
.d-num{min-width:24px;height:24px;padding:0 8px;border-radius:12px;background:var(--bar);display:grid;place-items:center;overflow:hidden;font-size:13px;line-height:16px;font-weight:600;color:#F2F2F2;font-variant-numeric:tabular-nums}
.d-num span,.d-roll span{grid-area:1/1}
.d-roll{display:inline-grid;overflow:hidden;vertical-align:bottom}
.d-msgs{flex:1;min-height:0;margin-top:24px;overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;align-items:flex-start}
.d-msgs::-webkit-scrollbar,.d-list::-webkit-scrollbar,.d-vb::-webkit-scrollbar{display:none}
.d-msgs.d-cut{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24px);mask-image:linear-gradient(to bottom,transparent 0,#000 24px)}
.d-me{align-self:flex-end;flex:none;max-width:280px;padding:14px 18px;border-radius:20px;background:var(--bar);font-size:14px;line-height:22px;color:#FFFFFF;overflow-wrap:anywhere;white-space:pre-wrap;will-change:transform}   /* its own layer always, so its words look the same flying and landed */
.d-say + .d-me,.d-ans + .d-me,.d-todo + .d-me,.d-retry + .d-me{margin-top:24px}
.d-wk{flex:none;position:relative;margin-top:24px;height:20px;padding:0;border:0;background:none;display:flex;align-items:center;gap:6px;font:400 13px/20px "Inter",system-ui,sans-serif;color:var(--faint);cursor:default}
button.d-wk{cursor:pointer}
button.d-wk::before{content:"";position:absolute;inset:-6px -8px}
.d-wk img{width:8px;height:6px;transition:transform .2s var(--ease)}
.d-wk[aria-expanded="true"] img{transform:rotate(180deg)}
.d-hr{flex:none;align-self:stretch;height:1px;margin:16px 0;background:#1F1F1F}
.d-say{flex:none;font-size:14px;line-height:22px;color:#FFFFFF}
.d-say b{font-weight:600}
.d-say + .d-say{margin-top:12px}
.d-now,.d-did li{display:flex;align-items:center;gap:8px;font-size:13px;line-height:20px;color:var(--faint)}
.d-now{flex:none;margin-top:12px}
.d-wk + .d-now{margin-top:12px}
.d-now img,.d-did img{width:16px;height:16px}
.d-did{flex:none;padding:0;list-style:none;overflow:hidden}
.d-did li{height:20px;margin-top:8px}
.d-did li:first-child{margin-top:10px}
.d-todo{flex:none;margin-top:8px;font-size:14px;line-height:22px;color:var(--faint)}
.d-retry{flex:none;margin-top:16px;height:32px;font-family:"Inter",system-ui,sans-serif;will-change:transform;padding:0 14px;border:0;border-radius:16px;background:#262626;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:400;color:#FFFFFF;cursor:pointer;transition:background-color .15s var(--ease),transform .12s ease}
.d-retry:hover{background:#303030}
.d-retry:active{transform:scale(.97)}
.d-retry img{width:18px;height:18px}
/* the answers sit right under the question they answer */
.d-ans{flex:none;margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
.d-qa{height:36px;padding:0 14px;border:0;border-radius:18px;background:var(--bar);font-family:"Inter",system-ui,sans-serif;will-change:transform;font-size:13px;line-height:20px;font-weight:500;color:#F2F2F2;white-space:nowrap;cursor:pointer;transition:background-color .12s var(--ease),transform .12s ease}
.d-qa:hover{background:#262626}
.d-qa:active{transform:scale(.97)}
/* the chat box: the home page's prompt box at chat size, a pill 56 tall with the round button 8 in */
.d-box{position:relative;flex:none;margin-top:12px;min-height:56px;padding:8px 8px 8px 20px;border-radius:28px;background:var(--bar);display:flex;align-items:flex-end;gap:12px;cursor:text;transition:background-color .15s ease}
.d-box:hover{background:#222222}
.d-box:focus-within{background:var(--bar)}
/* the violet edge is its own piece on top, so a bubble lifting out of the box never covers it */
.d-box::after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;box-shadow:inset 0 0 0 1.5px #8B5CF6;opacity:0;transition:opacity .15s ease;pointer-events:none}
.d-box:focus-within::after{opacity:1}
/* the words in the box are the bubble's size and wrap at the bubble's width (244), so nothing changes when they lift out */
.d-box textarea{flex:1;min-width:0;display:block;height:20px;max-height:80px;margin:10px 0;padding:0 16px 0 0;border:0;outline:0;resize:none;background:none;color:var(--white);caret-color:var(--white);font:400 14px/20px "Inter",system-ui,sans-serif;overflow-y:auto}
.d-box textarea::-webkit-scrollbar{width:10px;background:transparent}
.d-box textarea::-webkit-scrollbar-button{display:none;width:0;height:0}
.d-box textarea::-webkit-scrollbar-thumb{min-height:20px;border:3px solid transparent;border-radius:5px;background:#3A3A3A;background-clip:content-box}
@supports not selector(::-webkit-scrollbar){.d-box textarea{scrollbar-width:thin;scrollbar-color:#3A3A3A transparent}}
.d-box textarea::placeholder{color:var(--example);opacity:1}
.d-send{flex:none;width:40px;height:40px;border-radius:20px;border:0;will-change:transform;background:#2A2A2A;color:#8A8A8A;display:grid;place-items:center;cursor:pointer;transition:background-color .15s var(--ease),color .15s var(--ease),transform .12s ease}
.d-send:hover{background:#333333;color:#ADADAD}
.d-send:active{transform:scale(.94)}
/* the arrow leaves, then the stop square grows from its middle */
.d-send svg,.d-send i{grid-area:1/1;transition:transform .22s var(--out),opacity .09s ease}
.d-send i{width:12px;height:12px;border-radius:3px;background:#0A0A0A;transform:scale(.4);opacity:0}
.d-box.d-filled .d-send,.d-box.d-working .d-send{background:#F5F5F5;color:#0A0A0A}
.d-box.d-filled .d-send:hover,.d-box.d-working .d-send:hover{background:#FFFFFF}
.d-box.d-working .d-send svg{transform:scale(.5);opacity:0}
.d-box.d-working .d-send i{transform:scale(1);opacity:1;transition-delay:.09s}
.d-plans{flex:none;height:40px;will-change:transform;padding:0 18px;border:0;border-radius:20px;background:#F5F5F5;font-size:13px;line-height:20px;font-weight:600;color:#0A0A0A;cursor:pointer;transition:background-color .15s var(--ease),transform .12s ease}
.d-plans:hover{background:#FFFFFF}
.d-plans:active{transform:scale(.97)}
.d-box.d-locked,.d-box.d-locked:hover{cursor:default;background:var(--bar)}
.d-box.d-locked textarea::placeholder{color:var(--faint)}
.d-plans[hidden],.d-box.d-locked .d-send{display:none}

/* ---- after "Add it to my server": out of the builder, a funnel. The screen is the home page's own first screen, retold:
   the two-line headline with word pills at 200, a 760 x 88 bar at 424 holding their build and the one white button (where
   Build it sits on the home page), the trust row at 538, and the builder's window dropped to 592 (where the film sits) as
   the picture of what comes with them. Frames "Funnel, add to Discord", "Funnel, opening Discord", "Funnel, you are in". */
.d-win.d-low{transform:translateY(464px)}
html.d-funnel .d-demo{cursor:pointer}
html.d-funnel .d-add{visibility:hidden}   /* one white button on the screen: the bar's */
.d-fun{position:absolute;left:0;right:0;top:72px;pointer-events:none}
.d-fcol{position:relative;display:flex;flex-direction:column;align-items:center;cursor:default}
.d-fcol > *{pointer-events:auto}
/* the headline: 60 on 80, and a word pill 68 tall holding a 56 picture 6 in */
.d-h1{margin:0;font-size:60px;line-height:80px;font-weight:500;letter-spacing:-.03em;color:var(--white);text-align:center}
.d-ln{display:block;height:80px;white-space:nowrap}
.d-tok{position:relative;display:inline-block;vertical-align:top;height:68px;margin:6px 11px 0;padding:0 11px 0 66px;border-radius:34px;background:#1F1F1F;line-height:68px}
.d-tok i{position:absolute;left:6px;top:6px;width:56px;height:56px;border-radius:50%;background:#000;box-shadow:inset 0 0 0 1px #333333;display:grid;place-items:center;font-style:normal;font-size:20px;line-height:24px;font-weight:600;letter-spacing:0;color:#D4D4D4}
.d-tok i img{width:34px;height:28px;object-fit:contain}
.d-tokd,.d-toks{padding-left:78px}
.d-tokd > img{position:absolute;left:-5.7px;top:-5.7px;width:79.41px;height:79.41px}
.d-toks i{background:#333333;box-shadow:none}
/* the bar: their build on the left, the way on at the right */
.d-fbar{margin-top:64px;width:760px;max-width:calc(100vw - 48px);height:88px;padding:16px 16px 16px 20px;border-radius:44px;background:var(--bar);box-shadow:0 8px 24px rgba(0,0,0,.4);display:flex;align-items:center;gap:14px}
.d-fbar .d-pic{width:48px;height:48px;border-radius:12px;background:#262626}
.d-fbar .d-pic img{width:24px;height:24px}
.d-fw{flex:1;min-width:0;display:flex;flex-direction:column}
.d-fw b{display:flex;align-items:center;gap:8px;font-size:17px;line-height:24px;font-weight:500;color:#F2F2F2;white-space:nowrap}
.d-fw b span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.d-fw small{font-size:13px;line-height:20px;color:var(--faint);white-space:nowrap;font-variant-numeric:tabular-nums}
.d-fw .d-t{margin-left:0;background:#262626;color:var(--soft)}
.d-big{flex:none;height:56px;padding:0 19.6px 0 22.4px;border:0;border-radius:28px;background:#F5F5F5;display:flex;align-items:center;gap:8.4px;font:600 19.6px/28px "Inter",system-ui,sans-serif;color:#0A0A0A;white-space:nowrap;cursor:pointer;will-change:transform;transition:background-color .15s var(--ease),color .15s var(--ease),transform .12s ease}
.d-big:hover{background:#FFFFFF}
.d-big:active{transform:scale(.97)}
.d-big:disabled{background:#262626;color:#6B6B6B;cursor:default;transform:none}
.d-big img{width:22px;height:22px}
.d-big .d-ring{width:16px;height:16px}
/* it costs nothing to add: said once, inside the button, at the moment of deciding */
.d-free{padding:3px 8px;border-radius:11px;background:#0A0A0A;font-size:12px;line-height:16px;font-weight:600;color:#F5F5F5}
/* the home page's own line */
.d-trust{margin:26px 0 0;height:28px;display:flex;align-items:center;gap:12px;font-size:15px;line-height:20px;letter-spacing:-.01em;color:var(--soft);white-space:nowrap}
.d-trust > span:first-child{display:flex}
.d-trust img{width:28px;height:28px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--page)}
.d-trust img + img{margin-left:-8px}
.d-trust b{font-weight:600;color:var(--white)}
/* the home page's handwritten note, here pointing at their server */
.d-note{position:absolute;left:50%;top:0;width:0;height:0;pointer-events:none}
.d-note span{position:absolute;left:-689px;top:302px;font-size:16px;line-height:20px;font-weight:500;letter-spacing:-.01em;color:var(--white);white-space:nowrap;transform:rotate(-6deg);transform-origin:50% 100%}
.d-note img{position:absolute;left:-644px;top:316px;width:85px;height:85px}
@media (max-width:1480px){.d-note{display:none}}
/* in the funnel the bar offers no other way out: Add to Discord is the sign-in (the logo and Build still go back) */
html.d-funnel .d-login,html.d-funnel .login{visibility:hidden}

/* ---- the server pane */
.d-srv{min-width:0;min-height:0;border-radius:20px;background:var(--page);overflow:hidden;display:flex;flex-direction:column}
.d-top{flex:none;height:65px;padding:0 12px 0 16px;border-bottom:1px solid #1F1F1F;display:flex;align-items:center;gap:12px}
.d-pic{flex:none;width:36px;height:36px;border-radius:12px;background:var(--bar);display:grid;place-items:center}
.d-pic img{width:20px;height:20px}
.d-id{min-width:0;position:relative;top:-1px}
.d-id:has(.d-facts:empty){top:0}   /* one line alone sits dead centre, 22 down */
.d-name{display:flex;align-items:center;gap:8px;font-size:15px;line-height:20px;font-weight:600;color:#FAFAFA;white-space:nowrap}
.d-name.d-none > span:first-child{color:var(--faint)}
.d-state{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:9px;background:var(--bar);font-size:11px;line-height:14px;font-weight:500;color:#A3A3A3}
.d-ring{width:12px;height:12px;border-radius:50%;background:conic-gradient(#FAFAFA 0 141deg,#333333 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 1.7px),#000 calc(100% - 1.7px));mask:radial-gradient(farthest-side,transparent calc(100% - 1.7px),#000 calc(100% - 1.7px));animation:d-spin .8s linear infinite}
@keyframes d-spin{to{transform:rotate(360deg)}}
.d-facts{margin-top:2px;font-size:12px;line-height:16px;color:var(--faint);white-space:nowrap;font-variant-numeric:tabular-nums}
.d-add{flex:none;margin-left:auto;height:40px;padding:0 16px 0 18px;border:0;border-radius:20px;background:#F5F5F5;color:#0A0A0A;display:flex;align-items:center;gap:6px;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;cursor:pointer;will-change:transform;transition:background-color .15s var(--ease),color .15s var(--ease),transform .12s ease}
.d-add:hover{background:#FFFFFF}
.d-add:active{transform:scale(.97)}
.d-add:disabled{background:var(--bar);color:#6B6B6B;cursor:default;transform:none}
.d-cols{flex:1;min-height:0;display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
/* the list: Features on top, the channels by group, the roles. Group heads 28, rows 30 with a 16 picture, the name 32 in */
.d-list{position:relative;min-height:0;padding:8px;overflow-y:auto;scrollbar-width:none}
.d-list.d-more,.d-vb.d-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent)}
.d-list.d-less,.d-vb.d-less{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 24px);mask-image:linear-gradient(to bottom,transparent,#000 24px)}
.d-list.d-less.d-more,.d-vb.d-less.d-more{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to bottom,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.d-g{height:28px;margin-top:8px;padding:8px 8px 0;font-size:12px;line-height:16px;font-weight:500;color:var(--faint);white-space:nowrap}
.d-r{position:relative;z-index:1;width:100%;height:30px;padding:0 8px;border:0;border-radius:15px;background:none;display:flex;align-items:center;gap:8px;font-size:13px;line-height:20px;font-weight:400;color:var(--soft);text-align:left;white-space:nowrap;cursor:pointer;transition:background-color .12s var(--ease),color .12s var(--ease)}
.d-r:hover{background:#141414;color:#F2F2F2}
/* the picked row never paints its own fill: one highlight (.d-hl) sits behind it and slides to the next one picked */
.d-r[aria-current="true"],.d-r[aria-current="true"]:hover{background:none;color:#F2F2F2;font-weight:500}
.d-hl{position:absolute;z-index:0;left:8px;top:0;width:calc(100% - 16px);height:30px;border-radius:15px;background:#1F1F1F;pointer-events:none}
.d-r img{flex:none;width:16px;height:16px}
.d-n{min-width:0;overflow:hidden;text-overflow:ellipsis}
.d-dot{flex:none;width:16px;height:16px;display:grid;place-items:center}
.d-dot i{width:10px;height:10px;border-radius:50%}
.d-t{flex:none;margin-left:auto;padding:2px 6px;border:0;border-radius:9px;background:var(--bar);font-size:11px;line-height:14px;font-weight:500;color:var(--faint);white-space:nowrap}
.d-r[aria-current="true"] .d-t{background:#2A2A2A;color:var(--soft)}
button.d-t{position:relative;cursor:pointer;transition:color .12s var(--ease)}
button.d-t::before{content:"";position:absolute;inset:-4px -2px}   /* 26 tall to the pointer, 18 drawn */
button.d-t:hover{color:#F2F2F2}
.d-ph{display:flex;align-items:center;gap:8px;height:30px;padding:0 8px}
.d-ph b,.d-phh b,.d-sk b{display:block;border-radius:4px;background:var(--bar)}
.d-ph b,.d-phh b{height:8px}
.d-ph i{flex:none;width:16px;height:16px;border-radius:8px;background:var(--bar)}
.d-phh{height:28px;margin-top:8px;padding:10px 8px 0}
/* beside the list: what PeakBot does (or the row that was clicked) */
.d-view{min-width:0;min-height:0;border-left:1px solid #1F1F1F;display:flex;flex-direction:column}
.d-vh{flex:none;height:49px;padding:0 16px;border-bottom:1px solid #1F1F1F;display:flex;align-items:center;gap:8px;font-size:15px;line-height:20px;font-weight:600;color:#F2F2F2;white-space:nowrap}
.d-vh img{width:16px;height:16px}
.d-vh .d-t{margin-left:0}
.d-vb{flex:1;min-height:0;padding:16px;overflow-y:auto;scrollbar-width:none}
.d-f + .d-f{margin-top:24px}
.d-fh{height:20px;display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;font-weight:600;color:#F2F2F2;white-space:nowrap}
.d-fh img{width:16px;height:16px}
.d-fl{margin-top:8px;font-size:13px;line-height:20px;color:var(--faint)}
.d-card{margin-top:10px;padding:14px 16px 14px 14px;border-radius:12px;background:#141414;display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px}
.d-card + .d-card{margin-top:8px}
.d-av{width:36px;height:36px;border-radius:18px;background:#1F1F1F;display:grid;place-items:center}
.d-av img{width:20px;height:17px;object-fit:contain}
.d-mh{display:flex;align-items:center;font-size:14px;line-height:20px;font-weight:500;color:#F2F2F2;white-space:nowrap}
.d-app{margin-left:6px;padding:1px 4px;border-radius:8px;background:#5865F2;font-size:10px;line-height:13px;font-weight:600;color:#FFFFFF}
.d-mh time{margin-left:8px;font-size:11px;line-height:16px;font-weight:400;color:#6B6B6B}
.d-mb{margin-top:2px;font-size:14px;line-height:22px;color:#E5E5E5}
.d-mb b{font-weight:600;color:#FAFAFA}
.d-at{font-weight:500;color:#A5B4FC;white-space:nowrap}
.d-bs{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.d-b{height:32px;padding:0 14px 0 12px;border-radius:16px;background:#1F1F1F;display:flex;align-items:center;gap:8px;font-size:13px;line-height:18px;font-weight:500;color:#F2F2F2;white-space:nowrap}
.d-b i{width:8px;height:8px;border-radius:50%}
.d-b img{width:16px;height:16px;margin-left:-2px}
.d-sk{opacity:.9}
.d-sk + .d-sk{margin-top:24px;opacity:.54}
.d-sk p{height:20px;display:flex;align-items:center;gap:8px}
.d-sk p b:first-child{width:16px;height:16px;border-radius:8px}
.d-sk p b:last-child{width:128px;height:10px;border-radius:5px}
.d-sk > b{margin-top:10px;height:104px;border-radius:12px;background:#111111}
.d-info{display:grid;grid-template-columns:144px minmax(0,1fr)}
.d-info dt,.d-info dd{height:32px;padding:6px 0;font-size:13px;line-height:20px}
.d-info dt{color:var(--faint)}
.d-info dd{color:#E5E5E5}
.d-pg{font-size:12px;line-height:16px;font-weight:500;color:var(--faint)}
.d-info + .d-pg{margin-top:16px}
.d-pg + .d-card{margin-top:8px}
.d-pg + .d-pl{margin-top:8px}
.d-pl{padding:0;list-style:none}
.d-pl li{height:32px;display:flex;align-items:center;gap:8px;font-size:13px;line-height:20px;color:#E5E5E5}
.d-pl svg{flex:none}
.d-pl.d-no li{color:var(--faint)}
.d-pl + .d-pg{margin-top:16px}
.d-none-yet{flex:1;display:grid;place-items:center;font-size:13px;line-height:18px;font-weight:500;color:var(--faint)}
/* nothing built: no list, no divider, one tile and one line in the middle of the pane */
.d-cols.d-blank{grid-template-columns:minmax(0,1fr)}
.d-cols.d-blank .d-list{display:none}
.d-cols.d-blank .d-view{border-left:0}
.d-yet{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-size:13px;line-height:18px;font-weight:500;color:var(--faint)}
.d-yet span{width:40px;height:40px;border-radius:12px;background:#141414;display:grid;place-items:center}

/* ---- the log-in popup: always centred, 440 wide, corners 28 */
.d-pop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(0,0,0,.6)}
.d-sheet{width:440px;max-width:calc(100vw - 32px);padding:32px 32px 24px;border-radius:28px;background:#1C1C1C;box-shadow:0 24px 64px rgba(0,0,0,.5);display:flex;flex-direction:column;align-items:center}
.d-theirs{display:flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;border-radius:22px;background:#262626;font-size:14px;line-height:20px;font-weight:500;color:#F2F2F2;white-space:nowrap}
.d-theirs span:first-child{width:32px;height:32px;border-radius:10px;background:#333333;display:grid;place-items:center}
.d-theirs img{width:18px;height:18px}
.d-sheet h2{margin:24px 0 0;font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.01em;color:#FAFAFA;text-align:center}
.d-dbtn{margin-top:28px;width:100%;height:48px;will-change:transform;border:0;border-radius:24px;background:#F5F5F5;color:#0A0A0A;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;line-height:20px;font-weight:600;cursor:pointer;transition:background-color .15s var(--ease),transform .12s ease}
.d-dbtn:hover{background:#FFFFFF}
.d-dbtn:active{transform:scale(.98)}
.d-dbtn img{width:20px;height:20px}
.d-notnow{margin-top:8px;width:100%;height:40px;border:0;border-radius:20px;background:none;font-size:14px;line-height:20px;font-weight:500;color:#ADADAD;cursor:pointer;transition:color .15s var(--ease)}
.d-notnow:hover{color:#F2F2F2}

/* ---- motion. Most of it is in demo.js (it needs to know where things are); this is what CSS can do alone. */
/* a surface that travels and becomes the bubble, while the real bubble waits where it will land */
.d-fly{position:fixed;z-index:60;margin:0;background:var(--bar);overflow:hidden;pointer-events:none}
.d-fly span{position:absolute;left:18px;top:14px;font:400 14px/22px "Inter",system-ui,sans-serif;color:#FFFFFF;overflow-wrap:anywhere;white-space:pre-wrap}
.d-wait{visibility:hidden}
@media (prefers-reduced-motion:no-preference){
  .d-in{animation:d-in .3s var(--out) backwards}
  .d-breathe{animation:d-breathe 1.2s ease-in-out infinite}
}
@keyframes d-in{from{opacity:0;transform:scale(.97)}30%{opacity:1}}
@keyframes d-breathe{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.d-ring{animation:none}.d-send svg,.d-send i{transition:none}}
@media (max-width:1100px){.d-win{grid-template-columns:320px minmax(0,1fr)}.d-cols{grid-template-columns:200px minmax(0,1fr)}.d-steps{position:static;transform:none}}
@media (max-width:820px){.d-win{grid-template-columns:minmax(0,1fr)}.d-srv{display:none}.d-steps .d-step:not([aria-current]),.d-join{display:none}}

/* ---------- a phone (under 760 wide): Figma section "Phone" ----------
   The bar is the phone header's: 12 from the top, the window less 24 wide. The window starts 24 under it, 20 from each
   side. The funnel's heading is the phone heading, small enough for its longer line ("Your Discord Server" is 11.5 of
   the type wide); its pills are written in em here, so they follow the type. The bar under it is ONE panel: what comes
   with them on the first row, the white button as wide as the panel on the second. */
@media (max-width:759px){
  .d-bar{top:12px;width:calc(100vw - 24px)}
  .d-demo{top:92px;width:calc(100vw - 40px);height:calc(100vh - 112px);height:calc(100svh - 112px);min-height:420px}
  html.d-funnel .d-demo{height:auto;min-height:0}
  .d-fun{top:24px}
  .d-h1{font-size:min(36px,calc((100vw - 40px) / 11.7));line-height:1.33333}
  .d-ln{height:1.33333em}
  .d-tok{height:1.13333em;margin:.1em .18333em 0;padding:0 .18333em 0 1.1em;border-radius:.56667em;line-height:1.13333em}
  .d-tok i{left:.3em;top:.3em;width:2.8em;height:2.8em;font-size:.33333em;line-height:1.2}
  .d-tok i img{width:1.7em;height:1.4em}
  .d-tokd,.d-toks{padding-left:1.3em}
  .d-tokd > img{left:-.095em;top:-.095em;width:1.3235em;height:1.3235em}
  .d-fbar{flex-wrap:wrap;gap:12px 14px;margin-top:32px;width:100%;max-width:none;height:auto;padding:16px}
  .d-fbar .d-big{flex:1 1 100%;justify-content:center;font-size:17px;line-height:24px}
  .d-trust{margin-top:24px}
  .d-box textarea{font-size:16px}   /* under 16 a phone zooms the page in when the field is pressed */
}
/* the narrowest screens: the trust line fits the column, and in the bar the name gives way so Log in stays inside it */
@media (max-width:359px){
  .d-trust{gap:8px;font-size:13px}
  .d-brand{gap:0;padding-right:0;font-size:0}
}
/* ---------- Tools home: Figma "Tools" 6832:1726 and "Tools, pointer on a card" 6839:1726 ----------
   Everything above this line is the home preview's own stylesheet (header, closing card, footer), copied in by build_tools.py.
   The title is the home heading's own pill line (60/80, top at 200): plain words and two pills, each with a hand-drawn
   emoji over its left end. One line 18/28 sits 16 under it, then three groups 88 under that and 72 apart. A group is a
   heading 22/28 and, 20 under it, a row of cards 380 wide and 20 apart (the Profile builder card is two columns wide). */
.pre .tools{visibility:hidden}
.tools{padding-top:200px;display:flex;flex-direction:column;align-items:center}
/* a pill that does not swap: the home page's .token with the word as plain text in the flow (so no script has to size it).
   Its left padding is where the word starts; the drawing sits in .iconWindow / .layer exactly as on the home page. */
.tk{position:relative;display:inline-block;vertical-align:baseline;height:calc(4em / 3);padding-right:.28em;border-radius:999px;isolation:isolate;white-space:nowrap}
.tk::before{content:"";position:absolute;z-index:-1;left:0;right:0;top:50%;height:calc(1.1em + 2px);transform:translateY(-50%);border-radius:inherit;background:var(--pill);pointer-events:none}
.tkw span{display:inline-block;position:relative;white-space:pre;will-change:transform,opacity}
.tgroups{margin-top:88px;display:flex;flex-direction:column;gap:72px}
.tgroup h2{margin:0 0 20px var(--ink,0);font-size:22px;line-height:28px;font-weight:500;letter-spacing:-.01em;color:var(--white);overflow:hidden}
.tgroup h2 span{display:block;will-change:transform}
.trow{display:grid;grid-template-columns:repeat(3,380px);gap:20px}

/* one card anatomy for all eight, taken from the home page's template card: 300 tall, corners 28, #171717, a 1 px line inside,
   the same shadow. The picture sits 8 in (corners 20 = 28 - 8). Name 20/28 at 24, 220; arrow 16 at the right, 24 in; one line
   14/20 at 24, 256. Pointer on it: rises 4, a touch lighter, lighter line, the arrow goes white and moves 2. */
.tool{display:block;position:relative;height:300px;border-radius:28px;background:#171717;box-shadow:inset 0 0 0 1px #262626,0 8px 24px rgba(0,0,0,.4);color:inherit;text-decoration:none;transition:transform .2s var(--ease),background-color .2s var(--ease),box-shadow .2s var(--ease)}
.tool.wide{grid-column:span 2}
.tool:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
.tpic{position:absolute;left:8px;top:8px;right:8px;height:196px;border-radius:20px;background:#1F1F1F;overflow:hidden}
.tname{position:absolute;left:24px;top:220px;margin:0;font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--white);white-space:nowrap}
.tdesc{position:absolute;left:24px;top:256px;margin:0;font-size:14px;line-height:20px;color:#A3A3A3;white-space:nowrap}
.tarrow{position:absolute;right:24px;top:226px;width:16px;height:16px;background:#8A8A8A;-webkit-mask:url(/new-site/tools/arrow.svg) center/16px 16px no-repeat;mask:url(/new-site/tools/arrow.svg) center/16px 16px no-repeat;transition:transform .2s var(--ease),background-color .2s var(--ease)}
@media (hover:hover){
  .tool:hover{transform:translateY(-4px);background:#1A1A1A;box-shadow:inset 0 0 0 1px #3D3D3D,0 8px 24px rgba(0,0,0,.4)}
  .tool:hover .tarrow{transform:translateX(2px);background:#FAFAFA}
}
.tool:active{transform:translateY(-2px)}
/* a guide card, under "Guides" on a tool page: the site's card with the guide's title and how long it takes to read
   (the blog home's guide card without its tile and chip). 380 x 132: title 17/24 at 24, the minutes 14 under two
   lines of title, 30 under them. A title is never cut short: one that needs a third line makes its row taller. */
.gcard{display:flex;flex-direction:column;box-sizing:border-box;min-height:132px;padding:24px 24px 30px;border-radius:28px;background:#171717;box-shadow:inset 0 0 0 1px #262626,0 8px 24px rgba(0,0,0,.4);color:inherit;text-decoration:none;transition:transform .2s var(--ease),background-color .2s var(--ease),box-shadow .2s var(--ease)}
.gcard:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
.gcard h3{margin:0;min-height:48px;font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--white);text-wrap:balance}   /* balance: no last line of one word */
.gmeta{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:14px;font-size:13px;line-height:16px;color:#8A8A8A;white-space:nowrap}
.gmeta b{font-weight:600;color:#DBDBDB}
.garrow{position:relative;top:3px;flex:none;width:16px;height:16px;background:#8A8A8A;-webkit-mask:url(/new-site/tools/arrow.svg) center/16px 16px no-repeat;mask:url(/new-site/tools/arrow.svg) center/16px 16px no-repeat;transition:transform .2s var(--ease),background-color .2s var(--ease)}
@media (hover:hover){
  .gcard:hover{transform:translateY(-4px);background:#1A1A1A;box-shadow:inset 0 0 0 1px #3D3D3D,0 8px 24px rgba(0,0,0,.4)}
  .gcard:hover .garrow{transform:translateX(2px);background:#FAFAFA}
}
.gcard:active{transform:translateY(-2px)}
@media (prefers-reduced-motion:reduce){.gcard,.garrow{transition:none}}

/* the picture: a window 16 in, 332 wide, corners 12, cut by the picture's bottom edge. Its left and right edges sit on the same
   24 as the name and the arrow under it. Inside, everything is placed on the window's own numbers. */
.twindow{position:absolute;left:16px;top:16px;width:332px;height:220px;border-radius:12px;background:#0E0E0E;box-shadow:inset 0 0 0 1px #262626;overflow:hidden;font-size:13px;line-height:20px;color:#F2F2F2}
.twindow > *,.twindow p{margin:0}
.thr{position:absolute;left:0;right:0;height:1px;background:#1F1F1F}
.thead{position:absolute;left:12px;top:8px;display:flex;gap:6px}
.look,.tfield{padding:6px 10px;font-size:12px;line-height:16px;font-weight:500;white-space:nowrap}
.look{border-radius:14px;background:#1F1F1F;color:#ADADAD}
.look.is-on{background:#FAFAFA;color:#0A0A0A}
.tfield{border-radius:14px;background:#171717;color:#F2F2F2}
.trowin{position:absolute;left:6px;right:6px;height:28px;border-radius:14px}
.trowin.is-on{background:#1F1F1F}
.trowin > *{position:absolute;top:4px;white-space:nowrap}

/* Server layout maker: hash, emoji, dot, name */
.tl-ch .h{left:6px;font-weight:500;color:#6B6B6B}
.tl-ch img{left:26px;top:7px;width:14px;height:14px;display:block}
.tl-ch .d{left:42px;color:#6B6B6B}
.tl-ch .tn{left:58px;color:#ADADAD}
.tl-ch.is-on .tn{font-weight:500;color:#F2F2F2}

/* Rules maker: a Discord message from PeakBot */
/* PeakBot's picture on a message: the light disc with the dark mark (Lime on the black disc with the white mark: "mid"; the
   blog pages use the same file). The logo in the header and footer stays the black disc. */
.av{position:absolute;left:12px;top:12px;width:32px;height:32px;border-radius:50%;background:#000 url(/new-site/peak-mark.png) center/18px 16px no-repeat}   /* PeakBot's own picture: the black disc, the white mark. The mark is a whole even size (18 x 16), so the space is 7 each side and 8 above and below; at 19.2 wide it sat 7 left, 8 right (Lime, 18 Nov) */
.who{position:absolute;left:56px;top:10px;height:20px;display:flex;align-items:center;gap:6px;white-space:nowrap}
.who b{font-weight:600}
.app{padding:0 5px;border-radius:4px;background:#5865F2;color:#FFFFFF;font-size:10px;line-height:16px;font-weight:600}
.when{font-size:11px;line-height:16px;color:#8A8A8A}
.msg{position:absolute;left:56px;white-space:nowrap;color:#DBDBDB}
.msg.hd{font-size:14px;font-weight:600;color:#F2F2F2}

/* Templates: real templates, their logos and category tags */
.tp{position:absolute;left:0;right:0;height:44px}
.tp .lt{position:absolute;left:12px;top:8px;width:28px;height:28px;border-radius:8px;background:#FFFFFF;display:grid;place-items:center}
.tp .lt img{width:16px;height:16px;display:block}
.tp .tn{position:absolute;left:50px;top:12px;font-weight:600;white-space:nowrap}
.tp .tl-tag{position:absolute;right:12px;top:9px;padding:5px 10px;border-radius:13px;font-size:12px;line-height:16px;font-weight:500;white-space:nowrap}

/* Timestamp maker: how Discord shows the time, and the code that makes it */
.tts .tchip{left:6px;top:0;padding:2px 6px;border-radius:11px;background:#1F1F1F;font-size:12px;line-height:18px;font-weight:500}
.tts code{right:6px;top:3px;font-family:"JetBrains Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;font-size:11px;line-height:16px;color:#6B6B6B}

/* Fonts: what was typed, then the same word in each style */
.typed{position:absolute;left:12px;top:8px;right:12px;height:28px;border-radius:14px;background:#171717;padding:4px 10px}
.fn .s{left:6px;font-family:"Noto Sans Math","Cambria Math","STIX Two Math","Segoe UI Symbol",serif;font-size:14px;color:#DBDBDB}
.fn.is-on .s{color:#FAFAFA}
.fn .l{right:6px;top:6px;font-size:11px;line-height:16px;color:#6B6B6B}

/* Symbols: a grid of tiles 36 across and 8 apart, 16 from each side; the white one is the one just copied */
.sy{position:absolute;width:36px;height:36px;border-radius:50%;background:#171717;display:grid;place-items:center;font-size:16px;line-height:1;font-weight:500;color:#F2F2F2;font-family:"Inter","Noto Sans JP","Segoe UI Symbol","Yu Gothic","Meiryo",sans-serif}
.sy.big{font-size:20px;font-family:"STIX Two Math","Cambria Math","Segoe UI Symbol",serif}
.sy.is-on{background:#FAFAFA;color:#0A0A0A}
.sy b{display:block;font:inherit}

/* Profile builder: four real profile cards, 168 wide and 20 apart, rising from the bottom of the picture */
.pc{position:absolute;top:18px;width:168px;height:auto;display:block}

/* Bio templates: real bios from the tool's own list */
.bios{position:absolute;left:12px;top:12px;right:12px;display:flex;flex-direction:column;gap:8px}
.bio{border-radius:30px;background:#171717;padding:10px 12px;color:#DBDBDB;white-space:nowrap}
.bio i{font-style:normal;font-family:"Noto Sans JP","STIX Two Math","Segoe UI Symbol","Yu Gothic",sans-serif}

/* narrower than three cards: the cards wrap and stay their size (the phone layout is not designed yet) */
@media (max-width:1227px){
  .trow{grid-template-columns:repeat(auto-fit,380px);justify-content:center}
  .tool.wide{grid-column:auto}
  .tgroup h2{text-align:center}
}
/* between a phone and the full width, a heading that would not fit on its line gets smaller until it does (the pills are
   in em, so they follow). The Tools home's line is 13.2 of the type wide, the longest tool title 15.2. */
@media (min-width:760px) and (max-width:1000px){
  .tools h1{font-size:min(60px,calc((100vw - 48px) / 13.4));line-height:1.33333}
  .tspage h1{font-size:min(60px,calc((100vw - 48px) / 15.4))}
}
/* a phone (under 760 wide): Figma "Tools, phone". One card a row, as wide as the column. A card's picture is the same
   picture made smaller as one piece: tools-shared.js gives --pk (the picture's width over the 364 it is drawn at) and
   --ph (its height in whole px). The name and the line sit in the flow under it, 16 and 8 apart, 24 from the card's end. */
@media (max-width:759px){
  .tools{padding-top:116px}
  .tgroups{margin-top:48px;gap:48px;width:min(480px,calc(100vw - 40px))}
  .tgroup h2{margin-bottom:16px;text-align:left}
  .trow{grid-template-columns:minmax(0,1fr);gap:16px}
  .tool{height:auto;padding:8px 8px 24px}
  .tpic{position:relative;left:auto;top:auto;right:auto;height:var(--ph,196px)}
  .twindow{transform:scale(var(--pk,1));transform-origin:-16px -16px}
  .tname{position:static;margin:16px 56px 0 16px;white-space:normal}
  .tdesc{position:static;margin:8px 16px 0;white-space:normal}
  .tarrow{top:calc(var(--ph,196px) + 30px)}
  /* the profile builder's card: two of its cards, 16 from the sides and from each other */
  .tool.wide .pc{width:calc((100% - 48px) / 2)}
  .tool.wide .pc:nth-child(2){left:calc(50% + 8px)!important}
  .tool.wide .pc:nth-child(n+3){display:none}
}
@media (prefers-reduced-motion:reduce){.tool,.tarrow{transition:none}}

/* ---------- A tool page (the timestamp maker, the rules maker): shared by all of them ----------
   The first screen is the tool and nothing else (Lime 17 Nov: "center it, make anything else below a scroll"). The block
   (trail, pill title, one line, the tool) sits in the middle of the window on a hero one window high, so the questions
   start under the fold. A page says how high its block is (--block) and how much room must stay under it for its tallest
   menu (--room); the block leaves the exact middle only to keep that room, and never goes higher than 136. */
.tspage{position:relative;padding-top:0}
.tshero{--block:368px;--room:308px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;width:100%;min-height:100vh;min-height:100svh;padding-top:clamp(136px,calc((100vh - var(--block)) / 2),calc(100vh - var(--block) - var(--room)))}
.tstrail{margin:0 0 28px;display:flex;justify-content:center;font-size:14px;line-height:20px;font-weight:500;overflow:hidden}
.tstrail span{display:flex;gap:8px;will-change:transform}
.tstrail a{color:var(--soft);text-decoration:none;border-radius:6px;transition:color .15s var(--ease)}
.tstrail a:hover{color:#F2F2F2}
.tstrail a:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.tstrail i{font-style:normal;color:#6B6B6B}
.tstrail b{font-weight:500;color:var(--faint)}

.tstool{position:relative;z-index:5;flex:none;width:760px;margin-top:56px;text-align:left}
/* ONE ROUNDNESS for every tool (Lime, 18 Nov 2026, on the squarer 20 / 12 / 16 / 8 corners of the night before: "the
   square roundnesses ... it doesn't match any of the other roundnesses on the page ... make them all round, like the
   same roundness"). The bar is fully round (88 tall, 44). Every surface under it takes the same 44, so a bar over a
   box is one curve twice. Everything pressed is fully round: 8 inside a 44 bar is 36, so a 72 tall picker is exactly
   round, and 16 inside a 44 panel is 28, so a 56 control is too. A menu is 28, its rows fully round. Symbol keys
   and calendar days are circles. Figma board "The tools, all round" (6952:1893) and every tool frame. */
.tsbar{display:flex;align-items:center;height:88px;padding:8px 16px 8px 8px;border-radius:44px;background:#171717;box-shadow:inset 0 0 0 1px #262626}
/* a part of the bar: its name over its value, a caret as far from the pill's end as the words are from its start */
.tsseg{position:relative;flex:none;display:flex;flex-direction:column;align-items:flex-start;height:72px;margin:0;padding:16px 40px 0 28px;border:0;border-radius:36px;background:none;font-family:inherit;text-align:left;cursor:pointer;-webkit-appearance:none;appearance:none;transition:background-color .15s var(--ease)}
.tsl{display:block;height:16px;margin-bottom:2px;font-size:13px;line-height:16px;font-weight:500;color:var(--faint);white-space:nowrap;cursor:inherit}
.tsv{display:block;max-width:100%;height:24px;font-size:17px;line-height:24px;font-weight:500;color:var(--white);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
input.tsv{width:100%;margin:0;padding:0;border:0;outline:0;background:none;font-family:inherit;caret-color:var(--white);cursor:pointer}
input.tsv:focus{cursor:text}
input.tsv::selection{background:#4A4A4A;color:#FAFAFA}   /* the marked time: our grey, never the browser's blue */
.tscar{position:absolute;right:26px;top:29px;display:block;color:var(--faint);pointer-events:none;transition:transform .2s var(--ease),color .15s var(--ease)}
.tsseg + .tsseg::before{content:"";position:absolute;left:0;top:20px;width:1px;height:32px;background:#2A2A2A;transition:opacity .15s var(--ease)}
.tsseg.is-open{background:#262626}
.tsseg.is-open .tsl{color:var(--soft)}   /* the faint grey is under 4.5 to 1 on this fill */
.tsseg.is-open .tscar{transform:rotate(180deg);color:#F2F2F2}
.tsseg.is-open::before,.tsseg.is-open + .tsseg::before{opacity:0}
@media (hover:hover){
  .tsseg:hover:not(.is-open){background:#1F1F1F}
  .tsseg:hover::before,.tsseg:hover + .tsseg::before{opacity:0}
}
.tsseg:focus-visible,.is-keys .tsseg:focus-within{outline:2px solid #8B5CF6;outline-offset:-2px}
/* Copy: the home page's Build it button. Its two faces (Copy, Copied) sit on top of each other and swap in place. */
.tscopy{position:relative;flex:none;width:138px;height:56px;margin:0 0 0 8px;padding:0;border:0;border-radius:28px;background:#F5F5F5;color:#0A0A0A;font:600 19.6px/28px "Inter",system-ui,sans-serif;cursor:pointer;transition:background-color .15s var(--ease),transform .12s ease}
.tscopy:hover{background:#FFFFFF}
.tscopy:active{transform:scale(.97)}
.tscopy:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
/* centred one pixel left of the middle: each icon's drawing is narrower than its box */
.tsface{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;padding-right:2px;white-space:nowrap;transition:opacity .09s linear .1s,transform .3s cubic-bezier(.16,1,.3,1) .1s}   /* arriving: from its own middle, once the other face has left */
.tsface svg{flex:none;display:block}
.tsface + .tsface,.tscopy.is-did .tsface:first-child{opacity:0;transform:scale(.97);transition:opacity .1s cubic-bezier(.5,0,1,.7),transform .1s cubic-bezier(.5,0,1,.7)}   /* away, or leaving: 0.1 s */
.tsface + .tsface svg{transform:translateY(-.7px)}
.tscopy.is-did .tsface + .tsface{opacity:1;transform:none;transition:opacity .09s linear .1s,transform .3s cubic-bezier(.16,1,.3,1) .1s}

/* the menus: the bar's grey, no outline, corners 28, 8 under the bar; rows are fully round fills 32 high with 4 between them, so the picked one and the one under the pointer never touch */
.tspop{position:absolute;z-index:6;top:96px;border-radius:28px;background:#1F1F1F;box-shadow:inset 0 0 0 1px #2E2E2E,0 2px 8px rgba(0,0,0,.4),0 12px 32px rgba(0,0,0,.6)}
.tspop[hidden]{display:none}
/* a menu arrives from its own middle: 97% to 100% in 0.3 s, seen by 90 ms (the site's rule: never a slide, never a flat fade) */
@media (prefers-reduced-motion:no-preference){.tspop:not([hidden]){animation:tsin .3s cubic-bezier(.16,1,.3,1)}}
@keyframes tsin{from{opacity:0;transform:scale(.97)}30%{opacity:1}}
.tspop button{margin:0;border:0;background:none;font-family:inherit;cursor:pointer;-webkit-appearance:none;appearance:none}
/* a plain list menu: rows are fully round fills 32 high with 4 between them */
.tsmenu{display:flex;flex-direction:column;gap:4px;padding:8px}
.tsfo{display:flex;align-items:center;justify-content:space-between;gap:24px;flex:none;width:100%;height:32px;padding:0 12px;border-radius:16px;font-size:14px;line-height:20px;font-weight:500;color:#F2F2F2;text-align:left;white-space:nowrap;transition:background-color .12s var(--ease)}
.tsfo i{min-width:0;overflow:hidden;text-overflow:ellipsis;font-style:normal;font-weight:400;color:var(--faint)}
.tsfo[aria-selected="true"] i,.tsfo:hover i{color:var(--soft)}
.tsfo:hover{background:#262626}
.tsfo[aria-selected="true"]{background:#2E2E2E;color:#FAFAFA}
.tsfo:focus-visible{outline:2px solid #8B5CF6;outline-offset:-2px}
.tsgap{margin-top:96px}   /* under the fold: the first screen ends where the hero ends */
.tsmore{margin-top:160px}
/* A phone, and any window narrower than the bar (under 808 wide): Figma "<tool>, phone" in section Phone.
   The bar turns into the panel the Symbols and Bio tools already are: 16 inside, corners 44, every control 56 high, 8
   apart and fully round (16 inside a 44 corner is 28). Two pickers share a row when the tool is 350 wide or more (a 390
   screen; under that a value such as Community or 12:00 PM would be cut, so each picker takes a row of its own). The
   rule reads the tool's own width, not the screen's, because a tool inside a guide sits in a frame as wide as the
   guide's words. A long picker, the grey button and Copy always take a whole row. A picker's caret is as far from its end as its words are from its start (16).
   A menu is as wide as the tool and opens 8 under the row its picker is on (80 for the first row, 64 more for each row
   after; a tool with a picker lower down says so in its own styles); its rows are 40 high for a thumb. When one opens
   past the bottom of the screen the page moves to show all of it (tools-shared.js), stopping clear of the header. */
@media (max-width:807px){
  .tstool{width:min(480px,calc(100vw - 40px));container-type:inline-size}
  .tsbar{flex-wrap:wrap;gap:8px;height:auto;padding:16px}
  .tsbar .tsseg{flex:1 1 0;width:auto!important;min-width:0;height:56px;padding:10px 38px 0 16px;border-radius:28px}
  .tsbar .tsl{margin-bottom:0}
  .tsbar .tscar{right:16px;top:21px}
  .tsbar .tsseg + .tsseg::before{left:-4px;top:12px}
  .tsbar .tscopy{flex:1 1 100%;width:auto;margin:0}
  .tscopy{font-size:17px;line-height:24px}
  .tsface svg{width:20px;height:20px}
  .tspop{top:80px;left:0!important;right:0;width:auto!important;max-width:none;scroll-margin:84px 0 16px}
  .tsfo{height:40px;border-radius:20px}
}
@container (max-width:349px){
  .tsbar .tsseg{flex-basis:100%}
  .tsbar .tsseg + .tsseg::before{display:none}
}
@media (prefers-reduced-motion:reduce){.tsseg,.tscar,.tscopy,.tsface,.tsfo{transition:none}}

/* the code font, and the font the line-drawing signs come from */
@font-face{font-family:"JetBrains Mono";src:url(/new-site/fonts/JetBrainsMono-Regular.woff2) format("woff2");font-weight:400;font-display:block}

/* ---------- the rules, as one Discord message from PeakBot (the rules maker, and the funnel behind its second button) ---------- */
.rlmsg{position:relative;box-sizing:border-box;height:376px;margin-top:8px;padding:24px 24px 24px 92px;border-radius:44px;background:#171717;box-shadow:inset 0 0 0 1px #262626;font-size:16px;line-height:24px;color:#DBDBDB}   /* the bar's own grey: a darker box under the bar read as a colour difference (Lime, 18 Nov) */
.rlav{position:absolute;left:36px;top:24px;width:40px;height:40px;border-radius:50%;background:#000 url(/new-site/peak-mark.png) center/24px 20px no-repeat}
.rlwho{display:flex;align-items:center;height:24px;margin:0;white-space:nowrap}
.rlwho b{font-weight:600;color:#F2F2F2}
/* Discord's tag for a verified app: a tick, then APP */
.rlapp{display:flex;align-items:center;gap:2px;height:16px;margin-left:8px;padding:0 6px 0 5px;border-radius:8px;background:#5865F2;color:#FFFFFF;font-size:10px;line-height:16px;font-weight:600}
.rlapp svg{flex:none;display:block}
.rlwhen{position:relative;top:1px;margin-left:8px;font-size:12px;line-height:16px;font-weight:500;color:var(--faint)}
.rlhead{margin:8px 0 12px;font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.01em;color:var(--white)}
.rllist{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.rllist li{display:flex;height:24px;white-space:nowrap}
.rllist li i{flex:none;width:24px;font-style:normal;color:var(--faint)}
.rllist li b{font-weight:600;color:#F2F2F2}
.rlclose{height:24px;margin:12px 0 0;color:var(--soft);white-space:nowrap}
/* a phone, and any window narrower than the bar: Figma "Rules maker, phone". PeakBot's picture and name are the
   message's first line; the heading and the rules start at the message's own edge, each rule on as many lines as it
   needs, its number in a column of its own. Under 360 wide the time gives way so the name and the tag stay on the line. */
@media (max-width:807px){
  .rlmsg{height:auto;padding:24px 20px}
  .rlav{left:20px}
  .rlwho{height:40px;padding-left:52px}
  .rlhead{margin:16px 0 12px}
  .rllist li{display:block;position:relative;height:auto;padding-left:24px;white-space:normal}
  .rllist li i{position:absolute;left:0;top:0}
  .rlclose{height:auto;white-space:normal}
}
@media (max-width:359px){.rlwhen{display:none}}

/* ---------- a server's channel list (the layout maker, and the funnel behind its second button) ---------- */
/* Inter has no line-drawing characters; they come from JetBrains Mono on every computer, not from whatever font it has */
.lybox,.lyex{font-family:"Inter","JetBrains Mono",system-ui,sans-serif}
.lybox{box-sizing:border-box;display:grid;grid-template-columns:repeat(3,224px);column-gap:20px;height:248px;margin-top:8px;padding:24px;border-radius:44px;background:#171717;box-shadow:inset 0 0 0 1px #262626}
.lycat{height:16px;margin:0 0 8px;padding-left:8.75px;font-size:12px;line-height:16px;font-weight:600;letter-spacing:.02em;color:var(--faint);white-space:pre}
.lych{display:flex;align-items:center;width:224px;height:32px;margin:0;padding:0 8px;border:0;border-radius:16px;background:none;font:inherit;font-size:14px;line-height:20px;font-weight:500;color:#DBDBDB;text-align:left;white-space:pre;cursor:pointer;-webkit-appearance:none;appearance:none;transition:background-color .12s var(--ease),color .12s var(--ease)}
.lych + .lych{margin-top:4px}
.lych:hover,.lych.is-did{background:#1F1F1F;color:#FAFAFA}
.lych:focus-visible{outline:2px solid #8B5CF6;outline-offset:-2px}
.lych > svg{flex:none;display:block;margin-right:8px;color:var(--faint)}
.lych.is-did > svg{color:#FAFAFA}
.lych img,.lyex img{flex:none;display:block;width:16px;height:16px}
.lyex{display:flex;align-items:center;white-space:pre}
/* a phone, and any window narrower than the bar: Figma "Server layout maker, phone". The three groups one under the
   other, 20 apart; a name is as wide as the box and 40 high for a thumb. */
@media (max-width:807px){
  .lybox{grid-template-columns:minmax(0,1fr);row-gap:20px;height:auto;padding:24px 16px}
  .lych{width:100%;height:40px;border-radius:20px}
}

/* ---------- a list that scrolls inside its box: the thumb has its own 20 px lane so no row ever moves for it; what shows of
   the thumb is 4 wide with corners 2. (The timestamp maker's time list was the first; it keeps its own copy of these.) ---------- */
.tslane{overflow-y:scroll;overscroll-behavior:contain;scroll-snap-type:y mandatory}
.tslane::-webkit-scrollbar{width:20px}
.tslane::-webkit-scrollbar-track{margin:8px 0;background:none}
.tslane::-webkit-scrollbar-thumb{min-height:32px;border:0 solid transparent;border-width:0 8px;border-radius:10px / 2px;background:#3A3A3A;background-clip:padding-box}
.tslane::-webkit-scrollbar-thumb:hover{background-color:#4A4A4A}
@supports not selector(::-webkit-scrollbar){.tslane{scrollbar-width:thin;scrollbar-color:#3A3A3A transparent}}

/* ---------- a tool that is ONE PANEL (Symbols, Bio templates) ----------
   Lime on a bar with loose tiles under it: "its not in the same container". The controls are the panel's first row and
   what they control sits under them on the same grid. 792 wide, the bar's grey, corners 44, 16 inside; everything in it
   is 8 apart and fully round, so every corner nests in the panel's (44 = 28 + 16). A picker in it opens IN the panel,
   in place of what is under row one, never as a menu floating over it. */
.tstool.tswide{width:792px}
.tspanel{box-sizing:border-box;padding:16px;border-radius:44px;background:#171717;box-shadow:inset 0 0 0 1px #262626;overflow:hidden}
.tshead{display:flex;align-items:center;gap:8px;height:56px}   /* row one */
.tsseg.tspick{flex:1 1 0;min-width:0;height:56px;padding:10px 44px 0 16px;border-radius:28px}   /* a picker in row one: name at 16,10; value at 16,26 */
.tspick .tsl{margin-bottom:0}
.tspick .tscar{right:20px;top:21px}
.tshead .tscopy{margin:0}
/* a phone, and any window narrower than the panel (under 840 wide): the picker keeps the first row, Copy takes the second */
@media (max-width:839px){
  .tstool.tswide{width:min(480px,calc(100vw - 40px));container-type:inline-size}
  .tshead{flex-wrap:wrap;height:auto}
  .tshead .tscopy{flex:1 1 100%;width:auto;font-size:17px;line-height:24px}
  .tshead .tsface svg{width:20px;height:20px}
}

/* a question row sits on the page, and a block on the page is 28 (the home page's own rows are still 20) */
.tsq{border-radius:28px}

/* ---------- a tool page on a phone (under 760 wide) ----------
   The tool is no longer alone on the first screen: the page runs top to bottom. The trail is 104 from the top, the
   heading (the pill, then the words under it) 20 under the trail, the line 16 under the heading, the tool 32 under the
   line; then the questions, the guides and three more tools, 80 apart. */
@media (max-width:759px){
  .tspage .tshero{min-height:0;padding-top:104px}
  .tspage .tstrail{display:flex;margin-bottom:20px}
  .tspage .tstool{margin-top:32px}
  .tsgap,.tsmore{margin-top:80px}
}


/* The templates gallery. The same page doing the same job as the live one (title and search, the category pills, the
   Featured template, "All Templates", the cards three a row with a like, Load more, nothing found, the link list), with
   its UI redesigned (Lime, 19 Nov: "redo this entirely ... You made the old one pretty much with just the new
   roundnesses. Now improve it"). A template is drawn as the site's own template card, the one on the home page: the
   picture first (the server's window on its category's colour, its real logo, its channels), then the name and category,
   its line, its counts with a dot a role, and under a hairline who made it and the like. Featured is that card, big.
   Figma: section "Templates gallery, new look" 7079:1907, frame 7079:1908. Built by build_templates.py. */
.tools.tpl{padding-top:160px;align-items:center}
.tpl [hidden]{display:none!important}
.tp-wrap{width:min(1180px,calc(100vw - 48px))}
/* a category page (Figma "Category page, Gaming" 7116:1908): the template page's trail at 112, 28 over the title at 160;
   its pills are links to the other category pages, the picked one says so */
.tools.tpl[data-only]{padding-top:112px}
/* the trail (shared with a template page, whose stylesheet is built from this one) */
.tp-trail{display:flex;align-items:center;gap:8px;height:20px;margin:0;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap}
.tp-trail a{color:var(--faint);text-decoration:none;border-radius:6px;transition:color .15s var(--ease)}
.tp-trail a:hover{color:#F2F2F2}
.tp-trail a:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
.tp-trail span{color:#4D4D4D}
/* the search sits under the line on every category page, so the page does not move when a pill opens the next one
   (the longest heading, "Sports and Fitness Server Templates", is 990 wide; Figma 7117:1907) */
[data-only] .tp-top{flex-direction:column;align-items:flex-start;gap:32px}
/* a category heading is two parts ("Sports and Fitness" "Server Templates"): one line where it fits, two where it does not */
[data-only] h1 .line{display:inline-block}
[data-only] .tp-trail{margin-bottom:28px}
[data-only] .tp-trail b{font-weight:500;color:#F2F2F2}
a.tp-cat{text-decoration:none}
.tp-top{display:flex;align-items:flex-end;justify-content:space-between;gap:32px}
.tpl h1{text-align:left}
.tp-sub{margin:16px 0 0;font-size:18px;line-height:28px;font-weight:400;letter-spacing:-.01em;color:var(--soft);overflow:hidden}
.tp-sub span{display:block;will-change:transform}

/* search: 320 x 48, fully round, its foot on the line the sub line ends on */
.tp-search{position:relative;flex:none;width:320px;height:48px}
.tp-search svg{position:absolute;left:18px;top:16px;color:var(--faint);pointer-events:none}
.tp-search input{display:block;width:100%;height:48px;margin:0;border:0;border-radius:24px;background:#171717;box-shadow:inset 0 0 0 1px #262626;padding:0 20px 0 44px;font:400 14px/20px "Inter",system-ui,sans-serif;color:var(--white);outline:0;-webkit-appearance:none;appearance:none;transition:box-shadow .15s var(--ease)}
.tp-search input::placeholder{color:var(--faint);opacity:1}
.tp-search input::-webkit-search-cancel-button,.tp-search input::-webkit-search-decoration{-webkit-appearance:none}
.tp-search input:hover{box-shadow:inset 0 0 0 1px #333333}
.tp-search input:focus-visible{box-shadow:inset 0 0 0 2px #8B5CF6}

/* the category pills: 40 high, fully round, one row at full width. A picked pill is heavier, so each pill keeps the room
   its heavier words need (the hidden copy under it) and the row never shifts. */
.tp-cats{display:flex;flex-wrap:wrap;gap:8px 6px;margin:40px 0 0;padding:0;list-style:none}
.tp-cat{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;height:40px;margin:0;padding:0 14px;border:0;border-radius:20px;background:#1C1C1C;color:var(--soft);font:500 13px/20px "Inter",system-ui,sans-serif;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),color .15s var(--ease),transform .12s var(--ease)}
.tp-cat::after{content:attr(data-l);height:0;overflow:hidden;visibility:hidden;font-weight:600}
.tp-cat:hover{background:#242424;color:#F2F2F2}
.tp-cat:active{transform:scale(.97)}
.tp-cat[aria-pressed="true"],.tp-cat[aria-current="page"]{background:#F5F5F5;color:#0A0A0A;font-weight:600}
.tp-cat:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}

/* a tag, 26 high and fully round: a category's tag takes that category's colour, mixed solid onto the card.
   Trending is a status, so it is an icon: a flame on amber, the tag's own height. */
.tp-tag{flex:none;height:26px;padding:0 10px;border-radius:13px;background:var(--g,#262626);color:var(--x,#F2F2F2);font-size:12px;line-height:26px;font-weight:500;white-space:nowrap}
.tp-hot{flex:none;width:26px;height:26px;border-radius:13px;background:#2B2212;color:#FBBF24;display:grid;place-items:center}

/* the server's window, as the home page's card draws it: the logo on a white tile (a letter when there is none), the
   name, a caret, a hairline, then channels on 28 rows with the one in view lit */
.tp-win{position:relative;height:200px;border-radius:12px;background:#0E0E0E;box-shadow:inset 0 0 0 1px #262626;overflow:hidden}
.tp-wh{display:flex;align-items:center;gap:10px;height:44px;padding:0 12px}
.tp-logo{flex:none;width:28px;height:28px;border-radius:8px;background:#FFFFFF;display:grid;place-items:center}
.tp-logo img{display:block;width:16px;height:16px}
.tp-logo.tp-let{background:#1F1F1F;font-size:13px;line-height:20px;font-weight:600;color:var(--white)}
.tp-wn{flex:1;min-width:0;font-size:13px;line-height:20px;font-weight:600;color:#F2F2F2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-wh svg{flex:none;color:var(--faint)}
.tp-ch{height:156px;margin:0 1px;padding:7px 5px 0;border-top:1px solid #1F1F1F;overflow:hidden}
.tp-chs{display:block}
.tp-c{display:flex;align-items:center;height:28px;padding-left:8px;border-radius:6px;font-size:13px;line-height:20px;color:var(--soft);white-space:nowrap;overflow:hidden}
.tp-c i{flex:none;display:flex;align-items:center;width:20px;font-style:normal;font-weight:500;color:#6B6B6B}
.tp-c img{flex:none;display:block;width:14px;height:14px;margin-right:8px}
.tp-c b{min-width:0;font-weight:400;overflow:hidden;text-overflow:ellipsis}
.tp-c.on{background:#1F1F1F;color:#F2F2F2}
.tp-c.on b{font-weight:500}

/* Featured: the card, big. Its words at the left, centred top to bottom; at the right its picture, the window with the
   channels in their groups and the roles beside them, running off the foot of the picture. */
.tp-feat{display:flex;align-items:center;gap:32px;margin-top:32px;height:416px;padding:8px 8px 8px 48px;border-radius:28px;background:#171717;box-shadow:inset 0 0 0 1px var(--o),0 8px 24px rgba(0,0,0,.4)}
.tp-ftext{flex:1 1 280px;min-width:280px}
.tp-tags{display:flex;gap:8px}
.tp-feat h2{margin:20px 0 0;font-size:40px;line-height:48px;font-weight:600;letter-spacing:-.02em;color:var(--white);overflow-wrap:anywhere}
.tp-fline{margin:12px 0 0;max-width:420px;font-size:16px;line-height:24px;color:var(--soft);text-wrap:pretty;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tp-ffacts{margin:24px 0 0;font-size:14px;line-height:20px;color:var(--faint)}
.tp-view{margin-top:32px;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 22px 0 24px;border-radius:24px;background:#F5F5F5;color:#0A0A0A;font-size:14px;line-height:20px;font-weight:600;text-decoration:none;white-space:nowrap;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),transform .12s var(--ease)}
.tp-view:hover{background:#FFFFFF}
.tp-view:active{transform:scale(.97)}
.tp-view:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
.tp-view svg{transition:transform .15s var(--ease)}
.tp-view:hover svg{transform:translateX(2px)}
.tp-fpic{flex:0 1 640px;min-width:0;align-self:stretch;padding:32px 32px 0;border-radius:20px;background:var(--t);overflow:hidden}
.tp-win.tp-big{display:flex;flex-direction:column;height:420px}
.tp-big .tp-wh{flex:none;height:48px;padding:0 16px 0 14px;gap:12px}
.tp-big .tp-wn{font-size:14px}
.tp-cols{flex:1;min-height:0;display:flex;margin:0 1px;border-top:1px solid #1F1F1F}
.tp-col{flex:none;width:299px;padding:7px 5px 0;overflow:hidden}
.tp-col + .tp-col{flex:1;width:auto;min-width:0;padding:7px 8px 0 9px;border-left:1px solid #1F1F1F}
.tp-g{margin:4px 0 0;height:20px;padding:2px 8px 0;font-size:11px;line-height:16px;font-weight:500;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-g:first-child{margin-top:0}
.tp-col + .tp-col .tp-g{padding-left:6px}
.tp-r{display:flex;align-items:center;gap:8px;height:28px;padding-left:6px;font-size:13px;line-height:20px;font-weight:500;color:#E5E5E5;white-space:nowrap;overflow:hidden}
.tp-r i{flex:none;width:10px;height:10px;border-radius:50%}
.tp-r b{min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis}

/* "All Templates" and how many */
.tp-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin:64px 0 24px}
.tp-head h2{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.02em;color:var(--white)}
.tp-head span{font-size:13px;line-height:20px;color:var(--faint);white-space:nowrap}

/* the cards: three a row, 20 apart, each 376 high. The whole card is one link (the name's); the like sits over it.
   Under the pointer the card rises 4 and its outline strengthens (the home page's card), and its channel list glides
   up to show more of the server. */
.tp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.tp-grid.alone{margin-top:32px}
.tp-card{position:relative;min-width:0;padding:8px 8px 20px;border-radius:28px;background:#171717;box-shadow:inset 0 0 0 1px var(--o),0 8px 24px rgba(0,0,0,.4);transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.tp-tint{height:164px;padding:16px 20px 0;border-radius:20px;background:var(--t);overflow:hidden}
.tp-name{display:flex;align-items:center;gap:6px;height:28px;margin:16px 16px 0}
.tp-name h3{flex:1;min-width:0;margin:0;font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--white);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-open{color:inherit;text-decoration:none;outline:0}
.tp-open::after{content:"";position:absolute;inset:0;border-radius:28px}
.tp-open:focus-visible::after{outline:2px solid #8B5CF6;outline-offset:3px}
.tp-line{margin:12px 16px 0;height:40px;font-size:14px;line-height:20px;color:#A3A3A3;text-wrap:pretty;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.tp-facts{display:flex;align-items:center;justify-content:space-between;gap:12px;height:20px;margin:12px 16px 0;font-size:13px;line-height:20px;color:var(--faint);white-space:nowrap}
.tp-facts span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tp-dots{flex:none;display:flex;gap:5px}
.tp-dots b{width:8px;height:8px;border-radius:50%}
.tp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;height:44px;margin:12px 16px 0;padding-top:11px;border-top:1px solid #262626}
.tp-by{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;line-height:20px;color:var(--faint);white-space:nowrap}
.tp-by b{min-width:0;font-weight:500;color:#F2F2F2;overflow:hidden;text-overflow:ellipsis}
.tp-av{flex:none;width:20px;height:20px;border-radius:50%;background:#000000;box-shadow:inset 0 0 0 1px #262626;display:grid;place-items:center;font-size:10px;line-height:20px;font-weight:600;color:#F2F2F2}
.tp-av img{display:block;width:12px;height:10px;object-fit:contain}
.tp-av{-webkit-user-select:none;user-select:none}   /* a picture, not words: a selection paints only the words */
.tp-like{position:relative;z-index:1;flex:none;display:flex;align-items:center;gap:6px;height:32px;margin:0;padding:0 12px 0 10px;border:0;border-radius:16px;background:#1F1F1F;color:#F2F2F2;font:500 13px/20px "Inter",system-ui,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),transform .12s var(--ease)}
.tp-like svg{color:var(--soft);transition:color .15s var(--ease)}
.tp-like:hover{background:#2A2A2A}
.tp-like:hover svg{color:#F2F2F2}
.tp-like:active{transform:scale(.97)}
.tp-like:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
@media (hover:hover) and (pointer:fine){
  .tp-card:hover{box-shadow:inset 0 0 0 1px var(--oh),0 8px 24px rgba(0,0,0,.4)}
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .tp-card:hover{transform:translateY(-4px)}
  .tp-chs{transition:transform .45s var(--ease)}
  .tp-card:hover .tp-chs{transform:translateY(calc(var(--more,0px) * -1));transition:transform var(--glide,1.2s) cubic-bezier(.3,0,.2,1) .18s}
}

/* said to a screen reader when a search or a category changes the list; never drawn */
.tp-say{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Load more, and nothing found */
.tp-more{display:flex;justify-content:center;margin-top:48px}
.tp-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;margin:0;padding:0 24px;border:0;border-radius:24px;background:#262626;color:#F2F2F2;font:500 14px/20px "Inter",system-ui,sans-serif;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),transform .12s var(--ease)}
.tp-btn:hover{background:#303030}
.tp-btn:active{transform:scale(.97)}
.tp-btn:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.tp-btn.tp-sm{height:40px;padding:0 18px;border-radius:20px}
.tp-none{display:flex;flex-direction:column;align-items:center;padding:64px 0 80px}
.tp-none span{width:48px;height:48px;border-radius:12px;background:#171717;box-shadow:inset 0 0 0 1px #262626;display:grid;place-items:center;color:var(--faint)}
.tp-none p{margin:16px 0 20px;font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--white);text-align:center}

/* "Browse every template": the page's plain list of links. A row a category: its name, then its templates. */
.tp-dir{margin-top:120px}
.tp-dir h2{margin:0 0 32px;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.02em;color:var(--white)}
.tp-drow{display:grid;grid-template-columns:160px minmax(0,1fr);gap:0 20px;padding:14px 0;border-top:1px solid #1C1C1C}
.tp-drow h3{margin:0;font-size:13px;line-height:24px;font-weight:600;color:#F2F2F2}
.tp-drow ul{display:flex;flex-wrap:wrap;gap:0 24px;margin:0;padding:0;list-style:none}
.tp-drow a{font-size:14px;line-height:24px;color:var(--soft);text-decoration:none;border-radius:6px;transition:color .15s var(--ease)}
.tp-drow a:hover{color:#F2F2F2}
.tp-drow a:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}

/* the sign in popup: centred, over a 60% dim */
.tp-pop{margin:auto;padding:0;border:0;background:transparent;color:inherit;max-width:none;max-height:none;overflow:visible}
.tp-pop::backdrop{background:rgba(0,0,0,.6)}
.tp-popc{display:flex;flex-direction:column;align-items:center;width:min(400px,calc(100vw - 32px));padding:32px;border-radius:28px;background:#1C1C1C;box-shadow:0 24px 64px rgba(0,0,0,.5)}
.tp-popc > span{width:48px;height:48px;border-radius:12px;background:#000000;box-shadow:inset 0 0 0 1px #262626;display:grid;place-items:center}
.tp-popc > span img{display:block;width:24px;height:24px}
.tp-popc h2{margin:20px 0 24px;font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.01em;color:var(--white);text-align:center}
.tp-popgo{display:grid;place-items:center;width:100%;height:48px;border-radius:24px;background:#F5F5F5;color:#0A0A0A;font-size:14px;line-height:20px;font-weight:600;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),transform .12s var(--ease)}
.tp-popgo:hover{background:#FFFFFF}
.tp-popgo:active{transform:scale(.97)}
.tp-popgo:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
.tp-popc .tp-btn{width:100%;margin-top:8px}
@media (prefers-reduced-motion: no-preference){
  .tp-pop[open] .tp-popc{animation:tpPopIn .26s var(--out)}
  .tp-pop[open]::backdrop{animation:tpDimIn .2s ease-out}
}
@keyframes tpPopIn{from{transform:scale(.96);opacity:0}}
@media (max-width:759px) and (prefers-reduced-motion:no-preference){
  .tp-pop[open] .tp-popc{animation:tpSheetIn .34s var(--out)}
}
@keyframes tpSheetIn{from{transform:translateY(calc(100% + 24px))}}
@keyframes tpDimIn{from{opacity:0}}

/* narrower windows: two cards a row, then one; Featured's picture under its words on a phone */
@media (max-width:1099px){
  .tp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tp-feat{padding-left:40px;gap:24px}
}
@media (max-width:759px){
  /* A phone (Figma "Templates gallery, phone" 7102:1907): the column 20 in from each side, the phone heading, the
     search types at 16 (a phone zooms in on a smaller field), the categories ONE strip that scrolls sideways inside
     itself (four rows of pills pushed the templates a screen down), fading at the end that has more. */
  .tools.tpl{padding-top:112px}
  .tools.tpl[data-only]{padding-top:96px}
  [data-only] .tp-trail{margin-bottom:20px}
  .tp-wrap{width:min(480px,calc(100vw - 40px))}
  .tpl h1{font-size:min(36px,calc((min(480px,100vw - 40px)) / 10.6));line-height:1.3333}
  .tp-sub{margin-top:12px;font-size:16px;line-height:24px;letter-spacing:0}
  .tp-top,[data-only] .tp-top{flex-direction:column;align-items:stretch;gap:24px}
  .tp-search{width:100%}
  .tp-search input{font-size:16px;line-height:24px}
  .tp-cats{flex-wrap:nowrap;gap:6px;margin:14px -20px 0;padding:2px 20px;overflow-x:auto;scroll-padding:0 20px;scrollbar-width:none;overscroll-behavior-x:contain}
  .tp-cats::-webkit-scrollbar{display:none}
  .tp-cats li{flex:none}
  .tp-cat{position:relative}
  .tp-cat::before{content:"";position:absolute;inset:-2px 0}   /* 40 drawn, 44 to the thumb */
  .tp-cats.tp-cut{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent)}
  .tp-cats.tp-cutl{-webkit-mask-image:linear-gradient(to right,transparent,#000 24px);mask-image:linear-gradient(to right,transparent,#000 24px)}
  .tp-cats.tp-cut.tp-cutl{-webkit-mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
  .tp-cats{margin-bottom:-2px}   /* its 2 of touch room under the pills is not space */
  .tp-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  /* a popup is a sheet at the foot of the screen: 12 from the sides and the foot, corners 28, 24 inside, rising up */
  .tp-pop{margin:auto 12px max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px)}
  .tp-pop .tp-popc{width:100%;max-height:calc(100dvh - 92px);padding:24px;border-radius:28px;overflow-y:auto}
  .tp-feat{flex-direction:column;align-items:stretch;height:auto;padding:8px;gap:0}
  .tp-ftext{flex:none;min-width:0;padding:24px 16px 28px;order:2}
  .tp-feat h2{font-size:32px;line-height:40px}
  .tp-fpic{flex:none;height:220px;padding:20px 20px 0}
  .tp-head{margin-top:48px}
  .tp-like::after{content:"";position:absolute;inset:-6px}   /* 32 drawn, 44 to the thumb */
  .tp-drow{grid-template-columns:minmax(0,1fr)}
  .tp-dir{margin-top:80px}
}

/* A template's own page. The same page doing the same job as the live one (who made it, what is in the server, what
   PeakBot sets up, Use This Template and the like), with its UI redesigned.
   Second pass (Lime, 19 Nov, on a first pass that put everything in one wide card: "the top thing feels more like a
   banner", and on the features list: "all the hover lines are all broken"): no card around the top. The page is two
   columns, as the live page is: at the left the template itself (its logo, name, line, maker, tags, counts and the two
   actions), which stays in view while the right scrolls; at the right the server as a window with two panes, Channels
   and Roles (the site's own window: bar grey, 28, panes 20), then what PeakBot sets up as tiles. Every channel, every
   role and every feature is a button that opens a centred popup: who can see a channel and talk in it, what a role may
   do, what a feature adds. Under both: three more templates of the same category, the gallery's own cards.
   Figma: section 7079:1907, frame "Template page" 7091:1907. Comes after the gallery's styles in templates/page.css
   (build_template_pages.py), so it uses the gallery's tags, rows, cards, buttons and popup as they are. */
.tools.tpg{padding-top:144px}

/* the trail */

/* two columns: the template 380 wide, then its server and features */
.tp-two{display:grid;grid-template-columns:380px minmax(0,1fr);gap:40px;align-items:start;margin-top:16px}
.tp-side,.tp-main{min-width:0}
@media (min-height:700px) and (min-width:760px){
  .tp-side{position:sticky;top:32px}   /* only where the whole column fits in the window */
}
.tp-biglogo{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#FFFFFF}
.tp-biglogo img{display:block;width:32px;height:32px}
.tp-biglogo.tp-let{background:#1F1F1F;box-shadow:inset 0 0 0 1px #262626;font-size:22px;line-height:28px;font-weight:600;color:var(--white)}
.tp-side .tp-tags{margin-top:20px}
.tpg h1{margin:12px 0 0;font-size:40px;line-height:48px;font-weight:600;letter-spacing:-.02em;text-align:left;color:var(--white);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tp-hline{margin:12px 0 0;font-size:16px;line-height:24px;color:var(--soft);text-wrap:pretty;overflow-wrap:anywhere}
.tp-hby{display:flex;align-items:center;gap:8px;height:24px;margin:20px 0 0;font-size:14px;line-height:20px;color:var(--faint);white-space:nowrap}
.tp-hby b{min-width:0;font-weight:500;color:#F2F2F2;overflow:hidden;text-overflow:ellipsis}
.tp-av.tp-avb{width:24px;height:24px;font-size:11px;line-height:24px}
.tp-av.tp-avb img{width:14px;height:12px;object-fit:contain}   /* the header's 18 x 16 mark in 32, kept in shape (Figma Maker mark 7114) */
.tp-topics{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 0;padding:0;list-style:none}
.tp-topics li{max-width:100%;height:28px;padding:0 12px;border-radius:14px;background:#1F1F1F;font-size:12px;line-height:28px;font-weight:500;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-hfacts{margin:20px 0 0;font-size:14px;line-height:20px;color:var(--faint)}
.tp-acts{display:flex;gap:8px;margin-top:28px}
.tp-acts .tp-view{flex:1;min-width:0;justify-content:center;margin-top:0;padding:0 16px;border:0;font-family:inherit;cursor:pointer}
.tp-like.tp-lbig{height:48px;gap:8px;padding:0 20px 0 18px;border-radius:24px;background:#262626;font-size:14px}
.tp-like.tp-lbig:hover{background:#303030}

/* the server: a window, two panes. A pane is its name with a count, then a list that scrolls inside it. */
.tp-server{display:grid;grid-template-columns:minmax(0,448fr) minmax(0,288fr);gap:8px;height:496px;padding:8px;border-radius:28px;background:#1C1C1C;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.tp-pane{display:flex;flex-direction:column;min-width:0;min-height:0;border-radius:20px;background:#0A0A0A;overflow:hidden}
.tp-ph{flex:none;display:flex;align-items:center;gap:8px;height:52px;margin:0;padding:0 16px;font-size:13px;line-height:20px;font-weight:600;color:#F2F2F2}
.tp-ph span{min-width:22px;height:20px;padding:0 7px;border-radius:10px;background:#1C1C1C;font-size:12px;line-height:20px;font-weight:500;color:var(--soft);text-align:center;font-variant-numeric:tabular-nums}
/* a slim thumb, its room always kept, and a fade at the foot while there is more */
.tp-scroll{flex:1;min-height:0;margin-right:4px;padding:0 4px 12px 8px;overflow-y:auto;scrollbar-gutter:stable}   /* the thumb's room is always kept: folding a group never moves the rows */
@supports not selector(::-webkit-scrollbar){ .tp-scroll{scrollbar-width:thin;scrollbar-color:#333333 transparent} }
.tp-scroll::-webkit-scrollbar{width:6px}
.tp-scroll::-webkit-scrollbar-thumb{border-radius:3px;background:#333333}
.tp-scroll::-webkit-scrollbar-thumb:hover{background:#4D4D4D}
.tp-scroll::-webkit-scrollbar-track{background:transparent}
.tp-scroll.tp-cut{-webkit-mask-image:linear-gradient(#000 calc(100% - 36px),transparent);mask-image:linear-gradient(#000 calc(100% - 36px),transparent)}
.tp-scroll:focus-visible{outline:2px solid #8B5CF6;outline-offset:-2px;border-radius:12px}
/* a group's name folds its channels */
.tp-fold{display:flex;align-items:center;gap:6px;width:100%;height:20px;margin:4px 0 0;padding:0 8px;border:0;border-radius:10px;background:none;color:var(--faint);font:500 11px/16px "Inter",system-ui,sans-serif;text-align:left;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .15s var(--ease),background-color .15s var(--ease)}
.tp-grp:first-child .tp-fold{margin-top:0}
.tp-fold:hover{color:#F2F2F2;background:#141414}
.tp-fold:focus-visible{outline:2px solid #8B5CF6;outline-offset:-2px}
.tp-fold svg{flex:none;transition:transform .15s var(--ease)}
.tp-fold[aria-expanded="false"] svg{transform:rotate(-90deg)}
.tp-fold span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tp-pane .tp-r{padding-left:8px}
.tp-rest{margin:8px 0 0;padding:0 8px;font-size:12px;line-height:20px;color:var(--faint)}

/* What PeakBot sets up: tiles, four a row (three when that leaves none on a row of its own). A tile is the feature's
   drawing and its name, and a press opens its popup. No list of rows that open in place (Lime, 19 Nov: "these look
   horrible, like these features"). */
.tp-sets{margin-top:48px}
.tp-moresec{margin-top:64px}
.tp-sets .tp-head,.tp-moresec .tp-head{margin:0 0 24px}
/* Every row is full (Lime, 20 Nov, on 4 and then 3 with a hole: "looks ahh with one missing"): --cols a row, and the
   tiles of a shorter last row stretch to fill it (7 = 4, then 3 wider). Figma 7091:1907. */
.tp-tiles{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:0;list-style:none}
.tp-tiles li{display:flex;flex:1 1 calc((100% - (var(--cols,4) - 1) * 12px) / var(--cols,4) - .5px);min-width:0}
.tp-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:20px;width:100%;min-height:112px;margin:0;padding:16px;border:0;border-radius:20px;background:#171717;box-shadow:inset 0 0 0 1px #262626;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),box-shadow .15s var(--ease),transform .12s var(--ease)}
.tp-tile:hover{background:#1F1F1F;box-shadow:inset 0 0 0 1px #333333}
.tp-tile:active{transform:scale(.97)}
.tp-tile:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.tp-tile img{display:block;width:40px;height:40px}
.tp-tile b{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:14px;line-height:20px;font-weight:600;color:var(--white)}
.tp-pro{height:20px;padding:0 8px;border-radius:10px;background:#2B2212;color:#FBBF24;font-size:11px;line-height:20px;font-weight:600}

/* a channel and a role are buttons: under the pointer the row is a pill of its own, and a press opens its popup.
   A private channel carries a lock at the row's end. */
button.tp-c,button.tp-r{width:100%;margin:0;border:0;border-radius:10px;background:none;font:400 13px/20px "Inter",system-ui,sans-serif;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .12s var(--ease),color .12s var(--ease)}
button.tp-r{font-weight:500;color:#E5E5E5}
button.tp-c:hover,button.tp-r:hover{background:#171717;color:#F2F2F2}
button.tp-c:active,button.tp-r:active{background:#1C1C1C}
button.tp-c:focus-visible,button.tp-r:focus-visible{outline:2px solid #8B5CF6;outline-offset:-2px}
.tp-lock{flex:none;display:flex;margin-left:auto;padding:0 12px 0 8px;color:#6B6B6B}

/* the popup a channel, a role or a feature opens: centred over the dim, 440 wide, its words on the left edge */
.tp-popc.tp-infoc{position:relative;align-items:stretch;width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:28px;overflow-y:auto}
@media (hover:hover) and (pointer:fine){
  .tp-popc.tp-infoc{scrollbar-gutter:stable both-edges;padding-left:22px;padding-right:22px}   /* 22 + 6 = 28: a long popup and a short one put the words in the same place */
  .tp-popc.tp-infoc .tp-ix{right:22px}
  .tp-popc.tp-infoc::-webkit-scrollbar{width:6px}
  .tp-popc.tp-infoc::-webkit-scrollbar-track{background:transparent;margin:24px 0}
  .tp-popc.tp-infoc::-webkit-scrollbar-thumb{border-radius:3px;background:#333333}
  @supports not selector(::-webkit-scrollbar){ .tp-popc.tp-infoc{scrollbar-width:thin;scrollbar-color:#333333 transparent} }
}
.tp-ix{position:absolute;right:28px;top:28px;display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:16px;background:#262626;color:var(--soft);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),color .15s var(--ease),transform .12s var(--ease)}
.tp-ix:hover{background:#303030;color:#F2F2F2}
.tp-ix:active{transform:scale(.94)}
.tp-ix:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.tp-ih{display:flex;align-items:center;gap:12px;min-height:40px;padding-right:44px}
.tp-it{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#0A0A0A;color:var(--faint);font-size:18px;line-height:24px;font-weight:500}
.tp-it img{display:block}
.tp-it i{width:12px;height:12px;border-radius:50%}
.tp-infoc .tp-ih h2{min-width:0;margin:0;font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--white);text-align:left;overflow-wrap:anywhere}
.tp-ip{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.tp-il{margin:20px 0 0;font-size:12px;line-height:16px;font-weight:500;color:var(--faint)}
.tp-ih + .tp-ip + .tp-il,.tp-itx + .tp-il{margin-top:24px}
.tp-il + .tp-ip,.tp-il + .tp-msg,.tp-il + .tp-itx{margin-top:8px}
.tp-pl{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:28px;padding:0 12px;border-radius:14px;background:#262626;font-size:12px;line-height:16px;font-weight:500;color:#E5E5E5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-pl.tp-q{height:26px;border-radius:13px;color:var(--soft)}
.tp-pl s{flex:none;width:8px;height:8px;border-radius:50%}
.tp-pl i{display:flex;align-items:center;font-style:normal;font-size:13px;line-height:20px;color:#8A8A8A}
.tp-pl svg{flex:none}
.tp-itx{margin:0;font-size:14px;line-height:22px;color:var(--soft);overflow-wrap:anywhere;text-wrap:pretty}
.tp-itx.tp-first{margin-top:16px}
.tp-infoc .tp-msg{max-width:none}
.tp-infoc .tp-btns{gap:6px;margin-left:-48px}   /* the row starts under PeakBot's picture, so three buttons fit */
.tp-infoc .tp-btns span{height:30px;padding:0 10px;border-radius:15px;font-size:12px;line-height:16px}   /* a panel's three buttons keep one row in the popup */

/* what PeakBot posts, as Discord draws it (the site's message card) */
.tp-msg{display:grid;grid-template-columns:36px minmax(0,1fr);gap:0 12px;max-width:560px;padding:14px 16px 14px 14px;border-radius:12px;background:#0E0E0E}
.tp-msg > span{width:36px;height:36px;border-radius:50%;background:#000000;box-shadow:inset 0 0 0 1px #262626;display:grid;place-items:center}
.tp-msg > span img{display:block;width:20px;height:20px}
.tp-mh{display:flex;align-items:center;gap:6px;height:20px;font-size:14px;line-height:20px;font-weight:500;color:#F2F2F2;white-space:nowrap}
.tp-mh em{height:15px;padding:0 5px;border-radius:8px;background:#5865F2;color:#FFFFFF;font-style:normal;font-size:10px;line-height:15px;font-weight:600}
.tp-mh time{margin-left:2px;font-size:11px;line-height:16px;font-weight:400;color:var(--faint)}
.tp-msg .tp-mb{max-width:none;margin:2px 0 0;font-size:14px;line-height:22px;color:#E5E5E5}
.tp-msg .tp-mt{font-weight:600;color:#F2F2F2}
.tp-at{font-weight:500;color:#A5B4FC}
.tp-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tp-btns span{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;background:#1F1F1F;font-size:13px;line-height:18px;font-weight:500;color:#F2F2F2;white-space:nowrap}
.tp-btns img{display:block;width:14px;height:14px}

/* the phone's switch over the server (hidden on a computer, where both panes show) */
.tp-switch{display:none}

/* narrower windows: the template's column 300, then everything in one column on a phone */
@media (min-width:760px) and (max-width:1099px){
  .tp-two{grid-template-columns:300px minmax(0,1fr);gap:24px}
  .tp-moresec .tp-card:nth-child(n+3){display:none}   /* two cards a row: a third would sit on a row of its own */
}
/* A phone (Figma "Template page, phone" 7103:1907, "Roles picked" 7103:2219, "a channel opened" 7103:2252): one column
   20 in from each side; the name is the phone heading; the server is ONE pane with a switch over it, Channels | Roles
   (side by side, the roles were cut to "Master Buil..."); a list shows no thumb and fades at each end that has more;
   the popups are sheets at the foot of the screen. */
@media (max-width:759px){
  .tools.tpg{padding-top:96px}
  .tpg .tp-wrap{width:min(480px,calc(100vw - 40px))}
  .tp-two{grid-template-columns:minmax(0,1fr);gap:32px}
  .tpg h1{font-size:min(36px,calc((min(480px,100vw - 40px)) / 10.6));line-height:1.3333}
  .tp-server{display:flex;flex-direction:column;gap:8px;height:496px}
  .tp-switch{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:4px;height:44px}
  .tp-switch button{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;margin:0;padding:0 12px;border:0;border-radius:22px;background:none;color:var(--faint);font:600 13px/20px "Inter",system-ui,sans-serif;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),color .15s var(--ease)}
  .tp-switch span{min-width:22px;height:20px;padding:0 7px;border-radius:10px;background:#262626;font-size:12px;line-height:20px;font-weight:500;color:var(--soft);text-align:center;font-variant-numeric:tabular-nums;transition:background-color .15s var(--ease)}
  .tp-switch [aria-selected="true"]{background:#0A0A0A;color:#F2F2F2}
  .tp-switch [aria-selected="true"] span{background:#1C1C1C}
  .tp-switch button:focus-visible{outline:2px solid #8B5CF6;outline-offset:-2px}
  .tp-server .tp-pane{flex:1}
  .tp-server[data-pick="c"] .tp-pane + .tp-pane,.tp-server[data-pick="r"] .tp-switch + .tp-pane{display:none}
  .tp-ph{display:none}
  .tp-scroll{padding-top:10px;scrollbar-width:none}
  .tp-scroll::-webkit-scrollbar{display:none}
  .tp-scroll.tp-cut{-webkit-mask-image:linear-gradient(#000 calc(100% - 24px),transparent);mask-image:linear-gradient(#000 calc(100% - 24px),transparent)}
  .tp-scroll.tp-cutt{-webkit-mask-image:linear-gradient(transparent,#000 24px);mask-image:linear-gradient(transparent,#000 24px)}
  .tp-scroll.tp-cut.tp-cutt{-webkit-mask-image:linear-gradient(transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(transparent,#000 24px,#000 calc(100% - 24px),transparent)}
  .tp-pane .tp-c,.tp-pane .tp-r{height:40px}   /* a list's rows are 40 on a phone (Figma panes 7103:1907, 7103:2219) */
  .tp-pane .tp-fold{height:32px}
  .tp-tiles{--cols:2!important}   /* two a row; an odd one out fills its row */
  .tp-moresec{margin-top:48px}
  .tpg .tp-grid{gap:16px}
  /* the popups are sheets (the gallery's styles); a channel's, role's and feature's sheet keeps 24 inside */
  .tp-popc.tp-infoc{padding:24px}
  .tp-ix{right:24px;top:24px}
  .tp-ih{padding-right:40px}
  .tp-infoc .tp-ih h2{overflow-wrap:break-word}   /* a long name breaks between words, not inside one */
  .tp-ix::after{content:"";position:absolute;inset:-6px}   /* 32 drawn, 44 to the thumb */
}


@media (max-width:359px){
  .tp-infoc .tp-ih h2{font-size:18px;line-height:24px}   /* "announcements" fits its line on a 320 screen */
}

/* A maker's page (/templates/by/<id>, Figma 7361:1907 several, 7361:2334 one, its states 7361:2584): who they are, their counts as pills,
   then their templates as the gallery's own cards; a maker with one template has it as the gallery's Featured card. */
.tp-hby a{min-width:0;color:inherit;text-decoration:none;overflow:hidden;text-overflow:ellipsis;border-radius:6px}
.tp-hby a:hover b{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:#6B6B6B}
.tp-hby a:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.tpg .tp-trail b{min-width:0;font-weight:500;color:#F2F2F2;overflow:hidden;text-overflow:ellipsis}
.mk-name,.mk-list{min-width:0}
.mk-head{display:flex;align-items:center;gap:20px;margin-top:20px}
.mk-pic{flex:none;width:72px;height:72px;display:grid;place-items:center;border-radius:20px;background:#262626;font-size:28px;line-height:36px;font-weight:600;color:var(--white)}
.mk-name{flex:1;min-width:0}
.tpg .mk-name h1{margin:0;font-size:48px;line-height:56px;font-weight:500;letter-spacing:-.03em;overflow-wrap:anywhere}
.mk-pills{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0;padding:0;list-style:none}
.mk-pills li{height:32px;padding:0 12px;border-radius:16px;background:#1C1C1C;font-size:13px;line-height:32px;font-weight:500;color:var(--soft);white-space:nowrap}
.mk-pills b{margin-right:1px;font-weight:600;color:#F2F2F2;font-variant-numeric:tabular-nums}
.mk-btn{flex:none;height:40px;padding:0 16px;border-radius:20px;background:#262626;font-size:14px;line-height:40px;font-weight:500;color:var(--white);text-decoration:none;white-space:nowrap;transition:background-color .15s var(--ease)}
.mk-btn:hover{background:#2E2E2E}
.mk-btn:active{transform:scale(.97)}
.mk-btn:focus-visible{outline:2px solid #8B5CF6;outline-offset:3px}
.mk-list > .tp-head{margin:64px 0 24px}
.mk-list > .tp-head h2{overflow-wrap:anywhere}
.mk-list > .tp-feat{margin-top:0}
.mk-list .tp-feat h3{margin:20px 0 0;font-size:40px;line-height:48px;font-weight:600;letter-spacing:-.02em;color:var(--white);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mk-list .tp-grid[data-n="2"],.mk-list .tp-grid[data-n="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.mk-none{margin-top:64px;min-height:264px;box-sizing:border-box;padding:40px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:28px;background:#171717;box-shadow:inset 0 0 0 1px #262626;text-align:center}
.mk-none span{width:64px;height:64px;display:grid;place-items:center;border-radius:32px;background:#262626;color:var(--soft)}
.mk-none h2{margin:20px 0;font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.01em;color:var(--white)}
.mk-load{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:64px}
.mk-load i{height:376px;border-radius:28px;background:#171717;box-shadow:inset 0 0 0 1px #262626}
@media (prefers-reduced-motion:no-preference){.mk-load i{animation:mk-wait 1.4s ease-in-out infinite alternate}}
@keyframes mk-wait{to{opacity:.5}}
@media (max-width:759px){
  .mk-head{flex-wrap:wrap;gap:16px;margin-top:16px}
  .mk-pic{width:56px;height:56px;border-radius:16px;font-size:22px}
  .mk-name{flex:1 1 0}
  .tpg .mk-name h1{font-size:28px;line-height:36px}
  .mk-btn{flex:1 0 100%;height:44px;line-height:44px;border-radius:22px;text-align:center}
  .mk-list > .tp-head{margin:40px 0 20px}
  .mk-list .tp-feat h3{font-size:28px;line-height:36px}
  .mk-list .tp-grid[data-n="2"],.mk-list .tp-grid[data-n="4"],.mk-load{grid-template-columns:minmax(0,1fr)}
}

/* ---------- Use This Template: the flow after the button (plan docs/templates-apply-plan.md; Figma section
   "Use This Template flow" 7107:1907 on Website and ads). One popup that moves through its steps in place: a round
   Back left of the title where there is one, the round X top right, one button at the foot. A sheet on a phone.
   Comes after templates-page.css in templates/page.css (build_template_pages.py). ---------- */
.tp-pop .tp-popc.tp-usec{display:flex;flex-direction:column;align-items:stretch;width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;overflow:hidden}
.tu-in{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
.tu-body{flex:1 1 auto;min-height:0;padding:28px 28px 0;overflow-y:auto;overscroll-behavior:contain}
.tu-body:last-child{padding-bottom:28px}
.tu-body.tu-long{padding-bottom:24px}   /* the last thing in a long step keeps room above the foot */
.tu-body.tu-hasfoot.tu-more{-webkit-mask-image:linear-gradient(#000 calc(100% - 32px),transparent);mask-image:linear-gradient(#000 calc(100% - 32px),transparent)}
/* The scrollbar never moves the words (Lime, 12 Nov and 20 Nov): with a mouse, the body keeps the bar's room on BOTH
   sides, so a step that scrolls and one that does not put every word in the same place; 22 + 6 = the 28 of the frame.
   A slim drawn thumb that stays clear of the round corners. */
@media (hover:hover) and (pointer:fine){
  .tu-body{scrollbar-gutter:stable both-edges;padding-left:22px;padding-right:22px}
  .tu-body::-webkit-scrollbar{width:6px}
  .tu-body::-webkit-scrollbar-track{background:transparent;margin:16px 0}
  .tu-body::-webkit-scrollbar-thumb{border-radius:3px;background:#333333}
  .tu-body::-webkit-scrollbar-thumb:hover{background:#4D4D4D}
  @supports not selector(::-webkit-scrollbar){ .tu-body{scrollbar-width:thin;scrollbar-color:#333333 transparent} }
}
.tu-foot{flex:none;display:flex;flex-direction:column;gap:8px;padding:20px 28px 28px}
.tu-foot.tu-line{padding-top:16px;box-shadow:inset 0 1px 0 #2A2A2A}
.tu-head{display:flex;align-items:center;gap:12px;min-height:32px;margin-bottom:24px}
.tu-head h2{flex:1;min-width:0;margin:0;font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--white);text-align:left;overflow-wrap:break-word;text-wrap:balance}
.tu-round{position:relative;flex:none;display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:16px;background:#262626;color:var(--soft);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),color .15s var(--ease),transform .12s var(--ease)}
.tu-round::after{content:"";position:absolute;inset:-6px}
.tu-round:hover{background:#303030;color:#F2F2F2}
.tu-round:active{transform:scale(.94)}
.tu-round:focus-visible,.tu-choice:focus-visible,.tu-srv:focus-visible,.tu-feat:focus-visible,.tu-link:focus-visible,.tu-check:focus-within,.tu-go:focus-visible,.tu-star a:focus-visible{outline:2px solid #8B5CF6;outline-offset:2px}
.tu-head .tu-x{align-self:flex-start}
.tu-tile{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;align-self:flex-start;margin-top:-4px}
.tu-tile.tu-good{background:#0F2A1A;color:#4ADE80}
.tu-tile.tu-bad{background:#2A1416;color:#F87171}
.tu-spin{animation:tuSpin .9s linear infinite}
@keyframes tuSpin{to{transform:rotate(360deg)}}

/* step 1: two choices, then the template in pills */
.tu-choices{display:flex;flex-direction:column;gap:8px}
.tu-choice{display:flex;align-items:center;gap:16px;width:100%;height:72px;margin:0;padding:0 18px 0 16px;border:0;border-radius:20px;background:#242424;color:#F2F2F2;font:600 15px/20px "Inter",system-ui,sans-serif;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),transform .12s var(--ease),opacity .15s var(--ease)}
.tu-choice:hover{background:#2A2A2A}
.tu-choice:active{transform:scale(.98)}
.tu-choice:disabled{cursor:default;transform:none}
.tu-choice.tu-dim{opacity:.5}
.tu-choice > span{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#0A0A0A;color:#F2F2F2}
.tu-choice b{flex:1;min-width:0;font-weight:600}
.tu-choice > s{flex:none;display:flex;color:var(--faint)}
.tu-choice > s .tu-spin{color:#F2F2F2}
.tu-pills{display:flex;flex-wrap:wrap;gap:6px}
.tu-choices + .tu-pills{margin-top:16px}
.tu-pills .tp-pl{height:28px}
.tu-pills.tu-q .tp-pl{height:26px;border-radius:13px;color:var(--soft)}
.tu-pills .tp-pl.tu-old{background:#242424;color:var(--faint)}   /* #1F1F1F all but vanished on the popup's #1C1C1C */
.tu-pills .tp-pl.tu-new{background:#0F2A1A;color:#4ADE80}
.tu-pills .tp-pl img{display:block;width:14px;height:14px}
.tu-lab.tu-first{margin-top:0}
.tu-redwrap{display:flex;flex-direction:column}
.tu-redwrap[hidden]{display:none}
@media (prefers-reduced-motion:no-preference){ .tu-redwrap{animation:tuRed .26s cubic-bezier(.16,1,.3,1)} }
@keyframes tuRed{from{opacity:0;transform:translateY(-6px)}}

/* step 2: the servers */
.tu-note{display:flex;align-items:center;gap:10px;min-height:44px;margin-bottom:8px;padding:0 14px;border-radius:16px;background:#0A0A0A;font-size:13px;line-height:20px;color:var(--soft)}
.tu-note svg{flex:none;color:var(--faint)}
.tu-note.tu-warn{padding:12px 14px;align-items:flex-start;color:#FBBF24}
.tu-note.tu-warn svg{margin-top:2px;color:#FBBF24}
.tu-list{display:flex;flex-direction:column;gap:4px}
.tu-srv{display:flex;align-items:center;gap:12px;width:100%;height:56px;margin:0;padding:0 16px 0 12px;border:0;border-radius:16px;background:#242424;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),box-shadow .15s var(--ease),transform .12s var(--ease)}
.tu-srv:hover{background:#2A2A2A}
.tu-srv:active{transform:scale(.99)}
.tu-srv[aria-checked="true"]{background:#2E2E2E;box-shadow:inset 0 0 0 1px #3A3A3A}
.tu-pic{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:16px;background:#262626;font-size:12px;line-height:16px;font-weight:600;color:#F2F2F2;overflow:hidden}
.tu-pic img{display:block}
.tu-pic.tu-logo{background:#FFFFFF}   /* the template's own logo, as on the page */
.tu-pic.tu-ini{letter-spacing:.02em}   /* no picture: Discord's own look, the first letters of its words */
.tu-srv > div{flex:1;min-width:0}
.tu-srv b{display:block;font-size:14px;line-height:20px;font-weight:600;color:#F2F2F2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tu-srv small{display:flex;align-items:center;gap:8px;font-size:12px;line-height:20px;color:var(--faint)}
.tu-in-pill{height:20px;padding:0 12px;border-radius:10px;background:#0F2A1A;color:#4ADE80;font-size:12px;line-height:20px;font-weight:500;white-space:nowrap}
.tu-tick{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:10px;background:#F5F5F5;color:#0A0A0A;opacity:0;transform:scale(.6);transition:opacity .15s var(--ease),transform .2s var(--out)}
.tu-srv[aria-checked="true"] .tu-tick{opacity:1;transform:none}
.tu-link{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;margin:4px auto 0;padding:0 12px;border:0;border-radius:22px;background:none;color:var(--soft);font:500 13px/20px "Inter",system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .15s var(--ease)}
.tu-link:hover{color:#F2F2F2}
.tu-link:disabled{cursor:default}
.tu-foot .tu-link{margin-top:-4px}
.tu-empty{display:flex;flex-direction:column;align-items:center;padding:16px 0 32px;text-align:center}
.tu-empty > span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#0A0A0A;color:var(--faint)}
.tu-empty b{margin-top:16px;font-size:16px;line-height:24px;font-weight:600;color:#F2F2F2}
.tu-empty p{margin:4px 0 0;font-size:14px;line-height:20px;color:var(--soft)}
.tu-empty.tu-in-out{padding-bottom:20px}
.tu-dc{background:#5865F2!important;color:#FFFFFF!important}
.tu-dcg{display:flex;color:#5865F2}
.tu-empty .tp-btn{position:relative;width:auto;gap:8px;margin-top:20px}
.tu-empty .tp-btn::after{content:"";position:absolute;inset:-2px 0}   /* 40 drawn, 44 to the thumb */

/* step 3: the server and PeakBot side by side */
.tu-pair{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}
.tu-pair .tu-pic{width:56px;height:56px;border-radius:28px;font-size:18px;line-height:24px}
.tu-plus{display:grid;place-items:center;width:24px;height:24px;border-radius:12px;background:#262626;color:var(--soft)}
.tu-bot{display:grid;place-items:center;width:56px;height:56px;border-radius:28px;background:#000000;box-shadow:inset 0 0 0 1px #262626}
.tu-bot img{display:block;width:28px;height:28px}
.tu-say{margin:20px 0 0;font-size:14px;line-height:22px;color:var(--soft);text-align:center;text-wrap:pretty}

/* step 4: what gets added */
.tu-lab{margin:24px 0 8px;font-size:12px;line-height:16px;font-weight:500;color:var(--faint)}
.tu-feats{display:flex;flex-direction:column;gap:4px}
.tu-feat{display:flex;align-items:center;gap:12px;width:100%;height:48px;margin:0;padding:0 12px;border:0;border-radius:16px;background:#242424;color:#F2F2F2;font:600 14px/20px "Inter",system-ui,sans-serif;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),color .15s var(--ease)}
.tu-feat:hover{background:#2A2A2A}
.tu-feat img{flex:none;display:block;width:24px;height:24px;transition:opacity .15s var(--ease)}
.tu-feat b{flex:1;min-width:0;font-weight:600}
.tu-sw{position:relative;flex:none;width:36px;height:20px;border-radius:10px;background:#F5F5F5;transition:background-color .2s var(--ease)}
.tu-sw::after{content:"";position:absolute;left:18px;top:2px;width:16px;height:16px;border-radius:50%;background:#0A0A0A;transition:transform .2s var(--out),background-color .2s var(--ease)}
.tu-feat[aria-checked="false"]{color:#6B6B6B}
.tu-feat[aria-checked="false"] img{opacity:.4}
.tu-feat[aria-checked="false"] .tu-sw{background:#3A3A3A}
.tu-feat[aria-checked="false"] .tu-sw::after{transform:translateX(-16px);background:#8A8A8A}
.tu-win{max-height:196px;padding:10px 0 12px;border-radius:20px;background:#0A0A0A;overflow-y:auto;scrollbar-width:none}
.tu-win::-webkit-scrollbar{display:none}
.tu-win.tp-cut{-webkit-mask-image:linear-gradient(#000 calc(100% - 36px),transparent);mask-image:linear-gradient(#000 calc(100% - 36px),transparent)}
.tu-g{display:flex;align-items:center;gap:4px;height:22px;padding:0 12px;font-size:11px;line-height:16px;font-weight:500;color:var(--faint);white-space:nowrap;overflow:hidden}
.tu-g svg{flex:none}
.tu-c{display:flex;align-items:center;height:28px;padding:0 16px;font-size:13px;line-height:20px;color:var(--soft);white-space:nowrap;overflow:hidden}
.tu-c i{flex:none;display:flex;align-items:center;width:20px;font-style:normal;font-weight:500;color:#6B6B6B}
.tu-c b{min-width:0;font-weight:400;overflow:hidden;text-overflow:ellipsis}
.tu-none{margin:0;font-size:13px;line-height:20px;color:var(--faint)}
.tu-star{display:flex;align-items:center;gap:12px;min-height:52px;margin-top:24px;padding:8px 12px 8px 16px;border-radius:16px;background:#0A0A0A;font-size:13px;line-height:20px;color:var(--soft)}
.tu-star span{flex:1;min-width:0}
.tu-star a{position:relative;flex:none;display:flex;align-items:center;height:28px;padding:0 12px;border-radius:14px;background:#262626;color:#E5E5E5;font-size:12px;line-height:16px;font-weight:500;text-decoration:none;transition:background-color .15s var(--ease)}
.tu-star a:hover{background:#303030}
.tu-star a::after{content:"";position:absolute;inset:-8px 0}   /* 28 drawn, 44 to the thumb */
.tu-check{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;padding:0 14px;border-radius:14px;background:#242424;font-size:13px;line-height:20px;font-weight:500;color:#E5E5E5;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease)}
.tu-check:hover{background:#2A2A2A}
.tu-check input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.tu-box{flex:none;display:grid;place-items:center;width:18px;height:18px;border-radius:6px;background:#3A3A3A;color:transparent;transition:background-color .15s var(--ease),color .15s var(--ease)}
.tu-check input:checked + .tu-box{background:#F5F5F5;color:#0A0A0A}
.tu-check.tu-red{background:#2A1416;box-shadow:inset 0 0 0 1px #4A1D20}
.tu-check.tu-red:hover{background:#311719}
.tu-check.tu-red input:checked + .tu-box{background:#EF4444;color:#FFFFFF}
.tu-check em{font-style:normal;font-weight:600;color:#F87171}

/* the foot button: white, red when it deletes, a spinner while it waits */
.tu-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;margin:0;padding:0 20px;border:0;border-radius:24px;background:#F5F5F5;color:#0A0A0A;font:600 14px/20px "Inter",system-ui,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ease),opacity .15s var(--ease),transform .12s var(--ease)}
.tu-go:hover{background:#FFFFFF}
.tu-go:active{transform:scale(.98)}
.tu-go:disabled{background:#262626;color:#6B6B6B;cursor:default;transform:none}   /* asleep: grey on grey, not a faded white */
.tu-go.tu-wait:disabled{background:#F5F5F5;color:#0A0A0A}
.tu-go.tu-danger:disabled{background:#3A1A1C;color:#A85C5C}
.tu-go.tu-danger{background:#EF4444;color:#FFFFFF}
.tu-go.tu-danger:hover{background:#F25555}
.tu-go b{min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis}

/* step 5: working */
.tu-bar{height:8px;border-radius:4px;background:#262626;overflow:hidden}
.tu-bar i{display:block;height:100%;width:0;border-radius:4px;background:#F5F5F5;transition:width .5s var(--ease)}
.tu-pct{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:13px;line-height:20px;color:var(--faint);font-variant-numeric:tabular-nums}
.tu-pct b{font-weight:500;color:#F2F2F2}
.tu-pct span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tu-steps{margin:16px 0 0;padding:8px 0;border-radius:20px;background:#0A0A0A;list-style:none}
.tu-steps li{display:flex;align-items:center;gap:12px;height:36px;padding:0 14px;font-size:14px;line-height:20px;color:#6B6B6B}
.tu-steps li svg{flex:none}
.tu-steps li.tu-done{color:var(--faint)}
.tu-steps li.tu-done svg{color:#4ADE80}
.tu-steps li.tu-now{font-weight:600;color:#F2F2F2}
.tu-steps li.tu-next svg{color:#4D4D4D}
.tu-steps + .tu-pills{margin-top:20px}
.tu-errs{margin-top:16px;padding:12px 14px;border-radius:16px;background:#2A1416;font-size:13px;line-height:20px;color:#F87171}
.tu-warns{margin-top:24px;padding:12px 14px;border-radius:16px;background:#2B2212;font-size:13px;line-height:20px;color:#FBBF24}
.tu-errs p,.tu-warns p{margin:0}

/* step 7: failed */
.tu-why{margin:0;font-size:14px;line-height:22px;color:#E5E5E5;overflow-wrap:break-word}
.tu-why + .tu-why{margin-top:8px;color:var(--soft)}

@media (max-width:759px){
  .tp-pop .tp-popc.tp-usec{width:100%;max-height:calc(100dvh - 92px);padding:0}
  .tu-body{padding:24px 24px 0}
  .tu-body:last-child{padding-bottom:24px}
  .tu-foot{padding:20px 24px 24px}
  .tu-foot.tu-line{padding-top:16px}
}
@media (max-width:359px){
  .tu-head h2{font-size:18px;line-height:24px}
  .tu-choice{gap:12px;padding:0 14px 0 12px}
}
@media (prefers-reduced-motion:reduce){
  .tu-spin{animation-duration:2.4s}
}
