/* The site toolbar (design/site-header-v1/header.css, Anurag 2026-09-28): the home page, every
   page of the site and the app's pages around a book. The app imports it (shell.js); the site
   build copies it to /toolbar.css (build.mjs) and every page links it (layout.mjs). Every colour
   is a token from design.css, which the site and the app both load, so it follows light and dark alike.
   One bar for every page (docs/decisions/2026-10-25-one-design-system-and-header.md): it adapts
   by kind (shell.js barKind) and by width, 720 and 1280 (decision 7).
   kinds    the door (.tj-slim) hides Create a book; every other bar has it. The home page's
            sections are a visitor's alone (decision 10): never on the door, never signed in.
   desktop  >= 1280: a visitor's sections in the bar, beside the menu
   tablet   721 - 1279: the sections are in the menu; every action stays in the bar
   phone    <= 720: logo, Sign in or the bookshelf, New book, menu; Free Books is in the menu
            (decision 5); the menu and the card are sheets from the bottom
   The menu (decisions 6 and 10), at every width: the account, My Bookshelf, a visitor's sections,
   Pricing, FAQ, Free Books, Dark mode, Sign out. */

.tj-bar { top: env(safe-area-inset-top, 0px); z-index: 30; gap: 20px; }
.tj-bar .sitenav { gap: 26px; }
.tj-bar[data-auth="out"] [data-in],
.tj-bar[data-auth="in"] [data-out] { display: none !important; }

.tj-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.tj-bar svg, .tj-sheet svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.tj-bar .logomark { width: auto; }

/* The bar's buttons are the one button (design.css). A bare one is an icon or a word with no edge;
   .line is the plain one; Create a book is the main action. */
:is(.tj-acts > .tj-btn, .tj-acts > .tj-drop > .tj-btn):not(.main, .cream, .glass, .line, .danger, .play) { background: transparent; border-color: transparent; }
:is(.tj-acts > .tj-btn, .tj-acts > .tj-drop > .tj-btn):not(.main, .cream, .glass, .line, .danger, .play):hover { background: var(--sunk); }
.tj-acts .tj-btn[aria-expanded="true"] { background: var(--accent-pale); border-color: var(--accent-lift); color: var(--accent-dark); }
.tj-bar .tj-caret { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
[aria-expanded="true"] > .tj-caret { transform: rotate(180deg); }
/* The bar's icon buttons (the bookshelf, the menu): 44px squares with 12px corners; open, a gold
   edge, and the menu's three lines become its ✕ (the approved boards). */
.tj-acts :is(.tj-icon, .tj-menu) { width: var(--touch, 44px); height: var(--touch, 44px); min-height: var(--touch, 44px); padding: 0; justify-content: center; border-radius: var(--radius-12); border: 1.5px solid transparent; }
.tj-menu svg + svg, .tj-menu[aria-expanded="true"] svg:first-child { display: none; }
.tj-menu[aria-expanded="true"] svg + svg { display: block; }
.tj-bar .tj-icon svg { width: 20px; height: 20px; }
/* My Bookshelf's icon: Anurag's 3D shelf (20 October 2026), web/public/brand/bookshelf.webp. */
.tj-bar .tj-icon .tj-shelf-i { width: 26px; height: 26px; display: block; }
.tj-bar .tj-menu svg { width: 22px; height: 22px; stroke-width: 2; }

.tj-bar .tj-new { flex-shrink: 0; }
.tj-new .short { display: none; }

:is(.tj-btn, .tj-wide, .tj-book):focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- the two dropdowns ---------- */
.tj-drop { position: relative; }
.tj-pop {
  position: absolute; top: calc(100% + 12px); right: 0; width: 360px; z-index: 40;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-float, 0 18px 48px rgba(28, 36, 38, .14)); padding: 16px;
  display: grid; gap: 14px; transform-origin: top right; animation: tjpop .16s ease-out; text-align: left;
}
.tj-pop[hidden] { display: none; }
@keyframes tjpop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.tj-pop-h { margin: 0; font: 600 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.tj-books { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tj-book {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 8px;
  margin: 0 -8px; border-radius: var(--r-control); color: var(--ink); text-decoration: none;
}
.tj-book:hover { background: var(--accent-pale); }
/* a cover on its way (img-retry.js): the drawing-board colour, never a blank box */
.tj-book img { background: var(--artwell); }
.tj-book img, .tj-nocover { width: 76px; height: 50px; object-fit: cover; border-radius: 7px; box-shadow: var(--shadow-book); display: block; }
/* The whole cover, its title at the foot included: the cover keeps its own shape inside the 76px
   column instead of being cut to a wide strip (Anurag, 29 Oct 2026). */
.tj-book img { width: auto; height: auto; max-width: 76px; max-height: 76px; justify-self: center; }
.tj-nocover { background: var(--artwell); display: grid; place-items: center; text-align: center; font-size: 11px; line-height: 1.2; color: var(--muted); padding: 2px; box-sizing: border-box; }
.tj-book b { display: block; font: 600 15px/1.25 var(--body); }
.tj-book span:not(.tj-steps):not(.tj-nocover) { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.tj-book .ready { color: var(--accent); font-weight: 600; }
/* the › at the end of a row that opens somewhere */
.tj-next { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Orders & receipts as a row: its icon, the words, the › at the far end */
.tj-wide.tj-go { justify-content: flex-start; padding: 0 14px; }
.tj-wide.tj-go .tj-next { margin-left: auto; }
.tj-steps { display: flex; gap: 3px; margin-top: 6px; }
.tj-steps i { height: 4px; width: 22px; border-radius: 2px; background: var(--line); }
.tj-steps i.on { background: var(--accent); }
/* The books are on their way: three rows in the shape of a book row, with a slow shimmer. */
.tj-skel .tj-book { pointer-events: none; }
.tj-skel .tj-book:hover { background: none; }
/* Same blocks and shimmer as the "Assemble your heroes" blanks (character.css), with the tokens
   defined here because the site pages that carry this toolbar do not load character.css. The
   shimmer runs always, reduced motion included, as it does there: a still skeleton reads as empty. */
.tj-pop { --tj-blank: #EFE9DE; --tj-blank-shape: #E3DACB; --tj-shimmer: rgba(255, 255, 255, .75); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tj-pop { --tj-blank: #2A2824; --tj-blank-shape: #34312C; --tj-shimmer: rgba(255, 255, 255, .07); }
}
:root[data-theme="dark"] .tj-pop { --tj-blank: #2A2824; --tj-blank-shape: #34312C; --tj-shimmer: rgba(255, 255, 255, .07); }
.tj-sk-l { display: block; height: 11px; width: 80%; border-radius: 6px; }
.tj-sk-l + .tj-sk-l { margin-top: 9px; }
.tj-sk-l.short { width: 50%; height: 9px; }
.tj-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tj-skel .tj-nocover, .tj-sk-l {
  background-color: var(--tj-blank-shape);
  background-image: linear-gradient(100deg, transparent 30%, var(--tj-shimmer) 50%, transparent 70%);
  background-size: 250% 100%; background-repeat: no-repeat; animation: tjshimmer 1.8s ease-in-out infinite;
}
@keyframes tjshimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tj-empty { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tj-err { margin: 0; color: var(--warn); font-size: 14px; line-height: 1.5; }
.tj-err[hidden] { display: none; }

/* A row in a sheet or the menu: the one button's height, corners and words (design.css), stretched. */
.tj-wide {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: var(--button-h);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--ink); font: var(--button-font); cursor: pointer; text-decoration: none;
}
.tj-wide:hover { background: var(--sunk); color: var(--ink); }
/* The sheet's one main action (Create a new book): black, like .tj-btn.main. It is not a .tj-btn
   because it hangs inside the dark bar, whose .tj-btn rules are for the bar's own buttons. */
.tj-wide.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tj-wide.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); color: var(--on-ink); }
/* The menu's Dark mode switch (theme.js): the whole row is the switch, the track at its end. */
.tj-sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: var(--radius-pill); background: var(--line-strong); transition: background .15s; }
.tj-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: var(--radius-pill); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.tj-m-theme[aria-checked="true"] .tj-sw { background: var(--accent); }
.tj-m-theme[aria-checked="true"] .tj-sw::after { transform: translateX(16px); }
.tj-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tj-row1 { display: grid; }

/* ---------- the account's links under My Bookshelf (toolbar.js accountLinks) ---------- */
.tj-admin { border-top: 1px solid var(--rule); padding-top: 12px; }
.tj-admin .tj-wide { justify-content: flex-start; padding: 0 14px; border-style: dashed; color: var(--purple-dark); }
:root[data-theme="dark"] .tj-admin .tj-wide { color: var(--purple-tint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tj-admin .tj-wide { color: var(--purple-tint); } }
.tj-admin .tj-wide small { margin-left: auto; font-weight: 500; color: var(--muted); font-size: var(--text-12); }

/* ---------- the menu (the approved boards Main, Visitor and Phone, Anurag 26 October 2026) ----------
   A card under the menu button on a computer, a sheet from the bottom on a phone. Rows of an
   icon, the words and a chevron; hairline rules between the groups. */
.tj-menupanel {
  position: absolute; top: calc(100% + 10px); right: 20px; width: 340px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-20);
  box-shadow: var(--shadow-float, 0 18px 48px rgba(28, 36, 38, .14)); padding: 10px;
  display: flex; flex-direction: column; animation: tjpop .16s ease-out; text-align: left;
}
.tj-menupanel[hidden] { display: none; }
.tj-m-head { display: none; align-items: center; justify-content: space-between; padding: 4px 4px 6px 12px; font: 700 var(--text-16)/1.2 var(--body); }
.tj-m-head .tj-m-close { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.tj-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 0 12px;
  border: 0; border-radius: var(--radius-12); background: transparent; color: var(--ink);
  font: 500 var(--text-16)/1.2 var(--body); text-decoration: none; text-align: left; cursor: pointer;
}
.tj-row:hover { background: var(--sunk); color: var(--ink); }
.tj-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tj-menupanel .tj-row svg { width: 20px; height: 20px; color: var(--muted); stroke-width: 1.8; }
.tj-menupanel .tj-row:hover svg { color: var(--ink); }
.tj-menupanel .tj-row svg.go { width: 16px; height: 16px; color: var(--faint); stroke-width: 2; }
.tj-row .lbl { flex: 1; min-width: 0; }
.tj-row small { font: 500 var(--text-12) var(--body); color: var(--muted); }
.tj-rule { height: 1px; margin: 6px 12px; border: 0; background: var(--line); flex: none; }
.tj-m-nav { display: flex; flex-direction: column; }
.tj-m-admin[hidden] { display: none; }
/* Sign in heads the menu where the bar has none: a visitor on a phone, off the door. */
.tj-m-out { display: none; padding: 6px 2px 8px; }
/* who is signed in: one line, cut with … when long */
.tj-m-acct { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; }
.tj-av { width: 40px; height: 40px; flex: none; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-dark); font: 700 var(--text-16) var(--body); }
.tj-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tj-who b { font: 600 var(--text-14)/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj-who .tj-role { font-size: var(--text-12); color: var(--muted); }
.tj-chip { align-self: flex-start; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent-dark); font: 600 var(--text-12)/1.4 var(--body); letter-spacing: .02em; }
/* A visitor on a computer: the menu starts with the sections, so no rule above them. */
.tj-bar[data-auth="out"] .tj-m-top { display: none; }
/* The home page's sections are a visitor's (decision 10): not signed in, not on the door. */
.tj-bar:is([data-auth="in"], .tj-slim) [data-visit] { display: none !important; }

.tj-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(20, 16, 18, .45); }
.tj-scrim[hidden] { display: none; }

/* ---------- the Sign in modal ---------- */
.tj-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(20, 24, 26, .5); animation: tjfade .15s; }
@keyframes tjfade { from { opacity: 0; } }
.tj-sheet {
  position: relative; width: min(100%, 440px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--surface); color: var(--ink); border-radius: var(--r-rail); padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); display: grid; gap: 16px; animation: tjpop .2s ease-out; text-align: left;
}
.tj-sheet h2 { margin: 0; font: 600 28px/1.15 var(--display); text-wrap: balance; }
.tj-sheet p { margin: 0; line-height: 1.55; }
.tj-sheet .lede { color: var(--muted); }
.tj-sheet .note { font-size: 13px; color: var(--muted); }
.tj-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sunk); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tj-google { display: flex; align-items: center; justify-content: center; gap: 12px; height: var(--button-h); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: var(--button-font); cursor: pointer; }
.tj-google:hover { background: var(--sunk); }
.tj-google[disabled] { opacity: .7; cursor: progress; }
.tj-sheet .tj-google .g { width: 16px; height: 16px; stroke: none; }
/* The Sign in box wears the one type pair (design.css), like every page. */
.tj-signin .tj-sheet { font-family: var(--body); }
.tj-signin .tj-sheet h2 { font-weight: 400; font-size: clamp(28px, 8vw, 34px); letter-spacing: -.01em; padding-right: 44px; }

/* The door (/picturebook, the app's home): the one place without Create a book (decision 3). */
.tj-bar.tj-slim .tj-new { display: none !important; }

/* Free Books (toolbar.mjs FREE_BOOKS): a plain link beside Create, and in the menu on a phone.
   Inside a book the studio keeps its own bar. */
.tj-bar .tj-free { display: inline-flex; align-items: center; height: var(--button-h); padding: 0 6px; margin-right: 6px; color: var(--cream); font: 600 var(--text-16)/1 var(--body);
  text-decoration: none; white-space: nowrap; border-radius: var(--r-pill); }
.tj-bar .tj-free:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.tj-bar .tj-free:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.in-studio #topbar .tj-free { display: none !important; }
/* Free Printables (toolbar.mjs FREE_PRINTABLES): beside Free Books from tablet up; on a phone a
   row of the menu, as the bar has no room for a second link there. */
.tj-m-nav [data-print] { display: none; }

/* ---------- widths ---------- */
.tj-bar .sitenav { display: none; }
@media (min-width: 1280px) {
  .tj-bar[data-auth="out"]:not(.tj-slim, .tj-app) .sitenav { display: flex; }
}
@media (max-width: 1279px) { .tj-bar { gap: 12px; } }

@media (max-width: 720px) {
  /* backdrop-filter would make the bar the box the bottom sheets are fixed to. */
  .tj-bar { gap: 8px; }
  .topbar.tj-bar[data-auth] { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tj-bar .brand .logomark { height: 28px; }
  .tj-acts { gap: 6px; }
  /* Free Books stays in the bar at every width; Sign in moves to the top of the menu, except on
     the door, whose bar has no Create a book and room for it (the approved Phone board). */
  .tj-bar:not(.tj-slim) .tj-acts > [data-signin] { display: none; }
  .tj-bar[data-auth="out"]:not(.tj-slim) .tj-m-out { display: block; }
  .tj-bar[data-auth="out"]:not(.tj-slim) .tj-m-top { display: block; }
  .tj-bar .tj-free { padding: 0 4px; font-size: var(--text-14); }
  .tj-bar .tj-free-print { display: none; }
  .tj-m-nav [data-print] { display: flex; }
  .tj-bar .tj-new { margin-left: 0; }
  .tj-new .long { display: none; }
  .tj-new .short { display: inline; }
  /* The signed-in bar (logo, Free Books, New book, bookshelf, menu) ran past a 390 phone, so on
     phones the bookshelf button leaves it; My Bookshelf is in the menu (Anurag 31 October 2026). */
  .tj-acts > .tj-drop { display: none; }

  /* Every dropdown becomes a sheet from the bottom, over a scrim. */
  .tj-pop, .tj-menupanel {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: calc(100dvh - 72px); overflow: auto;
    border-radius: var(--r-rail) var(--r-rail) 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    animation: tjup .22s ease-out;
  }
  .tj-menupanel { border-radius: var(--radius-20) var(--radius-20) 0 0; padding: 10px 10px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .tj-m-head { display: flex; }
  @keyframes tjup { from { transform: translateY(24px); opacity: 0; } }
  .tj-sheet { padding: 24px 18px; }
  .tj-sheet h2 { font-size: 24px; }
}
@media (min-width: 721px) {
  .tj-scrim { display: none; }
}
/* The smallest phones (320-380) hold the logo, Free Books, New book and the menu in one row: a
   smaller logo, New book loses its plus, and the bookshelf button leaves the bar, since My
   Bookshelf is in the menu. With it there the bar was 384px wide, so a 320 or 375 phone zoomed
   the whole page out (Anurag 26 October 2026). */
@media (max-width: 380px) {
  .tj-acts { gap: 4px; }
  .tj-acts > .tj-drop { display: none; }
  .tj-bar .tj-free { padding: 0 2px; }
  .tj-bar .brand .logomark { height: 22px; }
  .tj-bar .tj-new svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tj-pop, .tj-menupanel, .tj-sheet, .tj-modal { animation: none; }
}

/* ---------- the dark bar, on every page (the approved boards, Anurag 26 October 2026) ----------
   One flat warm dark (design.css --bar) in both themes, cream words, the white wordmark. What
   hangs from it keeps its own light (or dark-theme) surface and ink. */
.topbar.tj-bar[data-auth] {
  --bar-dim: rgba(246, 241, 232, .8); --bar-hair: rgba(246, 241, 232, .14);
  color: var(--cream); border-bottom: 0; gap: 8px; background: var(--bar);
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.tj-bar > :is(.brand, .sitenav, .tj-acts) { position: relative; }
@media (min-width: 721px) {
  .topbar.tj-bar[data-auth] { padding: 0 20px 0 28px; }
  .tj-bar .brand .logomark { height: 30px; }
}
/* The smallest phones (see max-width 380 above): a narrower edge and gap, so the row fits 320. */
@media (max-width: 380px) {
  .topbar.tj-bar[data-auth] { padding-inline: 12px; gap: 4px; }
}
.topbar.tj-bar[data-auth] .brand { box-sizing: border-box; height: 32px; align-self: center; margin-right: 4px; }
/* The wordmark for a dark ground (brand/logo-dark.svg): the same drawing with its two themed colours set for it. */
.tj-bar .brand { --logo-ink: #fff; --logo-star: #fff; }
.tj-bar .sitenav a { color: var(--bar-dim); }
.tj-bar .sitenav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
:is(.tj-acts > .tj-btn, .tj-acts > .tj-drop > .tj-btn):not(.cream) { color: var(--cream); }
:is(.tj-acts > .tj-btn, .tj-acts > .tj-drop > .tj-btn):not(.main, .cream, .glass, .line):hover { background: rgba(255, 255, 255, .08); }
.tj-acts > .tj-btn.line { border-color: rgba(246, 241, 232, .55); background: transparent; }
.tj-acts > .tj-btn.line:hover { border-color: var(--cream); color: var(--cream); }
.tj-acts .tj-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .06); border-color: var(--bar-edge); color: var(--cream); }
:is(.tj-bar .brand, .tj-bar .sitenav a, .tj-bar .tj-acts > .tj-btn, .tj-bar .tj-drop > .tj-btn, .tj-bar .tj-new):focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: none; }
/* What hangs from the bar keeps a light (or, in the dark theme, dark) surface with its own ink. */
.tj-bar :is(.tj-pop, .tj-menupanel) { color: var(--ink); }

/* ---------- names for the bar's icons (Anurag 2026-09-30) ----------
   An icon with no word (My Bookshelf, the menu) says what it is on hover, on keyboard
   focus and while it is pressed and held (a phone has no hover; the browser's own title tip
   never shows on touch). The words are the button's data-tip, and its aria-label says the same
   to a screen reader. Not shown while the button's own card is open: the card is the answer. */
.tj-bar [data-tip] { position: relative; }
.tj-bar [data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  padding: 6px 10px; border-radius: var(--r-small); background: #0E141B; color: #fff; border: 1px solid var(--bar-hair, rgba(255, 255, 255, .16));
  font: 600 13px/1.2 var(--body); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(-4px); transition: opacity .12s, transform .12s;
}
.tj-bar [data-tip]:is(:hover, :focus-visible, :active):not([aria-expanded="true"])::after { opacity: 1; transform: none; transition-delay: .25s; }
.tj-bar [data-tip]:active:not([aria-expanded="true"])::after { transition-delay: 0s; }
.tj-bar [data-tip]:disabled::after { display: none; }
@media (prefers-reduced-motion: reduce) { .tj-bar [data-tip]::after { transition: none; } }
/* Press and hold on a phone must not open the browser's own menu or select the icon. */
.tj-bar [data-tip] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* The email-code part of the sign-in boxes (src/email-code.js): the sheet, the toolbar's modal and
   the signed-out screen all wear it. Here, in the toolbar's sheet, because the landing site links
   only this file and the app loads it on every screen (shell.js). */
.ec { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.ec-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.ec-divider::before, .ec-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.ec-input { box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 16px var(--body); }
.ec-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ec-code { text-align: center; letter-spacing: .4em; font-size: 22px; }
/* Email me a code and Sign in are the one main button (design.css .tj-btn.main.wide; decision 1: green is never a button). */
.ec-btn[disabled] { cursor: progress; }
.ec-more { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.ec-link { padding: 4px 0; border: 0; background: none; color: var(--accent); font: 600 14px var(--body); cursor: pointer; text-decoration: underline; }
.ec-link[disabled] { opacity: .6; cursor: progress; }
.ec-sent, .ec-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ec-err { margin: 0; color: var(--warn); font-size: 14px; line-height: 1.5; }
.ec-note:empty, .ec-err:empty { display: none; }

/* Every bar is the door's height, v5's 56px (Anurag 2026-10-16, "Your v5 is approved"), so the
   bar does not jump between pages (decision 7: one header). */
.topbar.tj-bar[data-auth] { height: 56px; min-height: 56px; }
/* The menu's Studio links box (toolbar.js studioSwitch), an admin's alone: the word, the box at the right. */
.tj-m-studio { justify-content: flex-start; padding: 0 14px; cursor: pointer; }
.tj-m-studio input { margin-left: auto; width: 18px; height: 18px; accent-color: var(--accent); }
.tj-admin .tj-m-studio { margin-top: 8px; }
