/* The tools page (2026-11-03, after Stripe's product boxes): six light boxes on a white page, each on
   the Stories ground (white with soft blobs of the brand's greens, its own pattern per box, in
   tools-art.css), with a picture of the tool that plays a short loop and runs off the box's edges. A
   green edge follows the pointer round the box; a box opens its tool's pop-up. Loaded after
   styles.css, which brings the tokens, the font, the nav and the footer. The examples are invented. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The page is white and the site's frame stays black (owner, 2026-11-03): the nav bar on top and the
   footer keep the dark tokens, and the page between them turns the shared tokens light. */
body.tools-page { background: #FFFFFF; }
.tools-page .nav, .tools-page .nav.scrolled { background: var(--bg); }
.tools-page .foot { background: var(--bg); }
.tools-page .tl { --ink-1: #0A0A09; --ink-2: #4A4E45; --ink-3: #6F746B; --line: rgba(10, 10, 9, .08); color: var(--ink-1); }

.tl { max-width: 1360px; margin: 0 auto; padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) var(--gutter) clamp(72px, 10vw, 140px); }
.tl-hero { max-width: 720px; margin: 0 0 clamp(48px, 7vw, 96px); }
.tl-eyebrow { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); }
.tl-hero h1 { margin: 0 0 18px; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.tl-lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* ---------- the boxes ---------- */
.tg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 22px); }
.tb {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate; min-height: 620px;
  padding: clamp(28px, 3vw, 44px); border-radius: 30px;
  background-color: #FFFFFF; color: #0A0A09; font-size: 13px; line-height: 18px;
  /* On the white page a box is held by a hairline and a soft shadow; aimed at, it glows (below). */
  box-shadow: 0 0 0 1px rgba(10, 10, 9, .07), 0 18px 50px -34px rgba(10, 10, 9, .22);
  transition: box-shadow 450ms var(--ease-out);
}
.tb-w7 { grid-column: span 7; }
.tb-w5 { grid-column: span 5; }
.tb-w4 { grid-column: span 4; }
.tb-w12 { grid-column: span 12; min-height: 540px; }
.tb-copy { position: relative; z-index: 2; max-width: 360px; }
.tb-w12 .tb-copy { max-width: 620px; }
.tb-n { margin: 0 0 12px; font-size: 13px; color: #5A5F55; }
.tb-name { margin: 0; padding-right: 44px; font-size: clamp(46px, 5vw, 74px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.tb-w4 .tb-name { font-size: clamp(38px, 3.7vw, 54px); }
.tb-sub { margin: 12px 0 0; max-width: 30ch; font-size: 15px; line-height: 1.45; color: #4A4E45; text-wrap: balance; }
.tb-open {
  position: absolute; z-index: 4; top: clamp(20px, 2.2vw, 28px); right: clamp(20px, 2.2vw, 28px); display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(10, 10, 9, .06); color: #0A0A09; cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}
.tb-open::after { content: ''; position: absolute; inset: -3000px; }
.tb-open .i { width: 18px; height: 18px; stroke-width: 1.8; }
.tb:hover .tb-open { background: #0A0A09; color: var(--lime); }
.tb-open:focus-visible { outline: none; }
/* Aimed at (pointer or keyboard), the box lifts on a soft shadow and a thin edge of the brand's light green
   (the logo's lime, never the dark green; owner, 2026-11-03) lights up where the pointer is (owner, 2026-11-03): a 1.5 px line, brightest at the pointer's
   nearest stretch of the edge and fading round the box, with a soft glow just inside it. It follows
   the pointer (js/tools.js sets --mx and --my); from the keyboard it lights the top. */
.tb:hover, .tb:has(.tb-open:focus-visible) {
  box-shadow: 0 0 0 1px rgba(10, 10, 9, .05), 0 40px 80px -36px rgba(40, 60, 0, .38), 0 18px 36px -24px rgba(10, 10, 9, .18);
}
.tb::before, .tb::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 400ms var(--ease-out);
}
/* The line. */
.tb::before {
  padding: 1.5px;
  background: radial-gradient(300px circle at var(--mx) var(--my), #F4FFB8 0%, #DFFF5E 22%, rgba(223, 255, 94, .75) 45%, rgba(223, 255, 94, 0) 78%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* The glow: the same light, a band that fades in from the edge. */
.tb::after {
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(223, 255, 94, .6) 0%, rgba(223, 255, 94, .3) 35%, rgba(223, 255, 94, 0) 75%);
  -webkit-mask: linear-gradient(90deg, #000, transparent 22px, transparent calc(100% - 22px), #000), linear-gradient(180deg, #000, transparent 22px, transparent calc(100% - 22px), #000);
  -webkit-mask-composite: source-over;
  mask: linear-gradient(90deg, #000, transparent 22px, transparent calc(100% - 22px), #000) add, linear-gradient(180deg, #000, transparent 22px, transparent calc(100% - 22px), #000);
}
.tb:hover::before, .tb:hover::after, .tb:has(.tb-open:focus-visible)::before, .tb:has(.tb-open:focus-visible)::after { opacity: 1; }
/* The scene: laid out per tile in tools-art.css, running off the tile's edges. */

/* A pop-up's large picture panel. */
.ta {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 300px; padding: 28px 20px; border-radius: 20px; overflow: hidden;
  background-color: #FFFFFF; color: #0A0A09; font-size: 13px; line-height: 18px;
}
.ta p { margin: 0; }
.ta .i { width: 15px; height: 15px; flex: none; }
.a-card {
  position: relative; width: min(100%, 320px); padding: 14px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid #E6E9DF;
  box-shadow: 0 1px 2px rgba(10, 10, 9, .05), 0 18px 36px -22px rgba(40, 60, 0, .4);
}
.a-k { margin-bottom: 6px !important; font-size: 11.5px; color: #6B7066; }
.a-av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 10px; font-weight: 600; color: #fff; }
.a-me { background: #0A0A09; color: var(--lime); }
.a-c1 { background: #E8737A; } .a-c2 { background: #6AA9C9; } .a-c3 { background: #E9A23B; } .a-c4 { background: #9C8ADE; }
.a-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid #EEF0E8; }
.a-head p { display: flex; flex-direction: column; min-width: 0; }
.a-head b { font-weight: 500; }
.a-head span { color: #6B7066; font-size: 12px; }
.a-head-s { padding-bottom: 8px; margin-bottom: 8px; border: 0; }
.a-head-s .a-av { width: 26px; height: 26px; font-size: 8px; }
.a-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; }
.a-row + .a-row { border-top: 1px solid #EEF0E8; }
.a-row > span { font-size: 12px; color: #6B7066; }
.a-row b { font-weight: 500; }
.a-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.a-chips i { font-style: normal; padding: 2px 9px; border-radius: 999px; border: 1px solid #E3E6DC; background: #fff; font-size: 12px; }
.a-chips i.on { background: #E9F9A0; border-color: #CFE57A; }
.a-quote { font-size: 15px; line-height: 21px; letter-spacing: -.01em; }
.a-ok { display: flex; align-items: center; gap: 6px; margin-top: 10px !important; font-size: 12px; color: #3F5600; }

/* Brand: the brief, and how you sound, overlapping. */
.ta-brand { flex-direction: row; align-items: center; gap: 0; }
.a-brief { width: 330px; }
.a-voice { width: 230px; margin: 110px 0 0 -36px; }
.ta-lg.ta-brand .a-brief { width: min(100%, 380px); }
.ta-lg.ta-brand .a-voice { width: 250px; }

/* Content: the switches. */
.a-camps { width: 290px; padding: 12px 14px; }
.a-seg { display: flex; padding: 3px; margin-bottom: 6px !important; border-radius: 999px; background: #F1F3EC; font-size: 12px; }
.a-seg span { flex: 1; padding: 5px 0; border-radius: 999px; text-align: center; color: #6B7066; }
.a-seg .on { background: #FFFFFF; color: #0A0A09; box-shadow: 0 1px 2px rgba(10, 10, 9, .1); }
.a-camp { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 9px 2px; }
.a-camp + .a-camp { border-top: 1px solid #EEF0E8; }
.a-camp b { font-weight: 500; }
.a-camp span { font-size: 12px; color: #6B7066; }
.a-sw { position: relative; width: 30px; height: 18px; border-radius: 999px; background: #DADDD3; }
.a-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.a-sw.on { background: #0A0A09; }
.a-sw.on::after { left: 14px; background: var(--lime); }

/* Leads and Customer support: a post, and the reply under it. */
.a-watch { display: flex; align-items: center; gap: 7px; width: min(100%, 320px); font-size: 12px; color: #4A4E45; }
.a-watch i { font-style: normal; padding: 2px 9px; border-radius: 999px; border: 1px solid #E3E6DC; background: #fff; }
.a-live { width: 7px; height: 7px; border-radius: 50%; background: #7FA600; box-shadow: 0 0 0 3px rgba(127, 166, 0, .18); }
.a-post { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.a-ph { padding-right: 64px; font-size: 12px; }
.a-ph b { font-weight: 600; }
.a-ph span { color: #6B7066; }
.a-at { color: #1D9BF0; }
.a-tag { position: absolute; top: 12px; right: 12px; padding: 1px 8px; border-radius: 999px; background: var(--lime); font-size: 11px; }
.a-reply { width: min(100% - 24px, 296px); margin-left: 24px; border-color: #D3E39A; }
.a-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px !important; padding-top: 8px; border-top: 1px solid #EEF0E8; font-size: 11.5px; color: #6B7066; }
.a-btn { padding: 4px 11px; border-radius: 999px; background: #0A0A09; color: #fff; font-weight: 500; }
.a-btn-soft { background: var(--lime); color: #0A0A09; }
.a-done { display: flex; align-items: center; gap: 5px; color: #3F5600; }

/* Studio: three pieces become a post. */
.a-pieces { display: flex; gap: 8px; }
.a-pieces span { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #E6E9DF; box-shadow: 0 8px 18px -12px rgba(40, 60, 0, .4); font-size: 12px; }
.a-pieces + .a-card { margin-top: 18px; }
.a-pieces + .a-card::before { content: ''; position: absolute; left: 50%; top: -19px; height: 18px; border-left: 1.5px dashed #9DB33A; }
.a-draft { width: 280px; }
.a-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 10px !important; padding: 10px; border-radius: 8px; background: #0A0A09; }
.a-bars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(223, 255, 94, .35); }
.a-bars i:nth-child(1) { height: 34%; } .a-bars i:nth-child(2) { height: 50%; } .a-bars i:nth-child(3) { height: 68%; } .a-bars i:nth-child(4) { height: 94%; background: var(--lime); }

/* Content's pop-up: the six campaigns by kind. */
.a-groups { width: min(100%, 460px) !important; padding: 6px 18px; }
.a-g { padding: 12px 0; }
.a-g + .a-g { border-top: 1px solid #EEF0E8; }
.a-gi { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.a-gi b { font-weight: 500; }
.a-gi span { color: #5A5F55; }

/* Bragifer in X: the chat, in X's light look. */
.a-chat { display: flex; flex-direction: column; gap: 6px; width: min(100%, 380px); padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #E6E9DF; box-shadow: 0 18px 36px -22px rgba(40, 60, 0, .4); }
.a-bub { max-width: 82%; padding: 8px 13px; border-radius: 18px; font-size: 13px; line-height: 18px; }
.a-me-b { align-self: flex-end; background: #1D9BF0; color: #fff; border-bottom-right-radius: 6px; }
.a-them { align-self: flex-start; background: #EFF3F4; color: #0F1419; border-bottom-left-radius: 6px; }
.a-share { display: block; margin-bottom: 5px; padding: 6px 9px; border-radius: 11px; background: rgba(0, 0, 0, .16); font-size: 12px; line-height: 16px; }

/* ---------- the pop-ups ---------- */
html.tm-open { overflow: hidden; }
/* Locking the page must not shift it where scrollbars take room (Windows). */
html:has(body.tools-page) { scrollbar-gutter: stable; }
.tm {
  --tm-pad: clamp(28px, 4.4vw, 64px);
  width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 48px); margin: auto; padding: var(--tm-pad);
  border: 0; border-radius: 28px; background: #FFFFFF; color: #0A0A09;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(10, 10, 9, .2) transparent;
}
.tm::backdrop { background: rgba(5, 5, 4, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tools-js .tm[open]::backdrop { animation: tm-fade 360ms ease both; }
@keyframes tm-fade { from { opacity: 0; } }
/* The close button stays in the pop-up's top right corner while its content scrolls (sticky, and
   taking no room: the negative bottom margin gives its height back). */
.tm-close {
  position: sticky; z-index: 5; top: calc(16px - var(--tm-pad)); display: grid; place-items: center;
  margin: calc(16px - var(--tm-pad)) calc(16px - var(--tm-pad)) -40px auto;
  width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(10, 10, 9, .06); color: #0A0A09; cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}
.tm-close:hover { background: #0A0A09; color: var(--lime); }
.tm-close .i { width: 18px; height: 18px; stroke-width: 1.8; }
.tm-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tm .tb-n { color: #5A5F55; }
.tm-copy h2 { margin: 0 0 18px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; text-wrap: balance; }
.tm-lede { margin: 0; font-size: 18px; line-height: 1.6; color: #4A4E45; text-wrap: pretty; }
.tm-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.tm-ctas .btn-lime { background: #0A0A09; color: var(--lime); }
.tm-ctas .btn-ghost { color: #0A0A09; border-color: #D5DACB; box-shadow: none; }
.tm-ctas .btn-ghost:hover { border-color: #C2C9B6; background: transparent; }
.tm-points { list-style: none; margin: 0; padding: clamp(0px, 4vw, 60px) 0 0; display: grid; gap: 16px; }
.tm-points li { display: flex; gap: 12px; font-size: 16.5px; line-height: 1.45; color: #0A0A09; }
.tm-points .i { width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: #E9F9A0; color: #3F5600; stroke-width: 2.4; flex: none; }
.tm-media { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: clamp(40px, 5vw, 64px); align-items: stretch; }
.tm-media-wide { grid-template-columns: 1fr; }
.tm-media-wide .tm-facts { grid-template-columns: 1fr 1fr; }
.tm-media > .ta { margin: 0; min-height: 420px; border: 1px solid #EEF0E8; }
.ta-lg .a-card { width: min(100%, 420px); }
.ta-lg .a-brief { width: min(100%, 400px); }
.tm-scene, .tm-film { margin: 0; display: grid; place-items: center; padding: clamp(20px, 3vw, 36px); border-radius: 20px; background-color: #FFFFFF; }
.tm-wide { padding: clamp(16px, 2vw, 24px); }
.tm-scene, .tm-film { border: 1px solid #EEF0E8; }
.tm-scene .sd { width: 100%; max-width: 500px; }
.tm-film .ex-video { display: block; width: 100%; max-width: 500px; height: auto; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--lime); object-fit: cover; }
.tm-wide .ex-video { max-width: none; aspect-ratio: 16 / 9; }
.tm-facts { display: grid; gap: 20px; align-content: stretch; }
.tm-fact {
  display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 180px; padding: clamp(24px, 3vw, 36px); border-radius: 20px;
  background-color: #FFFFFF; border: 1px solid #EEF0E8; color: #0A0A09;
}
.tm-fact p { margin: 0; font-size: 15px; line-height: 1.5; color: #3A3E35; }
.tm-fact .tm-fact-n { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; color: #0A0A09; }

/* Arrivals: the boxes rise in once as they come into view (js/tools.js), never with ?motion=off. */
.tools-js .tb { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), box-shadow 450ms var(--ease-out); }
.tools-js .tb.is-in { opacity: 1; transform: none; }

/* Studio: a small Studio board on the same lime stage as the Bragifer in X film. You write a note, add
   a link and drop an image, press Write post, and the post is drafted word by word (js/studio-demo.js).
   The board is laid out 440 by 470 units and scales with its width; without motion it shows the end. */
.sd { padding: 22px 18px 18px; border-radius: 18px; background: var(--lime); color: #0A0A09; }
.sd-cap { position: relative; height: 30px; margin: 0 0 14px; text-align: center; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -.01em; }
.sd-cap span { position: absolute; inset: 0; }
.sd-cap-b { opacity: 0; }
html:not(.tools-js) .sd-cap-a { opacity: 0; }
html:not(.tools-js) .sd-cap-b { opacity: 1; }
.sd-wrap { container-type: inline-size; }
.sd-board {
  --u: calc(100cqw / 440);
  position: relative; aspect-ratio: 440 / 470; overflow: hidden; border-radius: calc(16 * var(--u));
  background: #FFFFFF radial-gradient(rgba(10, 10, 9, .11) calc(1 * var(--u)), transparent calc(1.4 * var(--u))) 0 0 / calc(16 * var(--u)) calc(16 * var(--u));
  box-shadow: 0 1px 2px rgba(10, 10, 9, .08), 0 24px 48px -28px rgba(40, 60, 0, .45);
  font-size: calc(11.5 * var(--u)); line-height: calc(16 * var(--u));
}
.sd .i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); flex: none; }
.sd-card {
  position: absolute; width: calc(196 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u));
  border-radius: calc(12 * var(--u)); background: #FFFFFF; border: 1px solid #E3E6DC;
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) calc(-10 * var(--u)) rgba(10, 10, 9, .22);
}
.sd-card p { margin: 0; }
.sd-k { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-bottom: calc(6 * var(--u)) !important; font-size: calc(10 * var(--u)); color: #6B7066; }
.sd-note { left: calc(16 * var(--u)); top: calc(16 * var(--u)); }
.sd-type { min-height: calc(32 * var(--u)); }
.sd-link { left: calc(16 * var(--u)); top: calc(118 * var(--u)); }
.sd-link-t { font-weight: 500; }
.sd-link-d { margin-top: calc(3 * var(--u)) !important; color: #6B7066; }
.sd-img { left: calc(16 * var(--u)); top: calc(246 * var(--u)); }
.sd-post { left: calc(228 * var(--u)); top: calc(30 * var(--u)); border-color: #C9D97A; }
.sd-post-h { display: flex; align-items: center; gap: calc(8 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.sd-post-h p { font-size: calc(11 * var(--u)); }
.sd-post-h span { color: #6B7066; }
.sd-av { display: grid; place-items: center; flex: none; width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; background: #0A0A09; color: var(--lime); font-size: calc(8 * var(--u)); font-weight: 700; }
.sd-words .w { display: inline-block; }
.sd-post-f { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: calc(10 * var(--u)); padding-top: calc(8 * var(--u)); border-top: 1px solid #ECEEE7; font-size: calc(10 * var(--u)); color: #6B7066; }
.sd-ok { position: absolute; left: 0; color: #3F5600; opacity: 0; }
.sd-approve { padding: calc(4 * var(--u)) calc(11 * var(--u)); border-radius: 999px; background: var(--lime); color: #0A0A09; font-weight: 500; }

/* A drawn picture: a small bar chart, the bars rising to 9 of 10. */
.sd-chart { position: relative; height: calc(96 * var(--u)); display: flex; align-items: flex-end; gap: calc(8 * var(--u)); padding: calc(28 * var(--u)) calc(10 * var(--u)) calc(8 * var(--u)); border-radius: calc(8 * var(--u)); background: #0A0A09; }
.sd-chart p { position: absolute; left: calc(10 * var(--u)); top: calc(7 * var(--u)); color: #E7E9EA; font-size: calc(10 * var(--u)); }
.sd-chart p b { color: var(--lime); font-weight: 600; }
.sd-chart span { flex: 1; border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; background: rgba(223, 255, 94, .35); transform-origin: 50% 100%; }
.sd-chart .b1 { height: 34%; } .sd-chart .b2 { height: 48%; } .sd-chart .b3 { height: 66%; } .sd-chart .b4 { height: 92%; background: var(--lime); }
.sd-chart-s { height: calc(70 * var(--u)); margin-top: calc(9 * var(--u)); padding-top: calc(24 * var(--u)); }

.sd-threads { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #9DB33A; stroke-width: 1.4; stroke-dasharray: 3 4; }
.sd-dock {
  position: absolute; left: 50%; bottom: calc(14 * var(--u)); transform: translateX(-50%);
  display: flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(5 * var(--u));
  border-radius: 999px; background: #FFFFFF; border: 1px solid #E3E6DC; box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) calc(-10 * var(--u)) rgba(10, 10, 9, .25);
  white-space: nowrap; font-size: calc(10.5 * var(--u));
}
.sd-btn { display: flex; align-items: center; gap: calc(5 * var(--u)); padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 999px; color: #2A2D27; }
.sd-btn.is-press { background: #EEF0E8; }
.sd-write { position: relative; display: grid; place-items: center; margin-left: calc(4 * var(--u)); padding: calc(5 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: #0A0A09; color: #FFFFFF; font-weight: 500; }
.sd-write > * { grid-area: 1 / 1; }
.sd-dots { display: flex; gap: calc(4 * var(--u)); opacity: 0; }
.sd-dots i { width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: 50%; background: var(--lime); }
.sd-write.is-busy .sd-write-t { opacity: 0; }
.sd-write.is-busy .sd-dots { opacity: 1; }
.sd-write.is-busy .sd-dots i { animation: sd-wave 900ms ease-in-out infinite; }
.sd-write.is-busy .sd-dots i:nth-child(2) { animation-delay: 120ms; }
.sd-write.is-busy .sd-dots i:nth-child(3) { animation-delay: 240ms; }
@keyframes sd-wave { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(calc(-3 * var(--u))); } }
.sd-cursor { position: absolute; left: 0; top: 0; width: calc(20 * var(--u)); height: calc(20 * var(--u)); fill: #0A0A09; stroke: #FFFFFF; stroke-width: 1.4; stroke-linejoin: round; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.studio-live .sd-cursor { opacity: 1; }

/* Customer support: the same stage and board as Studio, three captions, the inbox in X's light look
   (js/inbox-demos.js). The stylesheet holds each scene's end, which is what shows without
   motion; the script sets the start and plays to it. */
.sd-cap-c { opacity: 0; }
.sd-board[data-demo="support"] { aspect-ratio: 440 / 390; }
html:not(.tools-js) .sd-cap3 .sd-cap-b { opacity: 0; }
html:not(.tools-js) .sd-cap3 .sd-cap-c { opacity: 1; }
html:not(.tools-js) .sd-live-only { display: none; }
.sd-board .sd-av.c1 { background: #E8737A; color: #fff; }
.sd-board .sd-av.c2 { background: #6AA9C9; color: #fff; }
.sd-board .sd-av.c3 { background: #E9A23B; color: #fff; }
.ib-tabs { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); top: calc(14 * var(--u)); display: flex; align-items: center; gap: calc(7 * var(--u)); font-size: calc(10.5 * var(--u)); color: #2A2D27; }
.ib-tabs { gap: calc(16 * var(--u)); padding-bottom: calc(8 * var(--u)); border-bottom: 1px solid #E3E6DC; color: #6B7066; }
.ib-tabs .on { position: relative; color: #0A0A09; font-weight: 500; }
.ib-tabs .on::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(-9 * var(--u)); height: calc(2 * var(--u)); border-radius: 2px; background: #0A0A09; }
.ib-n { display: inline-block; min-width: calc(15 * var(--u)); margin-left: calc(3 * var(--u)); padding: 0 calc(4 * var(--u)); border-radius: 999px; background: #EEF0E8; font-style: normal; font-size: calc(9 * var(--u)); text-align: center; color: #2A2D27; }

/* A post on the board. */
.dp {
  position: absolute; left: calc(16 * var(--u)); width: calc(408 * var(--u)); display: grid; grid-template-columns: calc(28 * var(--u)) minmax(0, 1fr); gap: calc(9 * var(--u));
  padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff; border: 1px solid #E3E6DC;
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) calc(-10 * var(--u)) rgba(10, 10, 9, .22);
}
.dp p { margin: 0; }
.dp .sd-av { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.dp-h { margin-bottom: calc(2 * var(--u)) !important; padding-right: calc(70 * var(--u)); font-size: calc(11 * var(--u)); }
.dp-h span, .dp-to { color: #6B7066; }
.dp-to { font-size: calc(10.5 * var(--u)); }
.dp-to span, .dp-url { color: #1D9BF0; }
.dp-tag { position: absolute; right: calc(10 * var(--u)); top: calc(9 * var(--u)); padding: calc(2 * var(--u)) calc(8 * var(--u)); border-radius: 999px; font-size: calc(9.5 * var(--u)); }
.dp-tag.fit { background: var(--lime); color: #0A0A09; }
.dp-tag.no { background: #EEF0E8; color: #6B7066; }
.dp-like { display: flex; align-items: center; gap: calc(4 * var(--u)); margin-top: calc(5 * var(--u)) !important; color: #F91880; font-size: calc(10 * var(--u)); }
.dp-like .i { fill: currentColor; stroke: none; width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.dp-draft { left: calc(16 * var(--u)); width: calc(408 * var(--u)); border-color: #C9D97A; }




.dp-maya { top: calc(56 * var(--u)); }
.sp-busy { position: absolute; left: calc(16 * var(--u)); top: calc(140 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); margin: 0; color: #6B7066; font-size: calc(10.5 * var(--u)); }
.sp-busy .sd-dots { opacity: 1; }
.sp-busy .sd-dots i { background: #0A0A09; animation: sd-wave 900ms ease-in-out infinite; }
.sp-busy .sd-dots i:nth-child(2) { animation-delay: 120ms; }
.sp-busy .sd-dots i:nth-child(3) { animation-delay: 240ms; }
.sp-draft { top: calc(132 * var(--u)); }
.sp-done { color: #3F5600; }
.tools-js .sp-done { position: absolute; left: 0; }
.dp-back { top: calc(270 * var(--u)); left: calc(40 * var(--u)); width: calc(384 * var(--u)); }

/* ---------- close ---------- */
.end-product {
  min-height: 70svh; justify-content: center; padding-bottom: clamp(96px, 16svh, 160px);
  background: var(--lime); color: var(--on-lime);
  box-shadow: 0 0 0 100vmax var(--lime); clip-path: inset(0 -100vmax);
}
.end-product :focus-visible { outline-color: var(--on-lime); }

/* ---------- narrow windows and phones ---------- */
@media (max-width: 1023px) {
  .tb-w7, .tb-w5 { grid-column: span 12; }
  .tb-w4 { grid-column: span 6; }
  #brand { grid-column: span 12; }
}
@media (max-width: 899px) {
  .tm-top, .tm-media { grid-template-columns: 1fr; }
  .tm-media-wide .tm-facts { grid-template-columns: 1fr; }
  .tm-points { padding-top: 0; }
  .tb-w12 { min-height: 660px; }
}
@media (max-width: 679px) {
  .tb, .tb-w4, .tb-w12 { grid-column: span 12; min-height: 540px; }
  .tb-w12 { min-height: 640px; }
  .tm { width: calc(100vw - 16px); max-height: calc(100svh - 16px); border-radius: 22px; }
  .tm-media > .ta { min-height: 340px; }
  .ta-brand { flex-direction: column; }
  .ta-brand .a-voice { width: min(100%, 300px); margin: -10px 0 0 40px; }
  .ta-brand .a-brief { width: min(100%, 320px); }
  .tm-fact { min-height: 0; }
}
