/* POSA Research — the one theme.

   Every surface the customer sees — the public site, the sign-in page, the
   desktop workspace, the phone app and the admin dashboard — reads its colour,
   type and radius from this file and from nowhere else. Before it existed the
   site was teal, the sign-in page green, the phone app a second blue and the
   admin a third, each with its own font stack, so a customer crossing from the
   website into the workspace crossed a change of identity on the way.

   The values here are the admin dashboard's, which is the surface the desk
   asked every other one to match.

   Two rules hold this together:
     1. a page must not define these names again with a literal value — it
        refers to them (var(--posa-brand)), so changing the palette is one edit
        in one file;
     2. the type is self-hosted. Inter used to arrive from fonts.googleapis.com
        on the sign-in page alone, which meant the same page had one font online
        and another offline, and every other page had a third. Inter is now a
        single 48 KB variable file in assets/fonts and loads from POSA's own
        server, so the font is identical in every browser, online or not.

   Inter is SIL Open Font License 1.1; the licence travels with the file. */

@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,
                U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,
                U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  /* ---- the palette, and the only place it is written down ---- */
  --posa-bg:#f6f7fb;
  --posa-surface:#ffffff;
  --posa-surface-2:#f3f4f9;
  --posa-surface-3:#e6e8ef;
  --posa-border:#e3e6ec;
  --posa-border-2:#cdd0da;
  --posa-text:#101614;
  --posa-text-2:#3a3a48;
  --posa-text-3:#6b7180;
  --posa-text-4:#a0a0af;
  --posa-brand:#2563eb;
  --posa-brand-2:#3b82f6;
  --posa-brand-3:#1d4ed8;
  --posa-brand-soft:#eaf0fe;
  --posa-loss:#d64545;      /* never anything else: red means a loss */
  --posa-gain:#0f9d58;      /* and green means a gain */

  /* ---- type ---- */
  --posa-font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',
              Arial,'Noto Sans',sans-serif;
  --posa-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  /* ---- shape ---- */
  --posa-rad:12px;
  --posa-rad-2:16px;
  --posa-rad-3:20px;
  --posa-shadow:0 1px 2px rgba(16,22,20,.04),0 14px 32px -20px rgba(16,22,20,.22);
}

/* Anything that has not been given a font of its own is Inter — including form
   controls and the small print, which otherwise fall back to the browser's own
   choices and were the reason two fields on one form could disagree. */
html,body,button,input,select,textarea,optgroup{
  font-family:var(--posa-font);
}
code,pre,kbd,samp,.mono,.posa-mono{font-family:var(--posa-mono)}

/* Live share / constituents — same quote strip on admin, desktop and phone. */
.posa-share{
  background:transparent;
  border:0;
  border-radius:0;
  overflow:visible;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.posa-share-empty{
  padding:18px 16px;
  font-size:13px;
  color:#8b95a1;
  background:#fff;
  border:1px solid #e6edf2;
  border-radius:16px;
}
.posa-share-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border:1px solid #eef1f4;
  border-radius:14px;
  background:#fff;
  min-height:56px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.posa-share-row:last-child{border-bottom:1px solid #eef1f4}
.posa-share-left{
  flex:1;
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:8px;
}
.posa-share-sym{
  font-weight:800;
  font-size:13.5px;
  letter-spacing:-.02em;
  color:#111827;
  flex-shrink:0;
}
.posa-share-name{
  font-size:13px;
  font-weight:500;
  color:#8b95a1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.posa-share-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  font-variant-numeric:tabular-nums;
}
.posa-share-ltp{
  font-weight:700;
  font-size:13.5px;
  color:#111827;
  min-width:5.5em;
  text-align:right;
}
.posa-share-chg{
  font-size:12.5px;
  font-weight:650;
  min-width:9.5em;
  text-align:right;
  color:#6b7280;
}
.posa-share-chg.up{color:#16a34a}
.posa-share-chg.down{color:#dc2626}
.posa-share-state{
  font-size:11px;
  font-weight:650;
  min-width:3.6em;
  text-align:right;
  color:#16a34a;
}
.posa-share-state.live{color:#2563eb}
.posa-share-state.closed{color:#16a34a}
.posa-share-order{
  margin-left:8px;
  min-height:32px;
  padding:6px 12px;
  border:0;
  border-radius:8px;
  background:#1d9e57;
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
/* Smallcase-style subscribe lock — blurred dummy rows, never real tickers. */
.posa-sc-lock{position:relative;min-height:220px;border:1px solid var(--posa-border,#eaedf1);border-radius:12px;overflow:hidden;background:#fff;margin:8px 0 12px}
.posa-sc-lock-blur{padding:8px 12px;filter:blur(7px);opacity:.45;pointer-events:none;user-select:none}
.posa-sc-lock-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f1f4f7}
.posa-sc-lock-row i{width:42px;height:10px;background:#d7dde6;border-radius:4px;flex:none}
.posa-sc-lock-row b{flex:1;height:10px;background:#e6eaef;border-radius:4px}
.posa-sc-lock-row em{width:56px;height:10px;background:#d7dde6;border-radius:4px;flex:none}
.posa-sc-lock-card{position:absolute;inset:auto 16px 16px;left:16px;right:16px;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #e6eaef;border-radius:12px;padding:16px 16px 14px;text-align:center;box-shadow:0 8px 24px rgba(16,24,40,.08)}
.posa-sc-lock-ic{width:36px;height:36px;margin:0 auto 8px;border-radius:10px;background:#eef4fc;color:#1f7ae0;display:grid;place-items:center}
.posa-sc-lock-ic svg{width:18px;height:18px}
.posa-sc-lock-card h3{margin:0 0 4px;font-size:15px;font-weight:700;letter-spacing:-.02em;color:#191c1f}
.posa-sc-lock-card p{margin:0 0 12px;font-size:12.5px;line-height:1.45;color:#6b7380}
.posa-sc-lock-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 16px;border:0;border-radius:8px;background:#1f7ae0;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer;width:100%}
.posa-qr{display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;color:#191c1f;border:1px solid #eaedf1;border-radius:12px;padding:12px 14px;width:max-content;max-width:100%}
.posa-qr img{width:132px;height:132px;display:block;background:#fff}
.posa-qr p{margin:0;font-size:12px;font-weight:650;color:#191c1f;text-align:center}
.posa-qr a{font-size:13px;font-weight:700;color:#1f7ae0;text-decoration:none}
.posa-qr-compact{padding:10px;gap:6px}
.posa-qr-compact img{width:112px;height:112px}
.h-app-banner .posa-qr{margin-top:14px}

.h-dl-app{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:#8b919a;font-size:15px;font-weight:500;padding:6px 8px;min-height:40px;cursor:pointer;letter-spacing:.01em;line-height:1}
.h-dl-app:hover{color:#5c6370}
.h-dl-ico{width:22px;height:22px;flex:none;display:block}
.h-login{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 18px;border:1.5px solid #2f6bff;border-radius:10px;color:#2f6bff;background:#fff;font-size:15px;font-weight:600;text-decoration:none}
.h-login:hover{background:#f4f7ff}

/* Shared public chrome — always visible on desktop. */
header.h-header{height:88px;position:sticky;top:0;z-index:40;background:#fbfdfceb;backdrop-filter:blur(16px);border-bottom:1px solid #eaf0ed;padding:0}
header.h-header .h-container,.h-footer .h-container,.h-container{width:min(1180px,calc(100% - 56px));margin:auto}
.h-header-inner{height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:nowrap}
.h-logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0;flex:0 1 auto}
.h-logo img{width:auto;height:52px;max-width:200px;object-fit:contain;background:transparent;border-radius:0;padding:0;display:block}
.h-logo-text{border-left:1px solid #dfe7e6;padding-left:13px;color:#8f9da5;font-size:8px;letter-spacing:1.35px;line-height:1.7;text-transform:uppercase}
.h-desktop-nav{display:flex;align-items:center;gap:28px;font-size:12px;color:#7a8c95}
.h-desktop-nav a{color:#7a8c95;text-decoration:none;font-weight:500}
.h-desktop-nav a:hover,.h-desktop-nav a.on{color:#1b7075}
.h-header-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;flex-wrap:nowrap}
.h-mobile-menu{display:none;height:40px;width:40px;min-width:40px;min-height:40px;border:0;border-radius:10px;background:#edf6f2;color:#397877;cursor:pointer;padding:0;flex:0 0 auto}
.h-mobile-drawer{display:none}
.h-icon{height:20px;width:20px;display:inline-block;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
footer.h-footer{padding:49px 0 23px!important;background:#f1f6f3!important;border-top:1px solid #e4ede6;color:#243945!important;text-align:left}
footer.h-footer a{color:#99aab0!important;font-weight:500;text-decoration:none}
.h-footer-top{display:grid;grid-template-columns:1.65fr 1fr 1fr 1fr;gap:37px;padding-bottom:34px}
.h-footer-brand img{width:115px;height:58px;object-fit:contain}
.h-footer-brand p{font-size:10px;color:#97a9ad!important;max-width:255px;line-height:2;margin-top:17px}
.h-footer-column strong{display:block;font-size:10px;color:#72908c;font-weight:600;letter-spacing:.3px;margin:13px 0 17px}
.h-footer-column a{display:block;font-size:10px;color:#99aab0!important;min-height:26px;margin:13px 0}
.h-footer-column a:hover{color:#4d8c84!important}
.h-page-preview{display:block;font-size:8px;color:#a6b3b7;margin-top:6px}
.h-footer-bottom{padding-top:23px;border-top:1px solid #dfe9e2;display:flex;justify-content:space-between;gap:20px;font-size:8px;color:#a0afb3;line-height:1.9}
.h-footer-bottom p{margin:0;max-width:880px;color:#a0afb3!important;font-size:8px}
@media (max-width:1100px){
  .h-logo-text{display:none!important}
}
@media (min-width:851px){
  header.h-header,footer.h-footer{display:block!important;visibility:visible!important}
  .h-desktop-nav{display:flex!important}
  .h-mobile-menu,.h-mobile-drawer{display:none!important}
}
@media (max-width:850px){
  .h-desktop-nav{display:none!important}
  .h-mobile-menu{display:grid!important;place-items:center}
  header.h-header{height:auto!important;min-height:60px!important;padding:calc(env(safe-area-inset-top,0px) + 6px) 0 6px!important;position:sticky;top:0}
  header.h-header .h-container{width:calc(100% - 24px)!important}
  .h-header-inner{height:auto!important;min-height:48px!important;gap:10px!important;flex-wrap:nowrap!important}
  .h-logo img{height:38px!important;max-width:148px!important;width:auto!important}
  .h-header-actions{gap:8px!important;flex-wrap:nowrap!important}
  .h-header-actions .h-login{min-height:36px!important;padding:6px 14px!important;font-size:13.5px!important;border-radius:9px!important;white-space:nowrap}
  .h-header-actions .h-mobile-helper{display:none!important}
  body.h-nav-open .h-mobile-drawer{display:block;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid #eaf0ed;padding:12px 18px 16px;z-index:41;box-shadow:0 12px 28px rgba(15,23,42,.08)}
  body.h-nav-open .h-mobile-drawer a{display:block;padding:11px 4px;color:#426570;text-decoration:none;font-weight:600;border-bottom:1px solid #f1f5f4}
  body.h-nav-open .h-mobile-drawer a:last-child{border-bottom:0}
  .h-footer-top{grid-template-columns:1fr 1fr;gap:22px}
  .h-footer-brand{grid-column:1/-1}
}

.h-sc-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;max-width:1040px;margin:0 auto}
.h-sc-card{background:#fff;border:1px solid #eaedf1;border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;min-width:0;flex:0 1 300px;width:100%;max-width:320px}
.h-sc-ico{width:36px;height:36px;border-radius:10px;background:#eef4fc;color:#1f7ae0;display:grid;place-items:center;font-weight:800}
.h-sc-card h3{margin:0;font-size:15px;font-weight:700;letter-spacing:-.02em;color:#191c1f}
.h-sc-card p{margin:0;font-size:12.5px;line-height:1.45;color:#6b7380;flex:1}
.h-sc-meta{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;font-size:11px;color:#6b7380;text-align:center}
.h-sc-meta b{display:block;color:#191c1f;font-size:14px;margin-top:2px}
.h-sc-vol{background:#eef7f0;color:#15803d;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:650;white-space:nowrap}
.h-sc-top{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.h-sc-mgr{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8a91a0}
.h-sc-lock{margin:0;font-size:11px;color:#7a8190}
.h-sc-perf{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%;padding:10px 8px;border-top:1px solid #eef0f3;border-bottom:1px solid #eef0f3;text-align:center;justify-items:center}
.h-sc-perf span{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;color:#7a8190;min-width:48px;text-align:center}
.h-sc-perf b{font-size:13px;color:#191c1f;font-weight:750}
.h-sc-perf b.up{color:#15803d}
.h-sc-perf b.down{color:#b91c1c}
.h-sc-card .h-btn{margin-top:6px;align-self:center;min-width:140px}
.h-models-follow{margin-top:36px}
.posa-dl-modal{border:0;border-radius:18px;padding:0;width:min(860px,calc(100% - 28px));max-width:860px;background:#fff;box-shadow:0 28px 80px rgba(16,24,40,.28);position:relative;overflow:visible;color:#191c1f;font-family:var(--posa-font,inherit)}
.posa-dl-modal::backdrop{background:rgba(16,22,28,.48)}
.posa-dl-x{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#8b919a;cursor:pointer;display:grid;place-items:center;z-index:2}
.posa-dl-x:hover{background:#f3f4f6;color:#191c1f}
.posa-dl-body{display:grid;grid-template-columns:1fr 250px;gap:8px 18px;padding:36px 36px 8px 36px;align-items:start}
.posa-dl-copy h2{margin:0 0 10px;font-size:30px;line-height:1.22;letter-spacing:-.035em;color:#191c1f;font-weight:700}
.posa-dl-copy p{margin:0 0 22px;font-size:14.5px;color:#6b7380;line-height:1.55;max-width:36ch}
.posa-dl-qr-row{display:flex;align-items:center;gap:22px}
.posa-dl-qr{border:1px solid #e7eaee;border-radius:14px;padding:10px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.posa-dl-qr img{display:block;width:120px;height:120px}
.posa-dl-stats{display:grid;gap:16px}
.posa-dl-stat{display:flex;align-items:center;gap:10px;font-size:15px;color:#4b535c;font-weight:600}
.posa-dl-stat svg{width:18px;height:18px;flex:none;color:#6b7380}
.posa-dl-phone{position:relative;z-index:1;margin:-6px 4px -48px auto;width:232px}
.posa-dl-phone-bezel{background:#0e1116;border-radius:32px;padding:12px 9px 14px;box-shadow:0 22px 40px rgba(8,12,20,.35)}
.posa-dl-phone-bezel:before{content:"";display:block;width:72px;height:6px;background:#2a3038;border-radius:99px;margin:2px auto 10px}
.posa-dl-phone-screen{background:#fff;border-radius:22px;min-height:390px;padding:14px 10px 8px;display:flex;flex-direction:column;gap:8px;color:#191c1f;overflow:hidden}
.posa-dl-ph-head{display:flex;align-items:center;justify-content:space-between;padding:0 4px 2px}
.posa-dl-ph-head b{font-size:16px;font-weight:700;letter-spacing:-.02em}
.posa-dl-ph-av{width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#c4b5fd,#818cf8)}
.posa-dl-ph-search{margin:0 2px;padding:8px 10px;border-radius:10px;background:#f3f4f6;color:#9aa3ad;font-size:11px}
.posa-dl-ph-row{display:grid;grid-template-columns:36px 1fr;gap:8px;padding:8px 4px;align-items:start}
.posa-dl-ph-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:16px;color:#fff}
.posa-dl-ph-row b{display:block;font-size:11.5px;font-weight:700;letter-spacing:-.01em}
.posa-dl-ph-row p{margin:2px 0 6px;font-size:10px;line-height:1.35;color:#6b7380}
.posa-dl-ph-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;font-size:9px;color:#6b7380}
.posa-dl-ph-meta strong{display:block;color:#191c1f;font-size:11px;margin-top:1px}
.posa-dl-ph-meta em{font-style:normal;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:650;white-space:nowrap}
.posa-dl-ph-meta em.low{background:#e8f7ee;color:#15803d}
.posa-dl-ph-meta em.med{background:#fff4d6;color:#b45309}
.posa-dl-ph-nav{margin-top:auto;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 0 2px;border-top:1px solid #f1f4f7;font-size:8px;color:#9aa3ad;text-align:center}
.posa-dl-ph-nav .on{color:#1f7ae0;font-weight:700}
.posa-dl-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 28px 18px 36px;border-top:1px solid #f1f4f7;background:#fafbfc;border-radius:0 0 18px 18px;color:#9aa3ad;font-size:14px}
.posa-dl-stores{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.posa-dl-apk{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border-radius:8px;background:#111827;color:#fff;font-weight:700;font-size:12.5px;text-decoration:none;letter-spacing:.01em}
.posa-dl-apk:hover{background:#000;color:#fff}
.posa-dl-apk-alt{background:#1f2937}
@media (max-width:720px){
  .posa-dl-body{grid-template-columns:1fr;padding:28px 20px 10px}
  .posa-dl-phone{display:none}
  .posa-dl-foot{flex-direction:column;align-items:flex-start;padding:14px 20px 18px}
  .posa-dl-copy h2{font-size:24px}
}

@media (max-width:560px){
  .posa-share-row{flex-wrap:wrap;gap:6px 10px;padding:12px 14px}
  .posa-share-left{flex:1 1 100%}
  .posa-share-right{margin-left:auto}
  .posa-share-chg{min-width:0}
  .posa-share-ltp{min-width:0}
}

/* POSA wordmark — full lockup, never cropped, never on a black plate.
   Navy + green letters are built for a light ground. A #05070c chip made
   POSA disappear. Dark chrome gets a white chip instead. */
img.posa-logo,
.brand-logo,
.r-brand-logo,
.mark-img,
img.mark,
.brand img,
.h-logo img,
.p-top-logo img,
.dk-brand img,
.b-brand-logo[src*="logo"]{
  display:block;
  width:auto !important;
  height:48px !important;
  max-width:min(240px,100%) !important;
  max-height:56px !important;
  object-fit:contain !important;
  object-position:left center;
  background:transparent !important;
  border-radius:0 !important;
  padding:0 !important;
  filter:none !important;
  opacity:1 !important;
  box-shadow:none !important;
}
.brand-logo.footer,
img.posa-logo.footer{
  height:56px !important;
  max-width:260px !important;
  margin-left:auto;
  margin-right:auto;
  object-position:center;
}
html[data-theme="dark"] img.brand-logo,
html[data-theme="dark"] .r-brand-logo,
html[data-theme="dark"] .mark-img,
.sidebar.dark .r-brand-logo,
aside.dark img.mark{
  background:#fff !important;
  border-radius:10px !important;
  padding:6px 10px !important;
  height:44px !important;
}
.p-top-logo img{height:44px !important}
.sidebar .r-brand-logo{width:160px !important;height:auto !important;max-height:64px !important}
@media (max-width:420px){
  img.posa-logo,.brand-logo,.brand img,.h-logo img,.mark-img{
    height:40px !important;
    max-width:180px !important;
  }
}
