/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */

/* supertwentyplus: shared layout and components.
   Colours, fonts and shapes come from the active theme file (theme-f.css, theme-d.css or theme-e.css).
   Keep this file theme-neutral so skins can be swapped without touching the HTML. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
}
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }

/* Header */
.site-header { background: linear-gradient(var(--header-bg), var(--header-bg)), var(--bg); border-bottom: var(--header-border); }
/* Header stays at the top while scrolling. js/site.js sets --stp-head-top (negative when the nav wraps under the
   logo on phones, so only the slim nav row stays) and --stp-head (the height left showing) for anchors and app bars. */
.site-header { position: sticky; top: calc(var(--stp-sabar-h, 0px) + var(--stp-head-top, 0px)); z-index: 40; transition: box-shadow .2s ease; }
html.head-stuck .site-header { box-shadow: 0 1px 0 var(--line), 0 8px 18px -14px rgba(15, 27, 45, .45); }
html { scroll-padding-top: calc(var(--stp-head, 0px) + 8px); }
@media print { .site-header { position: static; box-shadow: none !important; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-ink); border: var(--mark-border); border-radius: var(--mark-radius); box-shadow: var(--mark-shadow); font: 600 15px/1 var(--font-mono); }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; border: var(--mark-border); border-radius: var(--mark-radius); box-shadow: var(--mark-shadow); }
.brand-name { font-family: var(--font-display); font-weight: var(--brand-weight); font-size: 24px; letter-spacing: -0.02em; }
.brand-accent { color: var(--brand-accent); background: var(--brand-accent-bg, none); }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-weight: 600; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; border-radius: var(--btn-radius); }
.main-nav a:hover { color: var(--link-hover); }
/* Phones and small tablets: one "All apps" link to the category tiles instead of a link per category */
.main-nav .nav-apps { display: none; }
.main-nav .nav-login { margin-left: 6px; border: 1.5px solid currentColor; padding: 0 16px; }
.main-nav .nav-pro { margin-left: 6px; padding: 0 18px; background: var(--pro-bg); color: var(--pro-ink); }
.main-nav .nav-pro:hover { color: var(--pro-ink); filter: brightness(1.08); }
.main-nav .nav-cats { display: contents; }
/* Category links as slim outlined buttons */
.main-nav .nav-cat { min-height: 34px; margin-left: 4px; padding: 0 10px; border: 1px solid currentColor; }
/* Desktop: every menu box the same 32px height, a little narrower, text 1px smaller */
@media (min-width: 900px) {
  .main-nav { font-size: 15px; }
  .main-nav .nav-cat { min-height: 32px; padding: 0 8px; }
  .main-nav .nav-login, .main-nav .nav-pro { min-height: 32px; padding: 0 12px; }
  .main-nav .theme-toggle { width: 32px; height: 32px; }
}
/* Phones and tablets: logo, Log in, Pro and theme on one slim row, the categories on a scrolling row under it */
@media (max-width: 899px) {
  .main-nav .nav-cats a:first-child { margin-left: 0; }
  .header-inner { flex-wrap: wrap; justify-content: flex-start !important; row-gap: 0 !important; column-gap: 6px; padding-top: 6px !important; padding-bottom: 1px !important; }
  .main-nav { display: contents; }
  .brand { flex: 0 1 auto; min-width: 0; margin-right: auto; gap: 7px; }
  .main-nav .nav-cats { order: 3; flex: 1 0 100%; display: flex; justify-content: space-between; gap: 0; margin: 0; }
  .main-nav .nav-cats { gap: 4px; margin-top: 3px; margin-bottom: 3px; }
  .main-nav .nav-cats a { flex: 1 1 auto; justify-content: center; min-height: 26px; margin: 0; padding: 0 4px; font-size: clamp(11px, 3.6vw, 14px); white-space: nowrap; }
}
/* Small phones: the eight category links in two rows of four */
@media (max-width: 599px) {
  .main-nav .nav-cats { display: grid; grid-template-columns: repeat(4, 1fr); }
  .main-nav .nav-cats a { min-width: 0; font-size: clamp(11px, 3.5vw, 14px); }
}
@media (max-width: 640px) {
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
  .main-nav .nav-login, .main-nav .nav-pro { min-height: 34px; padding: 0 10px; margin-left: 0; font-size: 13px; }
  .main-nav .theme-toggle { width: 34px !important; height: 34px !important; margin-left: 0; }
}
@media (max-width: 400px) { .header-inner { column-gap: 4px; } .brand { gap: 5px; } .brand-logo { width: 30px; height: 30px; } .brand-name { font-size: 14.5px; } .main-nav .nav-login, .main-nav .nav-pro { padding: 0 7px; } }
@media (max-width: 340px) { .brand-logo { width: 26px; height: 26px; } .brand-name { font-size: 12.5px; } .main-nav .nav-login, .main-nav .nav-pro { padding: 0 5px; font-size: 13px; } .main-nav .theme-toggle { width: 30px !important; } }

/* Page stack: each theme sets the order of sections with the `order` property */
.stack { display: flex; flex-direction: column; gap: var(--stack-gap); padding-bottom: var(--stack-gap); }

/* Buttons */
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border-radius: var(--btn-radius); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: var(--btn-border-w) solid transparent; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-ink); border-color: var(--btn-primary-border); box-shadow: var(--btn-shadow); }
.btn-ghost { background: var(--btn-ghost-bg); color: var(--ink); border-color: var(--btn-ghost-border); box-shadow: var(--btn-ghost-shadow); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-action { width: 100%; background: var(--action-bg); color: var(--action-ink); }
.btn:hover { filter: brightness(1.06); }

/* Hero */
.hero { order: 0; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-top: var(--hero-pad); }
.hero-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.eyebrow { font-weight: 600; font-size: 15px; color: var(--eyebrow); }
.hero h1 { font-size: clamp(36px, 5.2vw, var(--h1-size)); line-height: 1.06; letter-spacing: var(--h1-track); font-weight: var(--h1-weight); max-width: 16ch; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search input { flex: 1 1 280px; max-width: 420px; min-height: 52px; padding: 0 16px; background: var(--surface); border: var(--input-border); border-radius: var(--btn-radius); font-size: 16px; }
.search input::placeholder { color: var(--ink-3); }
.search-status { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.search-status:empty { display: none; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list li::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero-widget { flex: 1 1 360px; min-width: 0; background: var(--widget-bg); border: var(--widget-border); border-radius: var(--widget-radius); box-shadow: var(--widget-shadow); overflow: hidden; }
.widget-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: var(--widget-divider); }
.widget-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.widget-title .icon { color: var(--c-tools); font-size: 20px; }
.widget-badge { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.widget-kicker { font-weight: 700; font-size: 15px; }
.widget-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.widget-note { font-size: 13px; color: var(--ink-3); }

.pw-row { display: flex; gap: 10px; align-items: stretch; }
.pw-output { flex: 1; min-width: 0; padding: 13px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--btn-radius); font: 600 18px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.pw-row .btn { min-width: 80px; min-height: 48px; padding: 0 14px; }
.pw-strength-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#pw-strength-text { color: var(--accent-text); }
.pw-meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 66%; background: var(--accent); border-radius: 99px; transition: width .25s ease; }
.pw-lengths { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); border-radius: calc(var(--btn-radius) - 2px); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

.widget-quiz { display: none; padding-bottom: 22px; }
.quiz-q { padding: 4px 22px 0; font-size: 28px; line-height: 1.15; }
.morse { letter-spacing: 6px; white-space: nowrap; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 0; }
.quiz-opt { min-height: 52px; padding: 0 18px; text-align: left; font-size: 18px; font-weight: 700; background: var(--quiz-bg); border: var(--quiz-border); border-radius: var(--btn-radius); cursor: pointer; }
.quiz-opt.is-right { background: var(--quiz-right); }
.quiz-opt.is-wrong { background: var(--quiz-wrong); }
.quiz-result { padding: 14px 22px 0; font-weight: 700; }
.quiz-result:empty { display: none; }

/* Section shortcuts */
/* Home page order: hero, category tiles, featured, then the categories in apps.json order with their ads */
.sec-featured { order: 2; }
main > .sort-bar, main > .sec:not(.sec-featured), main > .ad-slot, main > .no-results { order: 3; }
main > .ad-slot.ad-featured { order: 1; }
main > #favourites { order: 0; } /* v3010c: favourites under the ticks row, above New arrivals */
.zones { order: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.zones-head { grid-column: 1 / -1; margin-bottom: 8px; }
.zone { min-height: 84px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--surface); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.zone-icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--icon-radius); font-size: 24px; }
.zone-name { display: block; font-family: var(--font-display); font-weight: var(--card-title-weight); font-size: 20px; line-height: 1.2; }
.zone-sub { display: block; font-size: 14px; color: var(--ink-2); }
.zone-tools { --sec-c: var(--c-tools); --sec-tint: var(--c-tools-tint); }
.zone-money { --sec-c: var(--c-money); --sec-tint: var(--c-money-tint); }
.zone-learn { --sec-c: var(--c-learn); --sec-tint: var(--c-learn-tint); }
.zone-play  { --sec-c: var(--c-play);  --sec-tint: var(--c-play-tint); }
.zone-icon { background: var(--sec-tint); color: var(--sec-c); }

/* Sections */
.sec { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px 24px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, var(--h2-size)); line-height: 1.15; letter-spacing: -0.02em; font-weight: var(--h2-weight); }
.sec-head p { color: var(--ink-2); font-size: 16px; max-width: 40em; }
.sec-tools { --sec-c: var(--c-tools); --sec-tint: var(--c-tools-tint); }
.sec-money { --sec-c: var(--c-money); --sec-tint: var(--c-money-tint); }
.sec-learn { --sec-c: var(--c-learn); --sec-tint: var(--c-learn-tint); }
.sec-play  { --sec-c: var(--c-play);  --sec-tint: var(--c-play-tint); }

/* Full-width colour band: a theme sets --band-bg on .band-tools / .band-money to use it */
.band { background: var(--band-bg, transparent); box-shadow: 0 0 0 100vmax var(--band-bg, transparent); clip-path: inset(0 -100vmax); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: var(--grid-gap); }
.grid-featured { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
/* Featured: six show; "More…" opens the next six */
.grid-featured:not(.is-open) .is-extra { display: none; }
.featured-more { align-self: center; min-width: 160px; }

/* App cards */
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); color: var(--ink); text-decoration: none; border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.card:hover { border-color: var(--card-hover-border); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--icon-radius); background: var(--sec-tint); color: var(--sec-c); font-size: 23px; margin-bottom: 4px; }
.card-title { font-family: var(--font-display); font-weight: var(--card-title-weight); font-size: 18px; line-height: 1.25; }
.card-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.card-tag { align-self: flex-start; margin-top: 4px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.card-tag.tag-pro { position: absolute; top: 24px; right: 22px; margin: 0; border: 0; background: var(--pro-bg); color: var(--pro-ink); }

.card-featured { padding: 0; overflow: hidden; gap: 6px; }
.card-featured[data-section="tools"] { --sec-c: var(--c-tools); --sec-tint: var(--c-tools-tint); }
.card-featured[data-section="learn"] { --sec-c: var(--c-learn); --sec-tint: var(--c-learn-tint); }
.card-featured[data-section="play"]  { --sec-c: var(--c-play);  --sec-tint: var(--c-play-tint); }
.card-featured[data-section="money"] { --sec-c: var(--c-money); --sec-tint: var(--c-money-tint); }
.card-featured .card-icon { width: 100%; height: 112px; margin: 0; padding-left: 24px; border-radius: 0; justify-items: start; font-size: 30px; }
.card-featured .card-icon .icon { width: 64px; height: 64px; padding: 17px; background: var(--surface); border-radius: 14px; box-shadow: 0 4px 12px rgba(15, 27, 45, .08); }
.card-kicker { position: absolute; top: 16px; right: 18px; padding: 4px 10px; background: var(--surface); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--sec-c); }
.card-featured .card-title { padding: 16px 22px 0; font-size: 21px; }
.card-featured .card-text { padding: 0 22px 22px; }

/* Tool rows */
.privacy-panel { display: flex; flex-direction: column; gap: 18px; padding: 26px; background: var(--panel-bg); color: var(--panel-ink); border: var(--panel-border); border-radius: var(--panel-radius); }
.privacy-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.privacy-head h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; }
.privacy-head h3 .icon { color: var(--panel-accent); font-size: 26px; }
.privacy-head p { font-size: 15px; color: var(--panel-ink-2); }
.grid-privacy { gap: 12px; }
.grid-privacy .row { padding: 14px; background: var(--panel-row-bg); border: 1px solid var(--panel-line); border-radius: calc(var(--panel-radius) - 4px); color: var(--panel-ink); }
.grid-privacy .row-icon { background: var(--panel-icon-bg); color: var(--panel-accent); }
.grid-privacy .row-text { color: var(--panel-ink-2); }
.grid-privacy .row:hover .row-title { color: var(--panel-accent); }

.tool-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.tool-group { display: flex; flex-direction: column; padding: 20px 22px; background: var(--surface); border: var(--group-border); border-radius: var(--card-radius); box-shadow: var(--group-shadow); }
.tool-group h3 { font-size: 19px; font-weight: 800; padding-bottom: 10px; }
.row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0; text-decoration: none; color: var(--ink); }
.tool-group .row { border-top: 1px solid var(--line-soft); }
.row:hover .row-title { color: var(--link-hover); }
.row-icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: calc(var(--icon-radius) - 2px); background: var(--c-tools-tint); color: var(--c-tools); font-size: 20px; }
.row-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.row-title { font-weight: 600; font-size: 16px; }
.row-text { font-size: 14px; color: var(--ink-2); }

/* Pro */
.pro-panel { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 30px; background: var(--pro-panel-bg); color: var(--pro-panel-ink); border: var(--pro-panel-border); border-radius: var(--panel-radius); }
.pro-panel > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.pro-panel h3 { font-size: 26px; font-weight: 800; }
.pro-panel p { color: var(--pro-panel-ink-2); max-width: 46em; }
.btn-pro { background: var(--pro-btn-bg); color: var(--pro-btn-ink); }

/* Ads: space is reserved so the page does not jump when an ad loads */
.ad-slot { min-height: 100px; display: grid; place-items: center; border-radius: var(--card-radius); background: var(--ad-bg); }
.ad-slot::before { content: "Advertisement"; font-size: 12px; color: var(--ink-3); }
/* Real ads keep a small "Advertisement" label above them, so they're never mistaken for the site's own links */
.ad-slot:has(ins) { display: block; padding-top: 4px; }
.ad-slot:has(ins)::before { display: block; text-align: center; margin-bottom: 4px; }

.no-results { order: 50; padding: 32px; text-align: center; font-size: 17px; font-weight: 600; background: var(--surface); border: var(--card-border); border-radius: var(--card-radius); }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); border-top: var(--header-border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; padding-bottom: 28px; font-size: 13px; font-weight: 500; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-inner a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-inner a:hover { color: var(--link-hover); }

@media (max-width: 640px) {
  .header-inner { justify-content: center; row-gap: 4px; padding-top: 8px; padding-bottom: 6px; }
  .main-nav a { padding: 0 9px; min-height: 40px; }
  .main-nav .theme-toggle { width: 40px; height: 40px; }
  .search .btn { flex: 1 1 auto; }
  .privacy-panel, .pro-panel { padding: 20px; }
}

/* Third homepage ad: double height (fits a 300×250 rectangle or a tall responsive unit) */
.ad-last { min-height: 200px; }
/* Home page: each category ends with an ad, set well apart from the apps above and below it */
main > .ad-section { margin: 24px 0; }

/* Right-side ad (app pages): shown only on screens at least 1200px wide, and stays in view while scrolling */
.ad-rail { display: none; }
@media (min-width: 1200px) {
  .ad-rail { display: block; position: sticky; top: calc(var(--stp-sabar-h, 0px) + var(--stp-head, 0px) + 24px); }
  .ad-rail-slot { min-height: 600px; }
}

/* Back to top button: appears after scrolling down */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--surface); font-size: 22px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 27, 45, .25);
  opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { filter: brightness(1.15); }
.to-top .icon { stroke-width: 2.5; }
@media print { .to-top { display: none !important; } }
main:focus { outline: none; }
.widget-more { color: var(--link-hover); font-weight: 600; text-underline-offset: 3px; margin-left: 4px; }

/* Discreet green tick on apps that are ready to use */
.ready { display: inline-block; position: relative; width: 16px; height: 16px; margin-left: 7px; border-radius: 50%; background: #2E9B62; vertical-align: -1px; flex-shrink: 0; }
.ready::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 4px; height: 7px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Home page: ordering the apps in each category */
.sort-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: var(--wrap, 1160px); margin: 8px auto 0; padding: 0 16px; }
.sort-label { font-size: 14px; color: var(--ink-2); margin-right: 4px; }
.sort-bar button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sort-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
@media (max-width: 560px) { .sort-bar { justify-content: flex-start; } }

/* Ask STP chat helper (js/ask.js) */
.ask-btn {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; background: var(--ink, #16233F); color: var(--surface, #fff);
  font: 700 15px var(--font-body, system-ui, sans-serif); box-shadow: 0 8px 22px rgba(11, 18, 34, .28); cursor: pointer;
}
.ask-btn:focus-visible { outline: 3px solid var(--accent, #F2A900); outline-offset: 3px; }
.ask-btn.is-hidden { display: none; }
/* The back-to-top arrow sits above the Ask STP button */
.has-ask .to-top { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 58px); }
@media (max-width: 599px) {
  .ask-btn { min-height: 42px; padding: 0 14px 0 12px; font-size: 14px; gap: 6px; }
  .ask-btn svg { width: 19px; height: 19px; }
  .to-top { width: 42px; height: 42px; font-size: 19px; }
  .has-ask .to-top { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 52px); }
}
@media (max-width: 899px) {
  .ask-raised .ask-btn { bottom: 84px; }
  .ask-raised .to-top { bottom: 142px; }
}
@media (max-width: 599px) { .ask-raised .to-top { bottom: 136px; } }
@media print { .ask-btn, .ask-panel { display: none !important; } }
.ask-panel {
  position: fixed; z-index: 61; inset: 0; display: none; flex-direction: column; background: var(--surface, #fff); color: var(--ink, #16233F);
  font: 400 15px/1.5 var(--font-body, system-ui, sans-serif);
}
.ask-panel.is-open { display: flex; }
@media (min-width: 600px) {
  .ask-panel { inset: auto 20px 20px auto; width: 390px; height: min(620px, calc(100vh - 40px)); border-radius: 18px; border: 1px solid var(--line, #DDE2EA); box-shadow: 0 18px 50px rgba(11, 18, 34, .25); overflow: hidden; }
}
.ask-head { display: flex; align-items: center; gap: 6px; padding: 12px 10px 12px 16px; background: var(--ink, #16233F); color: var(--surface, #fff); padding-top: max(12px, env(safe-area-inset-top, 0)); }
.ask-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.ask-head strong { font: 700 17px var(--font-display, inherit); }
.ask-head small { opacity: .75; font-size: 12.5px; }
.ask-icon { min-width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: transparent; color: inherit; font: 800 13px var(--font-body, inherit); letter-spacing: .06em; cursor: pointer; }
.ask-close { font-size: 26px; font-weight: 400; line-height: 1; }
.ask-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg, #F6F7F9); overscroll-behavior: contain; }
.ask-msg { max-width: 92%; padding: 10px 13px; border-radius: 16px; overflow-wrap: anywhere; }
.ask-bot { align-self: flex-start; background: var(--surface, #fff); border: 1px solid var(--line, #DDE2EA); border-bottom-left-radius: 5px; }
.ask-me { align-self: flex-end; background: var(--ink, #16233F); color: var(--surface, #fff); border-bottom-right-radius: 5px; }
.ask-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ask-card { display: flex; flex-direction: column; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line, #DDE2EA); background: var(--bg, #F6F7F9); color: inherit; text-decoration: none; }
.ask-card:hover, .ask-card:focus-visible { border-color: var(--ink, #16233F); }
.ask-card span { font-size: 13.5px; color: var(--ink-2, #3A4660); }
.ask-links, .ask-chips { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.ask-links a { font-weight: 700; color: var(--accent-text, inherit); }
.ask-chips { gap: 6px; }
.ask-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line, #DDE2EA); background: var(--surface, #fff); color: inherit; font: 600 13.5px var(--font-body, inherit); cursor: pointer; }
.ask-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line, #DDE2EA); background: var(--surface, #fff); padding-bottom: max(10px, env(safe-area-inset-bottom, 0)); }
.ask-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line, #DDE2EA); background: var(--bg, #F6F7F9); color: inherit; font: 400 16px var(--font-body, inherit); }
.ask-form input:focus { outline: none; border-color: var(--ink, #16233F); }
.ask-send { min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--ink, #16233F); color: var(--surface, #fff); font: 700 15px var(--font-body, inherit); cursor: pointer; }
.ask-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Phones: a short sheet along the bottom, a third of the screen, so the page stays visible above it */
@media (max-width: 599px) {
  .ask-panel { inset: auto 0 0 0; height: max(33vh, 220px); height: max(33dvh, 220px); border-top: 1px solid var(--line, #DDE2EA); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(11, 18, 34, .2); overflow: hidden; font-size: 14px; }
  .ask-head { padding: 4px 6px 4px 12px; }
  .ask-head small { display: none; }
  .ask-head strong { font-size: 15px; }
  .ask-icon { min-width: 36px; height: 34px; border-radius: 10px; }
  .ask-log { padding: 8px 10px; gap: 6px; }
  .ask-msg { padding: 7px 10px; }
  .ask-form { padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom, 0)); }
  .ask-form input, .ask-send { min-height: 38px; }
}

/* Rate this app: a slim row at the top of the footer on app pages (js/rate.js) */
.rate-bar { border-bottom: 1px solid var(--line-soft, var(--line)); }
.rate-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; color: var(--ink-2, inherit); }
.rate-label { font-weight: 600; }
.rate-stars { display: inline-flex; }
.rate-star { width: 36px; height: 36px; padding: 6px; border: 0; background: none; color: var(--ink-2, currentColor); cursor: pointer; border-radius: 8px; }
.rate-star svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: .55; transition: transform .12s ease; }
.rate-star.is-on svg { fill: #F2A900; stroke: #C98C00; opacity: 1; }
.rate-star:hover svg { transform: scale(1.12); }
.rate-star:focus-visible { outline: 2px solid var(--accent, #F2A900); outline-offset: 1px; }
.rate-note { display: inline-flex; flex-wrap: wrap; gap: 2px 12px; }
.rate-coffee { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rate-coffee:hover { color: var(--link-hover); }
@media (prefers-reduced-motion: reduce) { .rate-star svg { transition: none; } }
@media print { .rate-bar { display: none; } }

/* ---------- Light and dark mode ----------
   The choice is saved per browser (stp-theme); everyone starts in light mode. A script in <head> sets
   data-theme before the page paints, so there's no flash and no layout shift. App panels keep their light colours
   unless the app is marked dark-ready, so every app stays readable. Ad boxes keep a clear, separate surface and their
   "Advertisement" label in both modes, so ads never blend into the content around them. */
.theme-toggle { margin-left: 6px; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--btn-radius); border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.theme-toggle .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .tt-sun, html[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
html[data-theme="dark"] .theme-toggle .tt-sun { display: inline; }
html[data-theme="dark"] { color-scheme: dark;
  --bg: #0F1626; --surface: #172036; --ink: #E8ECF5; --ink-2: #C3CBDD; --ink-3: #9AA5BE; --line: #2F3B57; --line-soft: #222C44;
  --accent: #FF7A5C; --accent-text: #FF9A80; --eyebrow: #FF9A80; --focus: #FFB199; --link-hover: #FFB199;
  --c-tools: #E8ECF5; --c-tools-tint: #1C2640; --c-money: #E8ECF5; --c-money-tint: #1C2640; --c-learn: #E8ECF5; --c-play: #E8ECF5;
  --footer-bg: #121A2C; --footer-ink: #E8ECF5;
  --btn-primary-bg: #E8ECF5; --btn-primary-ink: #0F1626; --btn-primary-border: #E8ECF5;
  --input-border: 2px solid #8C98B3; --action-bg: #E8ECF5; --action-ink: #0F1626;
  --quiz-bg: #172036; --quiz-border: 2px solid #8C98B3;
  --card-shadow: 0 10px 22px rgba(0, 0, 0, .35); --widget-shadow: 0 14px 28px rgba(0, 0, 0, .4);
  --panel-bg: #172036; --panel-ink: #E8ECF5; --panel-ink-2: #C3CBDD; --panel-border: 1px solid #2F3B57; --panel-row-bg: #1C2640; --panel-line: #2F3B57; --panel-icon-bg: #24304D; --panel-accent: #E8ECF5;
  --pro-bg: #24304D; --pro-ink: #FFFFFF;
  --ad-bg: #1A2338;
}
html[data-theme="dark"] body { background-color: #0F1626; background-image: linear-gradient(#1A2337 1px, transparent 1px), linear-gradient(90deg, #1A2337 1px, transparent 1px); color: var(--ink); }
html[data-theme="dark"] .card, html[data-theme="dark"] .related-card, html[data-theme="dark"] .rail-tile, html[data-theme="dark"] .try-chip { background-color: var(--surface); color: var(--ink); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background-color: #121A2C; color: var(--ink); }
html[data-theme="dark"] .site-header { background: #0F1626; }
html[data-theme="dark"] .brand-logo { background: #fff; border-radius: 10px; }
html[data-theme="dark"] .ad-slot { background: var(--ad-bg); outline: 1px solid var(--line); }
html[data-theme="dark"] .ad-slot::before { color: #B8C2D8; }
/* Apps not yet made for dark mode: their panel keeps the light palette */
html[data-theme="dark"] .tool-panel:not(.dark-ready) { color-scheme: light; color: #16233F;
  --bg: #FDFCF7; --surface: #FFFFFF; --ink: #16233F; --ink-2: #3D4A66; --ink-3: #5A6684; --line: #D5DBE7; --line-soft: #E9EDF5;
  --accent: #D94A2B; --accent-text: #B83A1F; --focus: #D94A2B; --link-hover: #B83A1F;
  --btn-primary-bg: #16233F; --btn-primary-ink: #FFFFFF; --btn-primary-border: #16233F; --input-border: 2px solid #16233F; --action-bg: #16233F; --action-ink: #FFFFFF;
  --quiz-bg: #FFFFFF; --quiz-border: 2px solid #16233F;
  --panel-bg: #F4F6FA; --panel-ink: #16233F; --panel-ink-2: #3D4A66; --panel-border: 1px solid #D5DBE7; --panel-row-bg: #FFFFFF; --panel-line: #D5DBE7; --panel-icon-bg: #E9EDF5; --panel-accent: #16233F;
  --pro-bg: #16233F; background-color: #FDFCF7; border-radius: 16px; }
html[data-theme="dark"] .tool-panel:not(.dark-ready) input, html[data-theme="dark"] .tool-panel:not(.dark-ready) select, html[data-theme="dark"] .tool-panel:not(.dark-ready) textarea { background-color: #FFFFFF; color: #16233F; }
html[data-theme="dark"] .widget-password { color: #16233F; }
html[data-theme="dark"] .widget-password .widget-title { color: #16233F; }
html[data-theme="dark"] .widget-password input, html[data-theme="dark"] .widget-password select { background-color: #FFFFFF; color: #16233F; }
html[data-theme="dark"] .brand-accent { color: #16233F; background: #FFE066; padding: 0 3px; margin: 0 1px; border-radius: 3px; }

/* Hover feedback on everything clickable, so it is clear what can be pressed (v218p) */
.btn, .main-nav a, .theme-toggle, .try-chip, .sort-bar button, .rate-star, .footer-inner a, .widget-more, .ask-card { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover, .main-nav a:hover, .theme-toggle:hover, .try-chip:hover, .sort-bar button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(15, 27, 45, .35); }
.main-nav .nav-cat:hover, .main-nav .nav-login:hover, .theme-toggle:hover { background-color: color-mix(in srgb, currentColor 8%, transparent); }
.btn:active, .main-nav a:active, .theme-toggle:active, .try-chip:active, .sort-bar button:active { transform: translateY(0) scale(.97); box-shadow: none; }
.footer-inner a:hover, .widget-more:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Inside apps: a light brighten and press, no movement, so app layouts are never shifted */
.tool-panel button:not(:disabled), .tool-panel [role="button"], .tool-panel label[for], .tool-panel summary { cursor: pointer; }
.tool-panel button:not(:disabled):hover { filter: brightness(1.08) saturate(1.05); }
.tool-panel button:not(:disabled):active { filter: brightness(.94); }
.related-card:active, .rail-tile:active, .try-chip:active { transform: scale(.97); }

/* Ad above every app (v218q) */
.ad-slot.ad-top { min-height: 90px; margin: 0 0 12px; }

/* 5th ad: full width at the very bottom of every app page (v218v) */
.ad-slot.ad-end { min-height: 200px; margin: 40px 0 8px; }

/* v218x: home search results get their own section right under the hero (js/site.js); the rest of the page hides meanwhile */
.search .search-box { flex: 1 1 280px; max-width: 420px; min-width: 0; }
.search .search-box input { width: 100%; max-width: none; }
main > .search-results { order: 0; }
.search-results[hidden] { display: none; }
.search-results .sec-head h2 { font-size: clamp(22px, 3vw, 30px); }
.search-results .search-close { min-height: 40px; padding: 0 16px; font-size: 14px; }
.search-none { font-size: 16px; color: var(--ink-2); }
@media (max-width: 899px) { .is-searching .hero-widget { display: none; } }
/* v2730: while search results show, the ads that belong under the hidden New arrivals / Featured sections are hidden too (Robert 24 Nov: no ads stacked on their own) */
.is-searching .ad-arrivals, .is-searching .ad-featured { display: none !important; }
@media (max-width: 600px) { .search .search-box { flex-basis: 100%; max-width: none; } }
.app-ver { flex-basis: 100%; margin: 0; font-size: 11px; font-weight: 400; opacity: .55; }
.footer-licence { flex-basis: 100%; margin: 0; font-size: 12px; font-weight: 400; opacity: .8; line-height: 1.5; }
.footer-licence a { min-height: 0; display: inline; text-decoration: underline; }
/* Phones: empty space under the licence so the Ask STP and back-to-top buttons (about 110px tall together) sit over blank space, not the text */
@media (max-width: 640px) { .footer-licence { padding-bottom: 92px; } }

/* Plan code on app cards */
.card { position: relative; }
.card-plan { position: absolute; right: 12px; bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); opacity: .45; }
.card:hover .card-plan { opacity: .8; }

/* Free vs upgrade box on paid app pages */
.tier-box { margin: 0 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.tier-box h2 { margin: 0 0 12px; font-size: 20px; }
.tier-cols { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tier-col { padding: 12px; border-radius: 10px; background: var(--card, rgba(0,0,0,.03)); }
.tier-col h3 { margin: 0 0 6px; font-size: 15px; }
.tier-col p { margin: 0; font-size: 14px; line-height: 1.45; }
.tier-up { background: var(--pro-bg); color: var(--pro-ink); }
.tier-how { margin: 12px 0 0; font-size: 14px; }
@media (max-width: 600px) { .tier-cols { grid-template-columns: 1fr; } }
.tier-up h3, .tier-up p { color: inherit; }
.writeup .tier-box .tier-up h3, .writeup .tier-box .tier-up p { color: var(--pro-ink); opacity: 1; }
.tier-up { position: relative; padding-top: 22px; }
.tier-flag { position: absolute; top: -10px; left: 12px; right: 12px; padding: 2px 8px; border-radius: 6px; background: var(--accent, #E2582F); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.tier-cols { margin-top: 10px; }

.tier-flag { background: #2563EB; color: #fff; }
.writeup .tier-box .tier-up .tier-noads { margin-top: 8px; font-weight: 700; }
.writeup .tier-box .tier-noads::before { content: '\2713  '; }
.writeup .tier-box a.tier-cta { display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 10px; background: #2563EB; color: #fff; font-weight: 700; text-decoration: none; }
.writeup .tier-box a.tier-cta:hover { background: #1D4ED8; }
/* v1600b: on wide screens the header runs the full width (logo far left, menu far right) */
@media (min-width: 1240px) { .site-header .header-inner { max-width: 1700px; } }

/* v1900e uniform Pro flow */
.pro-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, transparent); font-size: 14px; }
.pro-bar-tag { font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #1d4ed8; color: #fff; }
.pro-bar-text { flex: 1 1 260px; }
.pro-bar-price { display: block; opacity: .8; font-size: 13px; }
.pro-bar-acts { display: flex; gap: 10px; align-items: center; }
.pro-bar-btn { font: inherit; font-weight: 700; padding: 7px 12px; border-radius: 10px; border: 0; background: #1d4ed8; color: #fff; cursor: pointer; }
.pro-bar-link { font-size: 13px; }
.pro-bar-meter { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.pro-meter-track { flex: 0 0 140px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pro-meter-fill { display: block; height: 100%; background: #16a34a; }
.pro-meter-hot .pro-meter-fill { background: #d97706; }
.pro-meter-warn { font-weight: 700; color: #b45309; }
.pro-bar-trial .pro-bar-tag { background: #16a34a; }
.pro-bar-warn .pro-bar-tag { background: #d97706; }
.pro-bar-on .pro-bar-tag { background: #16a34a; }
.pro-bar-note { display: block; font-size: 13px; }
.tier-value, .tier-data, .tier-trial { font-size: 14px; }
.tier-cta-alt { margin-left: 8px; }
.plan-best { font-size: 13px; margin: 4px 0 8px; }
.stp-sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.stp-sheet-box { position: relative; max-width: 440px; width: 100%; background: var(--bg, #fff); color: var(--ink, #111); border-radius: 16px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.stp-sheet-box h2 { margin: 0 0 10px; font-size: 20px; }
.stp-sheet-box label { display: block; margin: 10px 0; font-weight: 700; }
.stp-sheet-box input { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.stp-steps { padding-left: 18px; margin: 0 0 8px; font-size: 14px; }
.stp-sheet-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; cursor: pointer; color: inherit; }
.stp-sheet-note { font-size: 13px; opacity: .85; }

.founder-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; border: 2px solid #16a34a; font-size: 15px; }
.plan-picker { margin: 0 0 16px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-picker select { font: inherit; padding: 6px 8px; border-radius: 8px; max-width: 100%; }
.plan-pick { outline: 3px solid #16a34a; outline-offset: 3px; }
.plans-sub { grid-column: 1 / -1; margin: 18px 0 0; font-size: 20px; }
.unlock { margin: 20px 0; } .unlock summary { font-weight: 700; cursor: pointer; }
.unlock-find { margin: 10px 0; padding: 8px; width: 100%; max-width: 320px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.unlock-wrap { overflow-x: auto; } .unlock table { border-collapse: collapse; font-size: 13px; min-width: 640px; } .unlock td, .unlock th { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; vertical-align: top; }

/* v1900v Share this app / page */
.stp-share{position:relative;display:inline-block;margin:6px 0 12px}
.stp-share-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border-radius:999px;border:2px solid #13213f;background:#13213f;color:#fff;font-family:inherit;font-weight:600;font-size:15px;line-height:1.2;cursor:pointer;box-shadow:0 0 0 4px rgba(47,191,122,.35);transition:box-shadow .2s}
.stp-share-btn:hover,.stp-share-btn:focus-visible{box-shadow:0 0 0 6px rgba(47,191,122,.55)}
.stp-share-btn svg{width:18px;height:18px}
[data-theme="dark"] .stp-share-btn{background:#2fbf7a;border-color:#2fbf7a;color:#0b1530}
.stp-share-pop{position:absolute;left:0;top:calc(100% + 8px);width:420px;max-width:calc(100vw - 32px);background:#fff;color:#222;border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.28);padding:12px;z-index:900;text-align:left}
.stp-share-pop[hidden]{display:none}
.stp-share-note{font-size:12px;color:#666;margin:0 2px 6px}
.stp-share-prev{background:#dcf8c6;border-radius:10px;padding:5px}
.stp-share-prev img{width:100%;height:auto;border-radius:7px;display:block}
.stp-share-meta{background:#cfe9b8;padding:6px 8px;border-radius:0 0 7px 7px;font-size:12px;line-height:1.35;display:flex;flex-direction:column}
.stp-share-meta span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#333}
.stp-share-meta small{color:#555;margin-top:2px}
.stp-share-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px 4px;margin-top:12px}
.stp-share-tile{display:flex;flex-direction:column;align-items:center;gap:4px;font-family:inherit;font-size:12px;line-height:1.2;color:#333;text-decoration:none;background:none;border:0;padding:0;cursor:pointer}
.stp-share-tile:hover .stp-share-ic{transform:translateY(-2px)}
.stp-share-ic{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;transition:transform .15s}
.stp-share-ic svg{width:22px;height:22px}
.stp-share-msg{font-size:12px;color:#1d8a5a;margin:6px 2px 0;min-height:0}
.stp-share-msg:empty{display:none}
@media print{.stp-share{display:none}}
/* v2100: keep room for the Share button while the page loads, so nothing jumps when it appears (no layout shift).
   Room = button 40px + its margins 18px + the column gap of the box it sits in. */
.app-intro > h1 + :not(.stp-share){margin-top:70px}
.hero-text > h1 + :not(.stp-share){margin-top:78px}
.page-hero-inner > h1 + :not(.stp-share){margin-top:72px}
html.no-share .app-intro > h1 + *, html.no-share .hero-text > h1 + *, html.no-share .page-hero-inner > h1 + *{margin-top:0}
/* pages that never get the button keep no room (so nothing moves up either) */
.page-404 .page-hero-inner > h1 + *, [class*="page-account"] .page-hero-inner > h1 + *, .page-site-admin .page-hero-inner > h1 + *{margin-top:0}
@media print{.app-intro > h1 + *, .hero-text > h1 + *, .page-hero-inner > h1 + *{margin-top:0}}
.pro-bar-hook { display: block; margin-top: 2px; font-size: 13px; opacity: .9; }

/* v2070 picture icons: app pictures (fixed sizes, so nothing jumps while they load) and category pictures */
.card-icon:has(.app-pic), .row-icon:has(.app-pic), .related-icon:has(.app-pic), .rail-icon:has(.app-pic), .try-icon:has(.app-pic), .zone-icon:has(.cat-pic) { background: none; border: 0; padding: 0; overflow: visible; }
.app-pic { display: block; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.row-icon .app-pic, .related-icon .app-pic { width: 40px; height: 40px; border-radius: 10px; }
.rail-icon .app-pic { width: 32px; height: 32px; border-radius: 8px; }
.try-icon:has(.app-pic) { border-radius: 9px; }
.try-icon .app-pic { width: 34px; height: 34px; border-radius: 9px; }
.card-featured .card-icon .app-pic { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 4px 12px rgba(15, 27, 45, .12); }
.cat-pic { display: block; width: 100%; height: 100%; border-radius: var(--icon-radius); overflow: hidden; }

/* v2080: app picture after the app name in the title */
.title-pic { display: inline-block; width: 1.1em; height: 1.1em; max-width: 56px; max-height: 56px; border-radius: 22%; vertical-align: -0.18em; margin-left: 0.18em; box-shadow: 0 3px 10px rgba(15, 27, 45, .15); }

/* v2090: category and Featured pictures before the section headings; app picture in the home Password Generator box */
.head-pic { display: inline-block; width: 1.05em; height: 1.05em; border-radius: 22%; vertical-align: -0.16em; margin-right: 0.3em; box-shadow: 0 3px 10px rgba(15, 27, 45, .14); }
.widget-pic { display: inline-block; width: 1.5em; height: 1.5em; border-radius: 22%; vertical-align: -0.45em; margin-right: 0.4em; }

/* v2100: on phones each category shows its first 6 apps; "Show all" opens the rest (the button is in the page from the start, so nothing jumps) */
.sec-more{display:none}
@media (max-width:700px){
  .sec:not(.show-all):not(.search-results) > .grid > a.card:nth-of-type(n+7){display:none}
  .sec-more{display:block;margin:14px auto 0;min-height:44px}
  .sec.show-all .sec-more{display:none}
}
/* v2510: Browse all apps and search results always show every app (v2100's 6-app limit is for the category boxes only);
   an ad space sits on its own full row after every 8 apps, on the page background, and loads only when scrolled near */
.search-results .grid > .ad-slot.ad-list { grid-column: 1 / -1; min-height: 250px; margin: 6px 0; }

/* v2100: finger-sized taps on touch screens (44px), for the small links and buttons found in the 103-page check */
@media (pointer:coarse){
  .cb-win-min,.cb-win-x{min-width:44px;min-height:44px}
  .fx-link,.sh-plan-link,.sh-leglink,.nm-linkbtn,.se-link,.ad-link,.pro-bar-link{display:inline-flex;align-items:center;min-height:44px}
  input[type="range"]{min-height:32px}
  input[type="checkbox"],input[type="radio"]{min-width:22px;min-height:22px}
}

/* v2130: Add shortcut button + steps pop-up */
.stp-add-btn{display:inline-flex;align-items:center;gap:8px;margin-left:10px;padding:9px 18px;border-radius:999px;border:2px solid #f2a900;background:#fff7e0;color:#13213f;font-family:inherit;font-weight:600;font-size:15px;line-height:1.2;cursor:pointer;vertical-align:top}
.stp-add-btn:hover,.stp-add-btn:focus-visible{background:#ffeab3}
.stp-add-btn svg{width:18px;height:18px}
.stp-add-s{display:none}
@media (max-width:360px){.stp-add-l{display:none}.stp-add-s{display:inline}.stp-add-btn{padding:9px 14px;margin-left:6px}}
.stp-add-dim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9998}
.stp-add-pop{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;background:#fff;color:#13213f;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.35);padding:16px 18px;font-size:15px;line-height:1.45;z-index:10001;text-align:left} /* v2750c: above the dim, which the ad-lift helper raises to 10000 */
.stp-add-pop h3{margin:0 0 6px;font-size:18px;line-height:1.25;display:flex;align-items:center;gap:12px}
.stp-add-pop h3 img{width:44px;height:44px;border-radius:10px;flex:none}
.stp-add-pop ol{padding-left:22px;margin:8px 0}.stp-add-pop li{margin:7px 0}
.stp-add-pop .k{display:inline-block;background:#e9edf5;border-radius:6px;padding:1px 7px;font-weight:600}
.stp-add-sub{margin:0;color:#5b6478}.stp-add-safe{margin:6px 0 0;font-size:13px;color:#5b6478}
.stp-add-pc{margin:0 0 6px;font-size:12px;font-weight:600;color:#8a5a00}
.stp-add-ok{width:100%;margin-top:12px;padding:10px;border:0;border-radius:8px;background:#13213f;color:#fff;font:inherit;font-weight:600;cursor:pointer}
/* v2130b: place picker, bookmarks chip, Done message */
.stp-add-opt{display:flex;gap:12px;align-items:center;width:100%;margin:8px 0 0;padding:10px 12px;border-radius:10px;border:2px solid #f2a900;background:#fff7e0;color:#13213f;font:inherit;text-align:left;cursor:pointer}
.stp-add-opt:hover,.stp-add-opt:focus-visible{background:#ffeab3}
.stp-add-opt b{display:block}.stp-add-opt small{display:block;color:#5b6478;font-size:13px}
.stp-add-oi{font-size:22px;flex:none}
.stp-add-hint{margin:10px 0 0;font-weight:700;color:#8a5a00}
.stp-add-cancel{background:#e9edf5;color:#13213f}
.stp-add-chip{display:inline-flex;align-items:center;gap:8px;margin:8px 0;padding:6px 12px;border-radius:8px;background:#e9edf5;color:#13213f;font-weight:700;text-decoration:none;cursor:grab}
.stp-add-chip img{border-radius:4px}
.stp-add-done{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);max-width:calc(100vw - 32px);background:#1f9d55;color:#fff;padding:12px 20px;border-radius:10px;font-weight:700;box-shadow:0 6px 20px rgba(0,0,0,.3);z-index:10000}
/* v2160: banner pinned to the bottom of the screen, and fixed-height ad spaces so pages never jump */
.ad-slot.ad-anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 60px; min-height: 60px; margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: 0 -2px 10px rgba(0,0,0,.12); }
.ad-slot.ad-anchor:has(ins) { padding-top: 0; }
.ad-slot.ad-anchor:has(ins)::before { display: none; }
.ad-anchor-x { position: absolute; top: -26px; right: 8px; width: 44px; height: 26px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
html.has-ad-anchor body { padding-bottom: 60px; }
html.has-ad-anchor .to-top { bottom: 76px; }
html.stp-showads.has-ad-anchor .has-ask .to-top, html.stp-showads.has-ad-anchor.has-ask .to-top { bottom: 144px; } /* v2180c: admin mode with Ads: Show only, back-to-top sits above Ask STP */
.ad-slot { overflow: hidden; }
html.has-ad-anchor .ask-btn { bottom: 84px !important; } html.has-ad-anchor .ask-panel { bottom: 70px; }
/* v2160b: app column centred on wide screens (>=1900px) with Try these next in the right gutter; Pro cards fill the row; text pages as wide as app pages; header lined up by js/site.js */
@media (min-width:1900px){body .app-main.wrap{max-width:1880px}body.app-page.wide-desktop .app-main.wrap{max-width:2380px}body .app-main .app-layout{grid-template-columns:300px minmax(0,1fr) 300px}body .app-layout>.app-col{grid-column:2}body .app-layout>.side-rail{grid-column:3}}
@media (min-width:900px){main .plans{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1240px){.site-header .header-inner{max-width:var(--stp-content-w,1200px)}.wide-desktop .site-header .header-inner{max-width:1700px}}
@media (min-width:1900px){.app-page .site-header .header-inner{max-width:calc(min(1880px,100vw) - 680px)}.app-page.wide-desktop .site-header .header-inner{max-width:calc(min(2380px,100vw) - 680px)}}
@media (min-width:1240px){body:not(.app-page) .wrap{max-width:1700px}}
@media (min-width:1900px){body:not(.app-page) .wrap{max-width:calc(min(2380px,100vw) - 680px)}}
/* v2160c: every page at the standard (Morse Code Practice) width; write-ups use the full app column */
@media (min-width:1240px){body:not(.app-page) .wrap:not(.header-inner){max-width:1200px!important}body.app-page.wide-desktop .app-main.wrap,body .app-main.wrap{max-width:1200px!important}}
@media (min-width:1900px){body.app-page.app-page.app-page .app-main.wrap{max-width:1880px!important}}
.app-content{max-width:none!important}.app-content:has(.writeup .ad-slot) .writeup > section > :not(.ad-slot){max-width:none!important}

/* v2160d: rdc_sadmin "Ads: Show" makes every ad space visible as a dashed box (no real ads until AdSense is on) */
html.stp-showads .ad-slot{display:grid!important}html.stp-showads .ad-rail{display:block!important}html.stp-showads .ad-slot.ad-anchor{display:grid!important}
/* v2160d Admin: the chosen step is highlighted, the rest fade back (every style, using its own accent colour) */
#ap-panel.ap-focus .ap-step,#ap-panel.ap-focus ~ details.ap-sec{opacity:.35;filter:saturate(.4);transition:opacity .2s}
#ap-panel.ap-focus .ap-step.ap-cur{opacity:1;filter:none;border:2px solid var(--c-acc,#2f6fed);border-radius:14px;padding:12px;box-shadow:0 0 0 4px color-mix(in srgb,var(--c-acc,#2f6fed) 25%,transparent)}
#ap-panel.ap-focus ~ details.ap-sec.ap-cur{opacity:1;filter:none}
.ap-flow button.on{background:var(--c-acc,#2f6fed)!important;border-color:var(--c-acc,#2f6fed)!important}
.ap-flow button.on b,.ap-flow button.on small{color:var(--c-bg,#fff)!important}.ap-flow button.on .ap-n{background:var(--c-bg,#fff);color:var(--c-acc,#2f6fed)}
/* v2160e: the Admin page is the one exception: full screen width (room for Traffic etc.) */
@media (min-width:1240px){body:has(#sad) .wrap:not(.header-inner){max-width:none!important}}
/* v2730b: every admin screen uses the same full width beside the admin panel, with the same side margins (Robert 24 Nov) */
@media (min-width:1240px){body.page-site-admin .wrap:not(.header-inner),body.page-site-admin-users .wrap:not(.header-inner),body.page-account-admin .wrap:not(.header-inner),body.go-admin-page .wrap:not(.header-inner){max-width:none!important;padding-left:40px!important;padding-right:40px!important}body.page-site-admin-users .au,body.page-account-admin .acct-admin,body.page-site-admin #sad{max-width:none!important}body.go-admin-page .ga-wrap{max-width:none!important;padding-left:40px!important;padding-right:40px!important}}
/* v2160f Admin: jumps stop below the sadmin bar and header with a gap; the step strip has room so the chosen button's ring is never cut off */
#sad .ap-step,#sad details.ap-sec,#sad #sad-now,#sad .ap-tile{scroll-margin-top:calc(var(--stp-sabar-h,0px) + var(--stp-head,72px) + 24px)}
#sad .ap-flow{padding:8px 8px 10px;margin-left:-8px;margin-right:-8px}
/* v2190b: test ads (SADMIN-TEST site, no AdSense ID yet) follow the site-wide switch for every visitor; each box says TEST AD "ON"/"OFF" and its size */
html.stp-testads .ad-slot{display:grid!important}html.stp-testads .ad-rail{display:block!important}html.stp-testads .ad-slot.ad-anchor{display:grid!important}
html.stp-testads.has-ad-anchor .has-ask .to-top, html.stp-testads.has-ad-anchor.has-ask .to-top { bottom: 144px; }
.stp-testad{font:700 13px/1.2 system-ui,sans-serif;letter-spacing:.04em;color:#0b5d2a;background:#dff5e6;border:2px dashed #1e8a4a;border-radius:6px;padding:4px 10px;white-space:nowrap;pointer-events:none}
.stp-testad.off{color:#5a5f6b;background:#eceef2;border-color:#8a90a0}
html.stp-testads .ad-slot.ad-anchor{background:var(--surface,#fff)}
/* v2190c: wide screens (>=1900px) - the end ad lines up with the app column and the side column, not the empty left gutter */
@media (min-width:1900px){body.app-page .app-main>.ad-slot.ad-end{margin-left:340px;margin-right:0;width:auto;max-width:none}}

/* v2190d: hidden labels stay pinned inside their own box (they could stretch the page below the footer) */
.visually-hidden{top:0!important;left:0!important}
.fr-list{position:relative}

/* v2190e: owner bar ad buttons state dots; My view OFF hides every ad space for the owner on this device */
.stp-sabar .sa-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#c62828;margin-right:6px;vertical-align:0}.stp-sabar .sa-dot.on{background:#1f9d55}
html.stp-mynoads .ad-slot,html.stp-mynoads .ad-rail,html.stp-mynoads.stp-testads .ad-slot,html.stp-mynoads.stp-testads .ad-rail,html.stp-mynoads.stp-testads .ad-slot.ad-anchor{display:none!important}
@media (max-width:1599px){.stp-sabar .sa-xl{display:none}}
.stp-sabar .sa-need{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:#e8a200;color:#1a1300;font-size:12px;line-height:18px;text-align:center;margin-left:4px}
/* v2250c: category heading pictures the same size as the Featured app icons (77px); smaller on phones */
h2 .head-pic { width: 77px; height: 77px; vertical-align: middle; margin-right: 0.35em; }
@media (max-width: 600px) { h2 .head-pic { width: 56px; height: 56px; } }
/* v2250d: icons never alone on a line (glued to the next/previous word), long titles on two lines */
.tp-glue { white-space: nowrap; }
.h1-sub { display: block; font-size: .55em; font-weight: 600; margin-top: .15em; line-height: 1.15; }

/* v2440: New arrivals this week (above Categories), last week's at exactly half size, then an ad */
main > .sec.arrivals, main > .ad-slot.ad-arrivals { order: 1; }
.arrivals[data-off], .ad-arrivals[data-off], .arrivals [hidden] { display: none !important; }
.arrivals .sec-head { margin-bottom: 18px; }
.arrivals-last-title { margin: 34px 0 12px; font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.arrivals-last { zoom: 0.5; }
.arrivals-last-title + .arrivals-last { margin-top: 0; }
.arr-nw { white-space: nowrap; }
.ad-arrivals { margin-top: 8px; }
@media (max-width: 600px) {
  #arrivals-title { font-size: 21px; white-space: nowrap; }
  #arrivals-title .head-pic { width: 44px; height: 44px; margin-right: 0.3em; }
  .arrivals-last-title { font-size: 18px; margin-top: 26px; }
}
/* v2480: Free/Pro box beside the app title on wide screens (phones keep it under the title) */
@media (min-width:1000px){
.app-col:has(> .pro-bar:not(.pb-under)){display:grid;grid-template-columns:minmax(380px,var(--pb-l,1.25fr)) minmax(300px,1fr);column-gap:28px;row-gap:32px}
.app-col:has(> .pro-bar:not(.pb-under)) > *{grid-column:1 / -1;min-width:0}
.app-col:has(> .pro-bar:not(.pb-under)) > .app-intro{grid-column:1;max-width:none}
.app-col:has(> .pro-bar:not(.pb-under)) > .pro-bar:not(.pb-under){grid-column:2;grid-row:span 1;align-self:stretch;display:block;margin:0;font-size:13px;line-height:1.45}
.app-col > .app-intro + .pro-bar:not(.pb-under){margin-top:0}
.app-col:has(> .pro-bar:not(.pb-under)) > .pro-bar:not(.pb-under) .pro-bar-tag{display:inline-block;margin-right:6px;vertical-align:1px}
.app-col:has(> .pro-bar:not(.pb-under)) > .pro-bar:not(.pb-under) .pro-bar-text{display:inline}
.app-col:has(> .pro-bar:not(.pb-under)) > .pro-bar:not(.pb-under) .pro-bar-acts{display:flex;flex-wrap:wrap;margin-top:8px}
.app-col:has(> .pro-bar:not(.pb-under)) > .pro-bar:not(.pb-under) .pro-bar-meter{display:block;margin-top:6px}
}

/* v2710: owner / backup admin bar shown as a left panel (js/site.js stpSaLeft) */
:root{--sal-w:236px}.stp-sabar.sal{position:fixed!important;left:0;top:0;bottom:0;width:var(--sal-w);height:auto!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:6px!important;padding:14px 12px!important;overflow-y:auto;z-index:70;border-right:1px solid rgba(255,255,255,.12);box-shadow:2px 0 12px rgba(0,0,0,.18);font-size:13.5px;line-height:1.35;white-space:normal!important}.stp-sabar.sal .sal-h{font:700 11px/1 system-ui;letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin:10px 2px 2px}.stp-sabar.sal .sal-top{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px}.stp-sabar.sal .sa-ver{align-self:flex-start;padding:2px 8px;border-radius:9px;background:rgba(255,255,255,.14)}.stp-sabar.sal .sa-long{display:revert!important}.stp-sabar.sal .sa-more{display:none!important}.stp-sabar.sal label{display:flex;flex-direction:column;gap:4px}.stp-sabar.sal select{width:100%;padding:6px}.stp-sabar.sal>a,.stp-sabar.sal>button{display:block!important;text-align:left;width:100%;padding:8px 10px!important;border-radius:8px;box-sizing:border-box;margin:0!important}.stp-sabar.sal>a:hover,.stp-sabar.sal>button:hover{background:rgba(255,255,255,.1)}.stp-sabar.sal [data-lo="1"]{margin-top:auto!important}.sal-close,.sal-tab{display:none}html.sal-on{--stp-sabar-h:0px!important}@media (min-width:900px){html.sal-on body{padding-left:var(--sal-w)!important}}@media (max-width:899px){.stp-sabar.sal{transform:translateX(-105%);transition:transform .2s;width:min(82vw,300px)}html.sal-open .stp-sabar.sal{transform:none}.sal-close{display:block;background:none;border:0;color:inherit;font-size:22px;cursor:pointer}.sal-tab{display:block;position:fixed;left:0;top:45%;z-index:69;writing-mode:vertical-rl;transform:rotate(180deg);background:#1b2a4a;color:#fff;border:0;border-radius:0 8px 8px 0;padding:12px 6px;font:700 12px system-ui;letter-spacing:.08em;box-shadow:2px 2px 8px rgba(0,0,0,.3)}html.sal-open .sal-tab{display:none}html.sal-open body::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:68}}
/* v2760b: while searching on the home page the New arrivals, Featured and section ads hide, even with test/owner ads showing (the every-8-results ads and the bottom anchor bar stay) */
html.is-searching .ad-arrivals,html.is-searching .ad-featured,html.is-searching .ad-section{display:none!important}

/* v2770b: admin style (Affiliate Matches mockup look) on every admin page; html.adm is set in partials/head.html on /site-admin/ and /account/admin/ (GO! admin and STP FTP admin keep their own styles). Side panel navy everywhere. */
html.adm{--k-bg:#f4f6fb;--k-card:#fff;--k-ink:#14213d;--k-mut:#4a5670;--k-line:#dde3ef;--k-navy:#10214a;--k-side:#0c1838;--k-acc:#1f5fe0}
html.adm body{background:var(--k-bg)!important;color:var(--k-ink)!important;font-family:Inter,system-ui,sans-serif!important}
html.adm body::before,html.adm body::after{display:none!important}
html.adm .site-header{background:var(--k-navy)!important;border:0!important}
html.adm .site-header .brand-name,html.adm .site-header .brand-name *{color:#fff!important;background:none!important}
html.adm .site-header .main-nav a,html.adm .site-header .main-nav button{background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.55)!important}
html.adm .site-header .main-nav .nav-pro{background:#fff!important;color:var(--k-navy)!important}
.sal{background:#0c1838!important;color:#dfe6f8!important;border:0!important}
.sal *{color:#dfe6f8!important;border-color:rgba(255,255,255,.3)!important}
.sal .sal-h{color:#9fb0d8!important}
.sal a{text-decoration:none!important;display:block;padding:7px 10px;border-radius:8px}
.sal a:hover{background:rgba(255,255,255,.08)}
.sal a[aria-current],.sal a.on{background:#1f5fe0!important;color:#fff!important}
.sal select{background:#16244d!important}
.sal button{background:#16244d!important}
html.adm .page-hero{background:transparent!important;border:0!important;padding:18px 0 4px!important}
html.adm .page-hero h1{font-size:30px!important;margin:4px 0!important;color:var(--k-ink)!important}
html.adm .page-hero .crumbs,html.adm .page-hero .page-eyebrow{font-size:13px!important;margin:0!important}
html.adm .page-body{padding-top:6px!important}
html.adm .au-tabs button,html.adm .sad-tabs button{background:var(--k-card)!important;color:var(--k-ink)!important;border:1px solid #b9c3d8!important;border-radius:999px!important;font-weight:600!important}
html.adm .au-tabs button[aria-selected=true],html.adm .sad-tabs button[aria-selected=true]{background:var(--k-navy)!important;color:#fff!important;border-color:var(--k-navy)!important}
html.adm .btn,html.adm .btn-primary{background:var(--k-acc)!important;color:#fff!important;border:0!important;font-weight:600!important}
html.adm .au-stat,html.adm .au-bk,html.adm .au-wrap,html.adm .af-card{background:var(--k-card)!important;border-color:var(--k-line)!important;border-radius:12px!important}
html.adm .au-stat b{font-size:24px!important}
html.adm .au-stat{min-height:0!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper]{background:transparent!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] a{color:var(--k-acc)!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] h1,html.adm:not([data-theme=dark]) #sad[data-style=paper] h2,html.adm:not([data-theme=dark]) #sad[data-style=paper] h3{color:var(--k-ink)!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] .ap-step,html.adm:not([data-theme=dark]) #sad[data-style=paper] [class*="num"]{background:var(--k-navy)!important;color:#fff!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] section,html.adm:not([data-theme=dark]) #sad[data-style=paper] article,html.adm:not([data-theme=dark]) #sad[data-style=paper] [class*="card"]:not(select){background:var(--k-card)!important;border-radius:12px!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] .ap-frame{background:transparent!important;border:0!important;padding:0!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] [class*="bar"] i,html.adm:not([data-theme=dark]) #sad[data-style=paper] [class*="bars"] > *{background:var(--k-acc)!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] select,html.adm .au select,html.adm .au input{background:#fff!important;color:var(--k-ink)!important;border:1px solid #b9c3d8!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] .ap-glance{color:#8a4b00!important}
html.adm:not([data-theme=dark]) #sad[data-style=paper] .ap-n,html.adm:not([data-theme=dark]) #sad[data-style=paper] .ap-step b{background:var(--k-navy)!important;color:#fff!important}
html.adm .page-hero,html.adm .page-hero-inner{min-height:0!important;padding-top:10px!important;padding-bottom:0!important;margin:0!important}
html.adm .page-hero::before,html.adm .page-hero::after{display:none!important}
html.adm .page-hero .page-eyebrow{display:none!important}
html.adm .page-body{margin-top:0!important;padding-top:8px!important}
html.adm .page-hero h1{margin:2px 0 6px!important}
html.adm[data-theme=dark]{--k-bg:#0b1226;--k-card:#131c36;--k-ink:#e6ebf8;--k-mut:#aab5d3;--k-line:#2a3657;--k-acc:#5b8cff}
html.adm[data-theme=dark] body,html.adm[data-theme=dark] .page-hero h1,html.adm[data-theme=dark] .au,html.adm[data-theme=dark] .af-intro,html.adm[data-theme=dark] .crumbs,html.adm[data-theme=dark] .crumbs a{color:var(--k-ink)!important}
html.adm[data-theme=dark] .af-rec{background:#16214a!important}
html.adm[data-theme=dark] .au-tabs button:not([aria-selected=true]),html.adm[data-theme=dark] .af-rank button:not([aria-pressed=true]){background:var(--k-card)!important;color:var(--k-ink)!important;border-color:#4a5a85!important}
html.adm[data-theme=dark] .au-tabs button[aria-selected=true],html.adm[data-theme=dark] .af-rank button[aria-pressed=true]{background:#e6ebf8!important;color:#0b1226!important}
html.adm[data-theme=dark] .btn,html.adm[data-theme=dark] .btn-primary{background:#3d6fe0!important;color:#fff!important}
html.adm[data-theme=dark] #sad[data-style=never] select,html.adm[data-theme=dark] .au select,html.adm[data-theme=dark] .au input{background:var(--k-card)!important;color:var(--k-ink)!important;border-color:#4a5a85!important}
html.adm[data-theme=dark] .au th,html.adm[data-theme=dark] .au td{border-color:var(--k-line)!important}
html.adm[data-theme=dark] .au-link{color:#9db8ff!important}

/* v2780: phones and tablets: the ADMIN edge tab no longer covers the left edge of the page text (owner / backup admin only) */
@media (max-width:899px){body:has(> .sal-tab) main{padding-left:34px!important}}
/* v2790d: mobiles - the app itself on screen 1 (intro line hidden, Pro box moved under the app, smaller title) */
@media (max-width:600px){
.app-intro .lead{display:none}
.app-intro h1{font-size:28px}
html:not(.no-share) .app-intro > h1:not(:has(+ .stp-share)){margin-bottom:70px}
.app-col{gap:16px}
.app-col > *{order:2}
.app-col > .pro-bar{order:3}
.app-col > #app ~ *{order:4}
.app-col > #app ~ .pro-bar{order:3}
}
/* v2790d: mobiles - calmer number boxes (16px keeps iPhones from zooming in on tap) */
@media (max-width:600px){
#uc-in,#uc-out,#cc-amount,#fx-amount,#sn-in,#tx-amount,#mg-price,#ri-r-initial,#ri-r-value{font-size:16px}
}
/* v2790d: mobiles - apps that build themselves after loading keep a full-screen box, so nothing below jumps on screen 1 */
@media (max-width:600px){
.app-col > #app:is(.at-app,.ck-app,.fx-app,.fc-app,.gb-app,.iv-app,.ms-app,.mt-app,.nm-app,.go-app,.mx-app,.sv-app,.sh-app,.vg-app,.lotto,.cp-app,.tf-app){min-height:100svh}
}

/* v3020 WAVE: hidden screen-reader text gets its own colours so WAVE stops reporting false low contrast (no visible change). Back-out: delete this line if Lighthouse drops under 99. */
.visually-hidden{color:#000!important;background:#fff!important}
