/* Plainer interface: the same layout, type and palette, without the decorative extras. */

/* Decoration that only moves or points */
html body .orbit-chart, html body .demo-cursor { display: none !important; }

/* The running list of frames: one colour, one weight, hairlines, no fade, no dots. */
html body .kt-belt { background: transparent !important; border-block: 1px solid rgba(26,25,23,.16) !important;
  -webkit-mask-image: none !important; mask-image: none !important; margin: 0 !important; }
html body .kt-belt-track { gap: 0 !important; padding: 15px 0 !important; animation: kt-belt 120s linear infinite !important; }
html body .kt-belt-track span { color: var(--ink, #1A1917) !important; font-size: 15px !important; font-weight: 400 !important;
  letter-spacing: 0 !important; padding: 0 22px; border-right: 1px solid rgba(26,25,23,.16); line-height: 1.2 !important; }
html body .kt-belt-track span:empty { display: none; }
html body .kt-belt-track i { display: none !important; }
@media (prefers-reduced-motion: reduce) { html body .kt-belt-track { animation: none !important; } }
html.nav-init::after { display: none !important; animation: none !important; }
html body .cm-mark path { animation: none !important; }
html body .help-btn.unseen::after { display: none !important; animation: none !important; }
html body .lw-live i { animation: none !important; box-shadow: none !important; }

/* Step numbers and catalogue numbers */
html body .steps .n, html body .kt-no, html body .lib-no { display: none !important; }

/* Arrows and dots tacked onto labels */
html body .kt-cta::after,
html body .index-links a .nm::after, html body .index-links a:hover .nm::after,
html body .link-col a .nm::after, html body .link-col:hover a .nm::after { content: none !important; display: none !important; }
html body .plates figure figcaption span.name::after, html body .plates figure:hover figcaption span.name::after,
html body .lib-row figure figcaption span.name::after { content: none !important; display: none !important; }
html body .plates figcaption .num { display: none !important; }
html body a.quiet-link::after, html body a.quiet-link:hover::after, html body a.rt-link::after, html body a.rt-link:hover::after { content: none !important; display: none !important; }
html body #step-rail button.done .step-label::after { display: none !important; }

/* Buttons that roll, lift or glow on hover */
html body .statement .index-links a.jb .jb-roll { translate: none !important; transition: none !important; }
html body .statement .index-links a.jb .jb-roll .jb-t + .jb-t { display: none !important; }
html body .kt-cta:hover, html body .index-links a:hover, html body .frame-preset-card:hover,
html body .preset-gallery > *:hover, html body #decal-gallery button:hover, html body .plate:hover { transform: none !important; translate: none !important; }
html body .index-links a, html body .kt-cta, html body .statement .index-links a.jb { box-shadow: none !important; }

/* Hints read as ordinary text */
html body .stage-hint { font-style: normal !important; }

/* Labels set in small spaced capitals are reset to ordinary words by plain.js */

/* Every layer row ends in a delete cross, always on show. */
html body #stack-list .stack-row .stack-x { all: unset; box-sizing: border-box; width: 22px; height: 22px; border-radius: 5px; flex: none; margin-left: 2px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted, #8a857c); }
html body #stack-list .stack-row .stack-x:hover { background: rgba(199,57,31,.1); color: #C7391F; }
html body #stack-list .stack-row .stack-x:focus-visible { outline: 2px solid var(--accent, #2A4C9B); }
html body #stack-list .stack-row .stack-more { right: 54px; }
html body #stack-list .stack-row .stack-btns { right: 54px; }
html body #stack-list .stack-row:has(.stack-more) .stack-btns { right: 78px; }
html.jm #jm-sheet #stack-list .stack-row .stack-x { width: 40px; height: 40px; }

/* Brand name to logo swap, under the row it belongs to. */
.stack-logo-swap { margin: 2px 0 8px; padding: 10px 12px 12px; border: 1px solid var(--border, rgba(26,25,23,.12)); background: var(--panel, #FAF8F3); }
.stack-logo-swap .sls-h { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--text, #1A1917); }
.stack-logo-swap .sls-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-logo-swap .sls-grid button, .stack-logo-swap .sls-up { all: unset; box-sizing: border-box; width: 64px; height: 44px; padding: 5px; cursor: pointer;
  border: 1px solid var(--border-strong, rgba(26,25,23,.22)); background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.stack-logo-swap .sls-grid button:hover, .stack-logo-swap .sls-up:hover { border-color: var(--text, #1A1917); }
.stack-logo-swap .sls-grid button:focus-visible, .stack-logo-swap .sls-up:focus-within { outline: 2px solid var(--accent, #2A4C9B); }
.stack-logo-swap .sls-grid img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.stack-logo-swap .sls-up { font-size: 11.5px; font-weight: 600; color: var(--text, #1A1917); background: transparent; border-style: dashed; }
.stack-logo-swap .sls-up input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stack-logo-swap .sls-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--text-muted, #6E685D); }

/* Sign in with square corners, like the main buttons. */
html body .google-signin-btn, html body #sign-out-btn { border-radius: 0 !important; }

/* Brand typeface note in a text layer's settings */
.si-brandfont { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 8px 10px; background: rgba(42,76,155,.06); border-left: 2px solid #2A4C9B; font-size: 11.5px; line-height: 1.4; color: var(--text, #1A1917); }
.si-brandfont span { flex: 1; min-width: 0; }
.si-brandfont .si-btn { flex: none; }

/* The tool sidebar floats as its own panel, clear of the window edges and the artwork. */
html:not(.jm) body .layout > .controls { margin: 26px 0 14px 14px; height: calc(100% - 40px); max-height: calc(100% - 40px);
  border: 1px solid rgba(26,25,23,.10); box-shadow: 0 22px 44px -30px rgba(26,25,23,.45), 0 2px 6px -4px rgba(26,25,23,.12); }
html:not(.jm) body .layout > .preview { padding-left: 20px; }

/* A slim scrollbar for the panels: a thin ink rail that thickens on hover, no arrows, no track. */
html:not(.jm) body .controls, html:not(.jm) body #slot-panel, html:not(.jm) body .preview { scrollbar-width: thin; scrollbar-color: rgba(26,25,23,.28) transparent; }
html:not(.jm) body .controls::-webkit-scrollbar, html:not(.jm) body #slot-panel::-webkit-scrollbar, html:not(.jm) body .preview::-webkit-scrollbar { display: block !important; width: 12px !important; height: 12px !important; }
html:not(.jm) body .controls::-webkit-scrollbar-track, html:not(.jm) body #slot-panel::-webkit-scrollbar-track, html:not(.jm) body .preview::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
html:not(.jm) body .controls::-webkit-scrollbar-thumb, html:not(.jm) body #slot-panel::-webkit-scrollbar-thumb, html:not(.jm) body .preview::-webkit-scrollbar-thumb {
  background: rgba(26,25,23,.22); border: 4px solid transparent; background-clip: padding-box; border-radius: 0; min-height: 40px; }
html:not(.jm) body .controls::-webkit-scrollbar-thumb:hover, html:not(.jm) body #slot-panel::-webkit-scrollbar-thumb:hover, html:not(.jm) body .preview::-webkit-scrollbar-thumb:hover { background-color: #2A4C9B; border-width: 3px; }
html:not(.jm) body .controls::-webkit-scrollbar-thumb:active { background-color: #1A1917; }
html:not(.jm) body .controls::-webkit-scrollbar-button, html:not(.jm) body #slot-panel::-webkit-scrollbar-button, html:not(.jm) body .preview::-webkit-scrollbar-button { display: none; height: 0; }
html:not(.jm) body .controls::-webkit-scrollbar-corner { background: transparent; }
/* Chrome and Safari: let the styled rail above win over the standard thin bar. Firefox keeps the thin ink bar. */
@supports selector(::-webkit-scrollbar) {
  html:not(.jm) body .controls, html:not(.jm) body #slot-panel, html:not(.jm) body .preview { scrollbar-width: auto !important; scrollbar-color: auto !important; }
}

/* Sharp edges on every control in the tools. The little round "i" dots and the reset arrow stay round. */
html:not(#_a):not(#_b) body :is(button:not(.info-dot):not(#feed-info-btn):not(.wipe-reset):not(.stack-x), .btn, .help-btn, select, textarea,
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color])),
html:not(#_a):not(#_b) body :is(.btn, .help-btn, button:not(.info-dot):not(#feed-info-btn):not(.wipe-reset):not(.stack-x)):hover { border-radius: 0 !important; }

/* Homepage: the two main buttons, a size smaller. */
html body .band .statement .index-links .link-col a.jb, html body .band .statement .index-links .link-col a.jb:hover,
html body .band .statement .index-links .link-col:hover a.jb {
  height: 44px !important; min-height: 44px !important; padding: 0 22px !important; min-width: 140px !important; font-size: 14px !important; }
@media (min-width: 861px) { html body .band .statement .index-links .link-col a.jb { width: auto !important; align-self: flex-start !important; } }

/* Homepage headline, bigger on desktop. */
@media (min-width: 861px) {
  html:not(#_a) body .statement p.tagline.section-body, html:not(#_a) body .statement .tagline { font-size: 98px !important; }
}

/* Homepage demo: nudged a little to the right on desktop. */
@media (min-width: 861px) { html body .statement .hero.demo-stage { translate: 44px 0 !important; } }

/* Bigger top bars. Homepage: taller bar, larger wordmark, links and Sign in. */
@media (min-width: 861px) {
  html:not(#_a) body header#topbar.topbar { padding-top: 14px !important; padding-bottom: 14px !important; }
  html:not(#_a) body header#topbar .topbar-word { font-size: 29px !important; }
  html:not(#_a) body header#topbar nav a, html:not(#_a) body header#topbar a:not(.topbar-brand) { font-size: 17px !important; }
  html:not(#_a) body header#topbar #google-signin-btn { font-size: 16px !important; padding: 11px 20px !important; }
}
/* Tool pages: taller bar with larger text and buttons, still inside the space the editor leaves for it. */
html:not(.jm):not(#_a) body > header { padding: 22px 34px !important; }
html:not(.jm):not(#_a) body > header .jerich-mark { font-size: 22px !important; }
html:not(.jm):not(#_a) body > header .sister-link { font-size: 15px !important; }
html:not(.jm):not(#_a) body > header #help-btn { font-size: 15px !important; padding: 8px 14px !important; }
html:not(.jm):not(#_a) body > header #google-signin-btn { font-size: 15px !important; }
html:not(.jm):not(#_a) body > header .jerich-mark span { font-size: 22px !important; }
html:not(.jm):not(#_a) body > header h1 { font-size: 15px !important; }
html:not(.jm):not(#_a) body > header #help-btn span, html:not(.jm):not(#_a) body > header #google-signin-btn span { font-size: 15px !important; }

/* Top bars: the logo mark alone, larger. The word stays in the page for screen readers only. */
html:not(#_a) body header#topbar .topbar-word, html:not(#_a) body > header .jerich-mark span {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
html:not(#_a) body header#topbar .topbar-brand svg { width: 62px !important; height: 62px !important; }
html:not(#_a) body > header .jerich-mark svg { width: 52px !important; height: 52px !important; }
html.jm:not(#_a) body header#topbar .topbar-brand svg { width: 50px !important; height: 50px !important; }
/* The bigger mark does not make the bars any taller. */
html:not(#_a) body header#topbar .topbar-brand { height: 54px !important; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; display: flex !important; align-items: center !important; align-self: center !important; overflow: visible !important; }
html:not(#_a) body header#topbar .topbar-brand svg { margin: -4px 0 !important; flex: 0 0 auto; top: 0 !important; }
html:not(#_a) body > header .jerich-mark { height: 32px !important; display: flex !important; align-items: center !important; overflow: visible !important; }
html:not(#_a) body > header .jerich-mark svg { margin: -10px 0 !important; }
@media (max-width: 860px) { html:not(#_a) body header#topbar .topbar-brand { height: 40px !important; } html:not(#_a) body header#topbar .topbar-brand svg { margin: -5px 0 !important; } }

/* Homepage headline JERICH.IO, larger. */
@media (min-width: 861px) { html:not(#_a):not(#_b) body .statement p.tagline.section-body, html:not(#_a):not(#_b) body .statement .tagline { font-size: clamp(110px, 11.4vw, 168px) !important; line-height: 1 !important; } }
@media (max-width: 860px) { html:not(#_a):not(#_b) body .band .statement p.tagline.section-body, html:not(#_a):not(#_b) body .band .statement .tagline { font-size: clamp(56px, 22vw, 96px) !important; } }
html:not(#_a):not(#_b) body .statement .tagline, html:not(#_a):not(#_b) body .statement .tagline span { font-weight: 400 !important; }
html:not(#_a):not(#_b) body .statement .hero-sub { text-align: justify !important; text-align-last: left !important; hyphens: none !important; box-sizing: border-box !important; padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 860px) { html:not(#_a):not(#_b) body .statement .hero-sub { text-align: left !important; } }
/* Homepage buttons centred under the headline. */
@media (min-width: 861px) { html:not(#_a):not(#_b) body .statement .index-links { width: var(--jr-hw, auto) !important; max-width: var(--jr-hw, none) !important; justify-content: center !important; margin-left: 0 !important; margin-right: 0 !important; } }

/* Homepage on phones: fewer, smaller pictures and a simpler run of sections. */
@media (max-width: 860px) {
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .statement .index-links .spec-list { display: none !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .band .statement .demo-canvas { width: min(62vw, 240px) !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .band .statement .hero.demo-stage { margin-top: 24px !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .dpa-collage, html:not(#_a):not(#_b):not(#_c):not(#_d) body .creative-collage { width: min(56vw, 210px) !important; height: auto !important; aspect-ratio: 1 / 1; margin: 18px auto 0 !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .dpa-collage video, html:not(#_a):not(#_b):not(#_c):not(#_d) body .creative-collage video, html:not(#_a):not(#_b):not(#_c):not(#_d) body .dpa-collage img, html:not(#_a):not(#_b):not(#_c):not(#_d) body .creative-collage img { width: 100% !important; height: 100% !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body #brand .kt-window { display: none !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-minimal { grid-template-columns: repeat(2, minmax(0, 140px)) !important; justify-content: center !important; column-gap: 18px !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-minimal > figure:not(:nth-of-type(1)):not(:nth-of-type(4)) { display: none !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-minimal > .plates-head { grid-column: 1 / -1 !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-presets { display: none !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .retouch .retouch-fig { width: min(64vw, 250px) !important; margin: 18px auto 0 !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .retouch .retouch-fig .wipe-box, html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-filters .wipe-box { height: auto !important; aspect-ratio: 4 / 5; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-filters > figure:not(:nth-of-type(1)) { display: none !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-filters > figure { width: min(64vw, 250px) !important; margin: 0 auto !important; }
}

/* Phones, pared back further: smaller buttons, fewer sections, smaller pictures. */
@media (max-width: 860px) {
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .band .statement .index-links { display: flex !important; justify-content: center !important; gap: 10px !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .band .statement .index-links .link-col { width: auto !important; flex: 0 0 auto !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .band .statement .index-links .link-col a.jb,
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .band .statement .index-links .link-col a.jb:hover {
    width: auto !important; min-width: 120px !important; height: 38px !important; min-height: 38px !important; padding: 0 16px !important; font-size: 14px !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .kt-belt,
  html:not(#_a):not(#_b):not(#_c):not(#_d) body #how,
  html:not(#_a):not(#_b):not(#_c):not(#_d) body #brand,
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .retouch,
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-filters { display: none !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .band .statement .demo-canvas { width: min(52vw, 200px) !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .dpa-collage, html:not(#_a):not(#_b):not(#_c):not(#_d) body .creative-collage { width: min(44vw, 170px) !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body .lib-minimal { grid-template-columns: repeat(2, minmax(0, 118px)) !important; }
}

/* Opening screen holds while the belt runs one loop (see the jr-pin script on the homepage). */
html.jr-pinned body .jr-pin { position: relative; height: calc(var(--jr-vh, 100vh) - var(--jr-top, 0px) + var(--jr-pin, 0px)); }
html.jr-pinned body .jr-pin-in { position: sticky; top: var(--jr-top, 0px); height: calc(var(--jr-vh, 100vh) - var(--jr-top, 0px)); display: flex; flex-direction: column; overflow: hidden; }
html.jr-pinned:not(#_a):not(#_b) body .jr-pin-in > #main-content { flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; }
html.jr-pinned:not(#_a):not(#_b) body .jr-pin-in > #main-content > .statement { min-height: 0 !important; height: 100% !important; padding-top: 18px !important; padding-bottom: 18px !important; box-sizing: border-box !important; }
html.jr-pinned:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body .jr-pin-in > .kt-belt { display: block !important; flex: 0 0 auto !important; margin: 0 !important; }
html.jr-pinned:not(#_a):not(#_b) body .jr-pin-in .kt-belt-track { animation: none !important; will-change: transform; }
/* A scrolling body would stop the opening screen from holding; clip sideways overflow instead. */
html.jr-pinned:not(#_a), html.jr-pinned:not(#_a) body { overflow-x: clip !important; overflow-y: visible !important; }
@media (min-width: 861px) { html.jr-pinned:not(#_a):not(#_b) body .jr-pin-in > #main-content > .statement { padding-bottom: 96px !important; } }
/* Homepage: headline, line and buttons nudged up and to the left on desktop. */
@media (min-width: 861px) {
  html:not(#_a):not(#_b):not(#_c) body .statement .tagline, html:not(#_a):not(#_b):not(#_c) body .statement .hero-sub, html:not(#_a):not(#_b):not(#_c) body .statement .index-links {
    position: relative !important; left: 0 !important; top: var(--jr-dy, 34px) !important; }
}
/* Main homepage buttons: a little more room between them. */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body .statement .index-links { gap: 28px !important; column-gap: 28px !important; }
@media (max-width: 860px) { html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body .statement .index-links { gap: 20px !important; column-gap: 20px !important; } }
/* Phones: the library has nothing left to show, so the whole band goes. */
@media (max-width: 860px) { html:not(#_a):not(#_b):not(#_c):not(#_d) body #library { display: none !important; } }

/* Desktop: Made to your brand, Retouching and Filters pared back, with smaller pictures. */
@media (min-width: 861px) {
  html:not(#_a):not(#_b):not(#_c) body #brand .kt-txt p, html:not(#_a):not(#_b):not(#_c) body #brand .kt-txt .kt-no { display: none !important; }
  html:not(#_a):not(#_b):not(#_c) body #brand .kt-txt { padding: 14px 20px !important; }
  html:not(#_a):not(#_b):not(#_c) body #brand .kt-txt h3 { margin: 0 !important; font-size: 15px !important; }
  html:not(#_a):not(#_b):not(#_c) body #brand .kt-art { height: 130px !important; min-height: 0 !important; overflow: hidden !important; }
  html:not(#_a):not(#_b):not(#_c) body #brand .kt-art > * { transform: scale(.68); transform-origin: center; }
  html:not(#_a):not(#_b):not(#_c) body #brand .kt-window { max-width: 900px !important; margin-left: auto !important; margin-right: auto !important; }

  html:not(#_a):not(#_b):not(#_c) body .retouch .rt-tools { display: none !important; }
  html:not(#_a):not(#_b):not(#_c) body .retouch .retouch-fig { width: 300px !important; max-width: 300px !important; justify-self: center !important; margin-left: auto !important; margin-right: auto !important; }
  html:not(#_a):not(#_b):not(#_c) body .retouch .retouch-fig .wipe-box { height: auto !important; aspect-ratio: 4 / 5; }

  html:not(#_a):not(#_b):not(#_c) body .lib-filters > .plates-head { grid-column: 1 / -1 !important; }
  html:not(#_a):not(#_b):not(#_c) body .lib-filters > figure { width: 100% !important; max-width: 250px !important; margin: 0 auto !important; justify-self: center !important; }
  html:not(#_a):not(#_b):not(#_c) body .lib-filters .wipe-box { height: auto !important; aspect-ratio: 4 / 5; }
}

/* Phones: the full top bar, with the page links on a second row under the logo and Sign in. */
@media (max-width: 860px) {
  html:not(#_a):not(#_b):not(#_c):not(#_d) body header#topbar { flex-wrap: wrap !important; row-gap: 6px !important; padding-top: 12px !important; padding-bottom: 8px !important; padding-left: 20px !important; padding-right: 20px !important; height: auto !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body header#topbar .topbar-nav { display: flex !important; order: 3; flex: 0 0 100% !important; width: 100% !important; justify-content: space-between !important; gap: 12px !important; margin: 0 !important; padding: 6px 0 2px !important; border-top: 1px solid rgba(26,25,23,.10); overflow-x: auto; scrollbar-width: none; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body header#topbar .topbar-nav a { font-size: 13px !important; white-space: nowrap !important; padding: 6px 0 !important; letter-spacing: 0 !important; text-transform: none !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body header#topbar .header-auth { margin-left: auto !important; }
}

/* Homepage on phones, touch pass: same look, 44px targets, press states instead of hover. */
@media (max-width: 860px) {
  html:not(#_a):not(#_b):not(#_c):not(#_d) body header#topbar .topbar-nav a { min-height: 44px !important; display: inline-flex !important; align-items: center !important; padding: 0 2px !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d) body header#topbar #google-signin-btn { min-height: 44px !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body .band .statement .index-links .link-col a.jb,
  html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body .band .statement .index-links .link-col a.jb:hover { height: 44px !important; min-height: 44px !important; }
  html body .quiet-link { min-height: 44px; display: inline-flex; align-items: center; }
  html body .sign-band a, html body footer a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  html body a, html body button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  html body a:active, html body button:active { opacity: .72; }
  html body .demo-chip { min-height: 44px; }
}
/* Phones: the page links always fit the bar, wrapping to a second line rather than running off the edge. */
@media (max-width: 860px) {
  html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body header#topbar .topbar-nav { overflow: visible !important; flex-wrap: wrap !important; justify-content: space-between !important; column-gap: 10px !important; row-gap: 0 !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body header#topbar .topbar-nav a { font-size: clamp(12px, 3.5vw, 13px) !important; }
}
@media (max-width: 350px) {
  html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body header#topbar { padding-left: 12px !important; padding-right: 12px !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body header#topbar .topbar-nav { column-gap: 6px !important; }
  html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body header#topbar .topbar-nav a { font-size: 12px !important; letter-spacing: -0.01em !important; }
}

/* Desktop, tall windows (full-page previews, portrait monitors): keep the opening a sensible
   height instead of stretching it to the whole window. */
@media (min-width: 861px) and (min-height: 1251px) {
  html:not(#_a):not(#_b) body #main-content, html:not(#_a):not(#_b) body #main-content > .statement { min-height: 0 !important; height: auto !important; }
  html:not(#_a):not(#_b) body #main-content > .statement { padding-top: 120px !important; padding-bottom: 140px !important; }
}

/* The live catalogue wall sits below the export bar, so loading a feed never pushes the export controls off screen. */
html body .preview > #live-wall { order: 1; }
/* Narrow screens scroll the opening normally (the phone needs its height), so the belt sits under it as a plain ticker */
@media (max-width: 860px) { html:not(.jr-pinned):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body .kt-belt { display: block !important; margin: 8px 0 0 !important; } }
