/* Market Scanner enterprise design layer, v1.
   Presentation-only. No matching, entitlement, or data semantics change. */
:root{
  --paper:#f6f7f9;--card:#fff;--ink:#182330;--ink-soft:#68788b;--ink-faint:#8c9aaa;
  --line:#e4e9ef;--line-strong:#d5dee8;--accent:#536f87;--accent-soft:#edf3f7;--accent-ink:#385a73;
  --ring-track:#e5ebef;--good:#287657;--good-soft:#eaf6ef;--warn:#996b36;--warn-soft:#fff2e1;
  --shadow:0 10px 36px rgba(26,43,60,.045);--radius:14px;
  --bg:#f6f7f9;--surface:#fff;--surface2:#f2f5f8;--muted:#68788b;--faint:#8c9aaa;
  --navy:#182330;--navy2:#344458;--blue:#385a73;--blue-bg:#edf3f7;
  --green:#287657;--green-bg:#eaf6ef;--amber:#996b36;--amber-bg:#fff2e1;
}
:root[data-theme=dark]{
  --paper:#111923;--card:#1d2936;--ink:#eaf0f6;--ink-soft:#b1bfce;--ink-faint:#93a2b4;
  --line:#364455;--line-strong:#536579;--accent:#9fbbd1;--accent-soft:#25384b;--accent-ink:#bfd2e2;
  --ring-track:#36495c;--good:#8cccb0;--good-soft:#173d31;--warn:#f3c98a;--warn-soft:#4a3720;
  --shadow:0 12px 30px rgba(0,0,0,.2);--bg:#111923;--surface:#1d2936;--surface2:#283647;
  --muted:#b1bfce;--faint:#93a2b4;--navy:#eaf0f6;--blue:#bfd2e2;--blue-bg:#25384b;
  --green:#8cccb0;--green-bg:#173d31;--amber:#f3c98a;--amber-bg:#4a3720;
}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){
  --paper:#111923;--card:#1d2936;--ink:#eaf0f6;--ink-soft:#b1bfce;--ink-faint:#93a2b4;
  --line:#364455;--line-strong:#536579;--accent:#9fbbd1;--accent-soft:#25384b;--accent-ink:#bfd2e2;
  --ring-track:#36495c;--good:#8cccb0;--good-soft:#173d31;--warn:#f3c98a;--warn-soft:#4a3720;
  --shadow:0 12px 30px rgba(0,0,0,.2);--bg:#111923;--surface:#1d2936;--surface2:#283647;
  --muted:#b1bfce;--faint:#93a2b4;--navy:#eaf0f6;--blue:#bfd2e2;--blue-bg:#25384b;
  --green:#8cccb0;--green-bg:#173d31;--amber:#f3c98a;--amber-bg:#4a3720;
}}
html{font-size:16px}body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6;letter-spacing:-.005em}h1,h2,h3,.dg-head h1,.page-h h1,.mp-profile h3{font-family:inherit;font-weight:650;letter-spacing:-.037em}h1{line-height:1.15}.eyebrow,.dg-eyebrow{color:#927457;font-size:11px;letter-spacing:.15em;font-weight:800}
.btn,.btn.blue,.dg-save,.mp-pill.active,.add-project-link{background:#182330;color:#fff;border-color:#182330}.btn:hover,.btn.blue:hover{filter:brightness(1.12)}.btn.ghost{background:var(--surface);border-color:var(--line);color:var(--ink)}.btn,.btn.sm,input,select,textarea{border-radius:9px}.btn{font-size:13px;font-weight:680}input,select,textarea{border-color:var(--line);background:var(--surface);color:var(--ink)}.btn:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #8eadd0;outline-offset:3px}
.card,.proj,.item,.qualified-tier{border-color:var(--line);border-radius:14px;box-shadow:var(--shadow)}.notice{border-radius:10px}.page-h{padding:34px 0 20px}.page-h h1{font-size:clamp(30px,3.9vw,45px);margin:8px 0 12px}.page-h p{font-size:14px;line-height:1.75;color:var(--muted);max-width:760px}.small,.muted{color:var(--muted)}.segbar a,.mp-pill{border-radius:9px;transition:background .16s ease}

/* App-only shell: persistent, compact side navigation. The public landing
   and authentication pages retain their normal full-width layout. */
@media(min-width:901px){
  body.app-shell{padding-left:238px}
  body.app-shell>.topbar{position:fixed;z-index:40;inset:0 auto 0 0;width:238px;height:100vh;background:#111923;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;color:#e9eff7}
  body.app-shell>.topbar>.wrap{width:100%;height:100%;padding:28px 15px 20px;display:flex;flex-direction:column}
  body.app-shell .topbar-in{height:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}
  body.app-shell .logo{font-size:18px;color:#eef3f9;padding:0 10px 34px;letter-spacing:-.035em}
  body.app-shell .logo-mark{background:#25384b;border:1px solid #465a6f;border-radius:11px;font-family:inherit;font-weight:400}
  body.app-shell .mainnav{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:8px 0 0}
  body.app-shell .mainnav::before{content:'WORKSPACE';display:block;color:#798ba0;font-size:10px;letter-spacing:.17em;font-weight:800;padding:0 13px 12px}
  body.app-shell .mainnav a{font-size:13px;font-weight:590;color:#b3c0cf;border-radius:11px;white-space:normal;padding:12px 13px;line-height:1.5}
  body.app-shell .mainnav a.active{background:#2a3a4c;color:#fff}
  body.app-shell .mainnav a:hover{background:#223143;color:#fff}
  body.app-shell .navright{margin-top:auto;display:flex;flex-direction:column;align-items:stretch;gap:12px;border-top:1px solid #324152;padding:19px 8px 0}
  body.app-shell .navright>.iconbtn{width:34px;height:34px;background:#223143;color:#c4d2df;border-color:#3d5064}
  body.app-shell .navright .btn.ghost{background:#253548;color:#f0f4f8;border-color:#3b4a5e;justify-content:center;white-space:normal}
  body.app-shell .navright .btn.sm{min-height:38px}
  body.app-shell .navright form{width:100%}body.app-shell .navright form button{width:100%}
  body.app-shell>.topbar .mobile-nav{display:none}
  body.app-shell>main.wrap,body.app-shell>div.wrap{width:min(1480px,calc(100% - 80px));margin-left:auto;margin-right:auto}
}
@media(min-width:901px) and (max-width:1140px){body.app-shell{padding-left:205px}body.app-shell>.topbar{width:205px}body.app-shell>main.wrap,body.app-shell>div.wrap{width:calc(100% - 40px)}}
@media(max-width:900px){body.app-shell>.topbar{background:var(--surface);backdrop-filter:blur(14px)}body.app-shell .mainnav{display:none}body.app-shell .mobile-nav{display:flex;gap:6px;overflow-x:auto;padding:0 0 11px}body.app-shell .mobile-nav a{flex-shrink:0;border-radius:8px;font-size:12px}body.app-shell .mobile-nav a.active{background:#182330;color:#fff}body.app-shell>main.wrap,body.app-shell>div.wrap{width:min(100% - 32px,880px)}}

/* Unified application headings and operational summary cards. */
.enterprise-intro{padding:43px 0 28px}.enterprise-intro .eyebrow{margin-bottom:9px}.enterprise-intro h1{margin:0;font-size:clamp(31px,4vw,44px)}.enterprise-intro p{font-size:14px;color:var(--muted);margin:12px 0 0;max-width:720px}.enterprise-intro.with-action{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;flex-wrap:wrap}.enterprise-subtitle{max-width:740px}.enterprise-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0 0 28px}.enterprise-metric{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px 22px;box-shadow:var(--shadow)}.enterprise-metric-label{font-size:12px;color:var(--muted);font-weight:650}.enterprise-metric-value{font-size:31px;color:var(--ink);line-height:1.2;font-weight:660;letter-spacing:-.05em;margin:12px 0 5px}.enterprise-metric-note{font-size:11px;color:var(--faint)}.enterprise-section{font-size:21px;letter-spacing:-.035em;font-weight:650;margin:3px 0 15px}
.matching-explainer{position:relative;align-self:flex-end}.matching-explainer summary{list-style:none;cursor:pointer;white-space:nowrap}.matching-explainer summary::-webkit-details-marker{display:none}.matching-explainer-body{position:absolute;right:0;top:calc(100% + 10px);z-index:8;width:min(420px,calc(100vw - 42px));padding:21px 23px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 20px 55px rgba(23,40,58,.18);font-size:13px;line-height:1.7;color:var(--muted)}.matching-explainer-body strong{color:var(--ink);display:block;font-size:14px}.matching-explainer-body p{font-size:12px;margin:10px 0 0;line-height:1.7}
.nav-glyph{display:inline-grid;place-items:center;width:23px;margin-right:9px;font-size:19px;font-weight:400;line-height:1;color:inherit;vertical-align:-2px}
@media(max-width:700px){.enterprise-metrics{grid-template-columns:1fr 1fr;gap:10px}.enterprise-metric{padding:15px}.enterprise-metric-value{font-size:26px}.enterprise-intro{padding-top:28px}.enterprise-intro h1{font-size:29px}}

/* Daily Digest: short briefing, not another long tender-board feed. */
.dg.mp .mp-head{padding:42px 0 16px}.dg.mp .mp-head h1{font-size:clamp(30px,4vw,43px);letter-spacing:-.045em}.dg.mp .mp-counts{color:var(--muted);font-size:14px}.dg.mp .mp-pills{margin:15px 0 13px;gap:7px}.mp-pill{font-size:12px!important;padding:9px 14px!important;border:1px solid var(--line)!important;background:var(--surface);color:var(--muted)}.mp-pill.active{background:#eaf0f6!important;border-color:#eaf0f6!important;color:#263b4d!important}.mp-pill b{font-weight:720}.dg.mp .mp-list,.tender-list{border:1px solid var(--line);background:var(--surface);border-radius:15px;overflow:hidden;box-shadow:var(--shadow)}.dg.mp .mp-row:last-child .tl-face,.tender-list>.tl-card:last-child .tl-face{border-bottom:0}.dg.mp .dg-seclabel{margin-top:26px;border-color:var(--line)}.dg.mp .dg-seclabel h2{font-size:20px;font-weight:650}.dg-fine{font-size:11px;color:var(--faint);line-height:1.8}

/* Discovery controls: filters in one white toolbar, tiers below the heading. */
body.app-shell .page-h+.mp-pills{margin-top:10px;margin-bottom:14px}body.app-shell .filters{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:15px;gap:10px;box-shadow:var(--shadow)}body.app-shell .filters input{flex:2 1 260px;min-width:185px;background:var(--bg)}body.app-shell .filters select{flex:1 1 145px}body.app-shell .filters .btn{min-width:110px}body.app-shell .sort-line{margin:13px 0 12px;font-size:12px}body.app-shell .sort-line .link{font-weight:650;color:var(--blue)}

/* Shared tender list: exact same rows in Digest, Discovery and Watchlist. */
@media(min-width:700px){
  body.app-shell .tl-face{padding:17px 18px;column-gap:14px;border-color:var(--line);transition:background .16s ease}
  body.app-shell .tl-face:hover,body.app-shell .tl-face:focus-visible{background:var(--surface2)}
  body.app-shell .tl-face .dg-title{font-family:inherit;font-size:13.5px;font-weight:690;letter-spacing:-.015em}
  body.app-shell .tl-face .dg-meta,body.app-shell .tl-face .tl-meta{font-size:11.5px;color:var(--muted);margin-top:5px}
  body.app-shell .tl-pills{gap:7px}
  body.app-shell .tl-pills .mp-cat{font-size:11px;border-radius:99px;border-color:var(--line)}
  body.app-shell .tl-face .mp-ring{width:40px;height:40px}
  body.app-shell .tl-face .dg-close{border-radius:99px;font-size:11px;padding:7px 10px}
}

/* Watchlist stages and profile dashboard. */
body.app-shell .segbar{border-bottom:1px solid var(--line);margin:12px 0 16px}body.app-shell .segbar a{font-size:13px;font-weight:650;color:var(--muted)}body.app-shell .segbar a.active{color:var(--ink);border-bottom-color:var(--ink)}body.app-shell .segcnt{background:var(--surface2);border-radius:6px;color:var(--muted)}body.app-shell .add-project-link{border-radius:9px;font-weight:680;padding:11px 17px;font-size:13px;white-space:nowrap}body.app-shell .mp-profile{padding:25px;border-radius:14px}body.app-shell .mp-profile h3{font-family:inherit;font-size:20px}.mp-profile .fact{border-color:var(--line);padding:17px 0}.mp-profile .fact a{font-weight:650}.profile-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start}.profile-panel-grid>.card{margin:0}.profile-panel-grid>.card+.card{margin:0}.profile-panel-grid .mp-profile{height:100%}
@media(max-width:900px){.profile-panel-grid{grid-template-columns:1fr}}

/* Project Intelligence as a right-side working panel on desktop. Native
   dialog semantics and close behaviour are preserved. */
@media(min-width:901px){
  dialog.tl-dialog[open]{position:fixed!important;inset:0 0 0 auto!important;margin:0!important;max-width:none!important;width:min(590px,100vw)!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:-20px 0 60px rgba(10,21,35,.2)!important}
  dialog.tl-dialog::backdrop{background:rgba(10,20,32,.34)}
  dialog.tl-dialog .tl-pin{background:#fff;border-top:1px solid #e7ecf1;padding:15px 21px}
  dialog.tl-dialog .tl-pin .dg-actions{gap:8px}
  dialog.tl-dialog .tl-pin .dg-save,dialog.tl-dialog .tl-pin .dg-dismiss,dialog.tl-dialog .tl-source{font-size:12px;padding:10px 13px;min-height:41px}
  dialog.tl-dialog .tl-source{margin-left:0}
}
dialog.tl-dialog{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}dialog.tl-dialog h2,dialog.tl-dialog h3,dialog.tl-dialog h4{font-family:inherit;letter-spacing:-.025em}dialog.tl-dialog .intel{border-radius:12px}

/* Pricing and profile editing retain their behaviour, but share surfaces. */
body.app-shell .field label{font-size:13px;font-weight:670}body.app-shell .field input,body.app-shell .field select{background:var(--surface)}body.app-shell .profile-card,body.app-shell .intake-dialog,body.app-shell .dive-dialog{border-radius:14px;box-shadow:0 20px 65px rgba(13,27,42,.17)}
body.app-shell footer{font-size:11px;color:var(--faint);padding-top:26px;border-color:var(--line)}

/* Public product pages share the same typography and restrained surfaces,
   while retaining their public navigation and signup behaviour. */
body.public-shell .topbar{background:rgba(255,255,255,.95);border-color:var(--line)}
body.public-shell .logo-mark{background:#182330;border-radius:11px;font-family:inherit}
body.public-shell .mainnav a.active{background:#eaf0f6;color:#24394c}
body.public-shell .hero{padding-top:64px;gap:44px}
body.public-shell .hero h1{font-family:inherit;letter-spacing:-.06em;font-weight:660;line-height:1.08}
body.public-shell .lead{line-height:1.7;color:var(--muted)}
body.public-shell .hero .btn.blue{background:#182330;border-color:#182330}
body.public-shell .qualified-tier,body.public-shell .card,body.public-shell .sample-card{border-color:var(--line);border-radius:14px;box-shadow:var(--shadow)}
body.public-shell footer{color:var(--faint);font-size:11px;border-color:var(--line)}
@media(max-width:700px){body.public-shell .hero{padding-top:28px;gap:24px}body.public-shell .hero h1{font-size:clamp(38px,10vw,60px)}}


/* Public landing: evidence-first matching demonstration */
.ms-landing-hero{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);gap:clamp(28px,5vw,84px);align-items:center;padding:clamp(55px,8vw,108px) 0 64px}
.ms-hero-kicker,.ms-mini-label{font-size:11px;font-weight:800;letter-spacing:.13em;color:#617187;text-transform:uppercase}
.ms-hero-copy h1{font-size:clamp(48px,6.2vw,90px);letter-spacing:-.065em;line-height:1.02;margin:20px 0 24px;font-weight:800;color:var(--navy)}
.ms-hero-copy>p{font-size:clamp(17px,1.6vw,22px);line-height:1.55;color:#56647a;max-width:590px}
.ms-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:32px}
.ms-hero-proof{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}
.ms-hero-proof span{font-size:12px;color:#526174;display:inline-flex;align-items:center;gap:6px}
.ms-hero-proof span:before{content:"✓";color:#17815b;font-weight:900}
.ms-hero-visual{background:linear-gradient(145deg,#172637,#223a50);border-radius:25px;padding:24px;box-shadow:0 34px 70px rgba(15,32,48,.2);color:#f7faff;position:relative;overflow:hidden}
.ms-hero-visual:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 95% 0%,rgba(114,186,211,.2),transparent 45%);pointer-events:none}
.ms-visual-header{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:800;letter-spacing:.12em;margin-bottom:25px}
.ms-live-dot{width:7px;height:7px;border-radius:100%;background:#6de3b4}
.ms-visual-label{margin-left:auto;color:#abbaca;font-size:10px;letter-spacing:0;font-weight:500}
.ms-visual-company,.ms-visual-result{background:rgba(255,255,255,.98);border-radius:14px;padding:19px;color:#1b2b3b;display:flex;flex-direction:column;gap:9px}
.ms-visual-company strong,.ms-visual-result strong{font-size:18px;letter-spacing:-.025em}
.ms-visual-company>span:last-child,.ms-visual-result>span{color:#657387;font-size:13px;line-height:1.5}
.ms-visual-connector{height:85px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#dceef2;font-size:11px}
.ms-visual-beam{position:relative;width:2px;height:35px;background:rgba(119,228,191,.35)}
.ms-visual-beam:after{content:"";position:absolute;left:-3px;width:8px;height:8px;background:#87e8c9;border-radius:100%;animation:ms-beam 2s ease-in-out infinite}
@keyframes ms-beam{0%{top:0;opacity:0}25%{opacity:1}100%{top:31px;opacity:0}}
.ms-visual-result>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ms-visual-eligibility{background:#f3f6f8;border-radius:8px;color:#626f7c;padding:10px;font-size:12px}
.ms-visual-foot{font-size:11px;text-align:center;color:#aebbc8;margin-top:18px}
.ms-match-section{padding:76px 0}
.ms-match-intro{display:flex;justify-content:space-between;gap:22px;align-items:flex-end;margin-bottom:28px}
.ms-match-intro h2{font-size:clamp(30px,3.4vw,48px);letter-spacing:-.045em;line-height:1.12;margin:12px 0}
.ms-match-intro h2 span{color:#738298}
.ms-match-intro p{max-width:760px;color:#657386;font-size:16px;line-height:1.6}
.ms-match-replay{border:1px solid #d6dee6;background:#fff;border-radius:100px;padding:11px 17px;font-weight:700;color:#1d3245;cursor:pointer;white-space:nowrap}
.ms-match-demo{background:#f5f8fb;border:1px solid #dce5ec;border-radius:24px;padding:clamp(18px,3vw,40px)}
.ms-match-grid{display:grid;grid-template-columns:minmax(0,1fr) 148px minmax(0,1fr);gap:12px;align-items:stretch}
.ms-match-source{border:1px solid #dce4eb;background:#fff;border-radius:17px;padding:24px;box-shadow:0 10px 25px rgba(20,42,65,.04)}
.ms-match-source-title{display:flex;align-items:center;gap:13px}
.ms-match-icon{height:40px;width:40px;display:grid;place-items:center;background:#e7edf4;color:#1d334c;border-radius:12px;font-size:24px}
.ms-match-source h3{margin:4px 0 0;font-size:21px;letter-spacing:-.03em}
.ms-match-source p{font-size:14px;color:#536277;min-height:42px;margin:18px 0}
.ms-match-tags{display:flex;gap:8px;flex-wrap:wrap;min-height:76px;align-content:flex-start}
.ms-match-tag{border:1px solid #dce4eb;color:#56677a;background:#f7f9fb;border-radius:7px;padding:7px 9px;font-size:12px;font-weight:700;transition:background .6s,border-color .6s,color .6s}
.ms-source-note{font-size:11px;color:#7b8999;margin-top:18px}
.ms-match-center{display:flex;justify-content:center;flex-direction:column;align-items:center;gap:9px}
.ms-match-center svg{width:100%;height:150px;overflow:visible}
.ms-path-back{stroke:#cbd6e0;fill:none;stroke-width:2;stroke-dasharray:5 7}
.ms-path-active{stroke:#20a676;fill:none;stroke-width:3;stroke-dasharray:220;stroke-dashoffset:220;transition:stroke-dashoffset 1.4s ease}
.ms-pulse{fill:#20a676;opacity:0;transition:opacity .5s}
.ms-match-center>span{font-size:10px;text-align:center;font-weight:800;letter-spacing:.1em;color:#60748a}
.ms-match-output{margin:25px auto 0;max-width:710px;border:1px solid #c8ddd4;background:#fff;border-radius:17px;padding:22px 26px;opacity:.55;transform:translateY(6px);transition:opacity .7s,transform .7s}
.ms-output-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.ms-match-output h3{font-size:21px;letter-spacing:-.03em;margin:12px 0 8px}
.ms-match-output p{font-size:14px;line-height:1.5;color:#5e6c7b}
.ms-match-eligibility{border-top:1px solid #e4eaf0;padding-top:13px;margin-top:14px;color:#5e6674;font-size:12px;display:flex;gap:9px}
.ms-match-eligibility span{color:#a06c1e;font-weight:900}
.ms-match-demo[data-step="2"] .ms-tag-connection,.ms-match-demo[data-step="3"] .ms-tag-connection{border-color:#4bb58d;background:#e5f8ef;color:#116348}
.ms-match-demo[data-step="2"] .ms-path-active,.ms-match-demo[data-step="3"] .ms-path-active{stroke-dashoffset:0}
.ms-match-demo[data-step="2"] .ms-pulse,.ms-match-demo[data-step="3"] .ms-pulse{opacity:1}
.ms-match-demo[data-step="3"] .ms-match-output{opacity:1;transform:translateY(0)}
.ms-match-progress{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:26px auto 0}
.ms-step{border:0;background:transparent;padding:9px;color:#718093;font-size:12px;font-weight:700;cursor:pointer;border-bottom:2px solid transparent}
.ms-step span{padding-right:7px}
.ms-step[aria-pressed="true"]{color:#16334a;border-color:#193b54}
.ms-match-disclaimer{text-align:center;color:#7c8a9a;font-size:11px;margin:14px 0 0}
.ms-digest-showcase{padding:45px 0 60px}
.ms-digest-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}
.ms-digest-heading h2{margin:8px 0;font-size:clamp(28px,3vw,40px);letter-spacing:-.045em}
.ms-digest-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ms-digest-card{background:#fff;border:1px solid #e1e8ef;border-radius:16px;padding:22px;box-shadow:0 8px 30px rgba(15,39,65,.04)}
.ms-digest-card h3{font-size:17px;line-height:1.3;margin:16px 0 6px}
.ms-digest-card .meta{font-size:12px}
.ms-digest-why{margin-top:16px;padding:14px;background:#f3f6f9;border-radius:9px}
.ms-digest-why b{font-size:12px}
.ms-digest-why p{font-size:13px;line-height:1.45;margin:6px 0 0}
.ms-digest-bottom{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}
.ms-digest-bottom>div{padding:15px 18px;background:#eff4f8;border-radius:12px;display:flex;flex-direction:column;gap:5px;font-size:13px;color:#596c7e}
.ms-digest-bottom b{color:#1b344a}
@media(max-width:980px){.ms-landing-hero{grid-template-columns:1fr}.ms-hero-copy h1{font-size:clamp(50px,8vw,76px)}.ms-match-grid{grid-template-columns:1fr 90px 1fr}.ms-digest-cards{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.ms-landing-hero{padding:45px 0}.ms-hero-copy h1{font-size:clamp(44px,12vw,64px)}.ms-match-section{padding:44px 0}.ms-match-intro{align-items:flex-start;flex-direction:column}.ms-match-grid{grid-template-columns:1fr}.ms-match-center{min-height:70px}.ms-match-center svg{height:50px;width:110px;transform:rotate(90deg)}.ms-match-source p{min-height:0}.ms-match-tags{min-height:0}.ms-digest-cards,.ms-digest-bottom{grid-template-columns:1fr}.ms-hero-proof{gap:12px}}
@media(prefers-reduced-motion:reduce){.ms-visual-beam:after,.ms-pulse animateMotion{animation:none}.ms-match-output,.ms-match-tag,.ms-path-active{transition:none}.ms-path-active{stroke-dashoffset:0}.ms-pulse{display:none}}


/* AI engine is the visual centre of the public matching explainer */
.ms-brain-demo{padding:clamp(20px,3vw,36px);background:linear-gradient(160deg,#eef3f9,#f9fbfd);overflow:hidden}
.ms-ai-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,225px) minmax(0,1fr);gap:22px;align-items:center}
.ms-ai-input{background:#fff;border:1px solid #dce5ed;border-radius:17px;padding:22px;min-height:255px;box-shadow:0 14px 30px rgba(20,42,64,.05);position:relative;z-index:1;transition:transform .8s,box-shadow .8s,border-color .8s}
.ms-ai-input-head{display:flex;align-items:center;gap:11px}
.ms-ai-input h3{font-size:17px;line-height:1.25;letter-spacing:-.03em;margin:6px 0 0}
.ms-ai-input p{font-size:13px;color:#647489;line-height:1.5;margin:16px 0 14px;min-height:40px}
.ms-ai-input .ms-match-tags{min-height:70px}
.ms-ai-input-foot{display:block;color:#8090a0;font-size:11px;margin-top:10px}
.ms-ai-core{height:252px;position:relative;background:radial-gradient(circle at 48% 34%,#334c68 0%,#162e47 60%,#112538 100%);border-radius:30px;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 18px 42px rgba(10,35,57,.24),inset 0 0 0 1px rgba(140,198,235,.24);isolation:isolate;z-index:2}
.ms-ai-core:before,.ms-ai-core:after{content:"";position:absolute;top:50%;height:2px;width:26px;background:linear-gradient(90deg,transparent,#41cfaf);box-shadow:0 0 13px #45d6b4;z-index:-1;animation:ms-neural-flow 1.8s ease-in-out infinite}
.ms-ai-core:before{right:100%}
.ms-ai-core:after{left:100%;transform:rotate(180deg);animation-delay:.9s}
@keyframes ms-neural-flow{0%,100%{opacity:.22}45%{opacity:1}}
.ms-ai-orbit{position:absolute;border:1px solid rgba(125,209,223,.24);border-radius:50%;pointer-events:none}
.ms-ai-orbit-one{width:155px;height:155px;top:13px;animation:ms-orbit 7s linear infinite}
.ms-ai-orbit-two{width:182px;height:182px;top:-1px;border-style:dashed;border-color:rgba(103,206,180,.24);animation:ms-orbit 13s linear infinite reverse}
@keyframes ms-orbit{to{transform:rotate(360deg)}}
.ms-ai-brain-wrap{position:relative;width:154px;height:145px;filter:drop-shadow(0 0 9px rgba(102,235,206,.48));animation:ms-brain-breathe 2.6s ease-in-out infinite}
@keyframes ms-brain-breathe{0%,100%{transform:scale(.96);filter:drop-shadow(0 0 6px rgba(102,235,206,.25))}50%{transform:scale(1.045);filter:drop-shadow(0 0 16px rgba(102,235,206,.65))}}
.ms-ai-brain{width:100%;height:100%}
.ms-ai-brain-outline{stroke:#80e3ce;stroke-width:2.5;stroke-linecap:round}
.ms-ai-brain-fold{stroke:#9acadd;stroke-width:1.8;stroke-linecap:round}
.ms-ai-brain-signal{stroke:#55dfad;stroke-width:2;stroke-linecap:round;stroke-dasharray:7 8;animation:ms-ai-circuit 1.2s linear infinite}
@keyframes ms-ai-circuit{to{stroke-dashoffset:-30}}
.ms-ai-node{fill:#9dffda;animation:ms-ai-node-flash 1.5s ease-in-out infinite}
.ms-ai-node.n2{animation-delay:.35s}.ms-ai-node.n3{animation-delay:.75s}.ms-ai-node.n4{animation-delay:1.05s}
@keyframes ms-ai-node-flash{0%,100%{opacity:.3;r:3px}50%{opacity:1;r:5px}}
.ms-ai-engine-title{font-size:11px;color:#e1f3f1;font-weight:900;letter-spacing:.11em;margin-top:-2px}
.ms-ai-thinking{color:#9ecbbb;display:flex;gap:7px;align-items:center;justify-content:center;font-size:11px;margin-top:9px;min-height:16px}
.ms-ai-thinking-dot{height:5px;width:5px;background:#76f4b9;border-radius:50%;animation:ms-brain-breathe 1.5s infinite}
.ms-ai-state{display:none}
.ms-brain-demo[data-step="1"] .ms-ai-state-one,.ms-brain-demo[data-step="2"] .ms-ai-state-two,.ms-brain-demo[data-step="3"] .ms-ai-state-three{display:inline}
.ms-brain-demo[data-step="1"] .ms-ai-input-company{border-color:#8aabdd;box-shadow:0 12px 32px rgba(39,89,148,.11);transform:translateY(-4px)}
.ms-brain-demo[data-step="2"] .ms-ai-input-company,.ms-brain-demo[data-step="2"] .ms-ai-input-tender{border-color:#73c7a2;box-shadow:0 12px 32px rgba(38,148,111,.12);transform:translateY(-4px)}
.ms-brain-demo[data-step="3"] .ms-ai-input{border-color:#bbd8cd}
.ms-brain-demo[data-step="2"] .ms-tag-connection,.ms-brain-demo[data-step="3"] .ms-tag-connection{background:#dff5eb;border-color:#7fcead;color:#126645}
.ms-ai-production{height:66px;display:flex;flex-direction:column;align-items:center;gap:8px;position:relative}
.ms-ai-stream{height:37px;width:3px;background:linear-gradient(#6dd5c5,#54afde);position:relative;box-shadow:0 0 10px #8bdcca}
.ms-ai-stream:after{content:"";height:9px;width:9px;position:absolute;background:#6ae1b9;border-radius:50%;left:-3px;animation:ms-ai-output-flow 1.15s ease-in-out infinite}
@keyframes ms-ai-output-flow{0%{top:0;opacity:0}30%{opacity:1}100%{top:31px;opacity:0}}
.ms-ai-stream-label{font-size:10px;font-weight:800;letter-spacing:.12em;color:#7e8ca0}
.ms-ai-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.ms-ai-result{background:#fff;border:1px solid #dce4eb;border-radius:15px;padding:20px 17px;display:flex;gap:12px;min-height:161px;opacity:.2;transform:translateY(-25px) scale(.93);filter:grayscale(.7);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.9,.2,1.15),filter .75s ease,box-shadow .75s ease}
.ms-ai-result h3{font-size:16px;line-height:1.25;letter-spacing:-.035em;margin:7px 0}
.ms-ai-result p{font-size:12px;line-height:1.5;color:#607082;margin:0}
.ms-ai-result-symbol{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;font-size:12px;font-weight:900}
.ms-ai-symbol-blue{background:#e4efff;color:#235ea8}
.ms-ai-symbol-green{background:#ddf5e9;color:#16805b}
.ms-ai-symbol-amber{background:#fff1d4;color:#906016}
.ms-brain-demo[data-step="1"] .ms-ai-result-one,.ms-brain-demo[data-step="2"] .ms-ai-result-one,.ms-brain-demo[data-step="3"] .ms-ai-result-one,.ms-brain-demo[data-step="2"] .ms-ai-result-two,.ms-brain-demo[data-step="3"] .ms-ai-result-two,.ms-brain-demo[data-step="3"] .ms-ai-result-three{opacity:1;transform:translateY(0) scale(1);filter:none;box-shadow:0 12px 23px rgba(29,60,90,.07)}
.ms-ai-results .ms-ai-result-two{transition-delay:.12s}.ms-ai-results .ms-ai-result-three{transition-delay:.24s}
.ms-brain-demo .ms-match-progress{margin-top:25px}
@media(max-width:1000px){.ms-ai-stage{grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr);gap:11px}.ms-ai-core{height:225px}.ms-ai-input{min-height:260px;padding:15px}.ms-ai-input h3{font-size:15px}.ms-ai-results{gap:9px}.ms-ai-result{padding:15px 10px;gap:8px}}
@media(max-width:730px){.ms-ai-stage{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ms-ai-input{min-height:0;padding:15px}.ms-ai-input h3{font-size:15px}.ms-ai-input-head{align-items:flex-start;gap:8px}.ms-ai-input .ms-match-icon{display:none}.ms-ai-input p{min-height:0}.ms-ai-input .ms-match-tags{min-height:0}.ms-ai-core{grid-column:1/-1;grid-row:2;height:210px;width:min(100%,340px);justify-self:center}.ms-ai-core:before,.ms-ai-core:after{display:none}.ms-ai-results{grid-template-columns:1fr}.ms-ai-result{min-height:0}.ms-ai-production{height:54px}.ms-match-progress{gap:2px}.ms-step{font-size:11px}}
@media(max-width:480px){.ms-ai-stage{grid-template-columns:1fr}.ms-ai-core{grid-row:auto;grid-column:1}.ms-ai-input-tender{grid-row:2}.ms-ai-input p{margin:10px 0}.ms-ai-input .ms-match-tags{gap:5px}.ms-brain-demo{padding:14px}.ms-ai-core{height:205px}}
@media(prefers-reduced-motion:reduce){.ms-ai-orbit,.ms-ai-brain-wrap,.ms-ai-brain-signal,.ms-ai-node,.ms-ai-thinking-dot,.ms-ai-stream:after,.ms-ai-core:before,.ms-ai-core:after{animation:none!important}.ms-ai-result,.ms-ai-input{transition:none!important}}


/* Landing matching animation v2: illustrated examples only; responsive three-stage flow. */
.ms-flow-demo{background:radial-gradient(ellipse at 50% 44%,#e4edff 0%,#f6f9ff 69%);border:1px solid #e2e9f4;border-radius:24px;padding:35px clamp(15px,3vw,34px) 23px;overflow:hidden;isolation:isolate}
.ms-flow-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,1.2fr) minmax(0,1fr);gap:clamp(12px,2vw,26px);align-items:center;min-height:240px}
.ms-flow-incoming,.ms-flow-ai,.ms-flow-matches{min-width:0}
.ms-flow-incoming h3,.ms-flow-matches h3{font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#8192ab;margin:0 0 16px}
.ms-flow-incoming h3{text-align:left}.ms-flow-matches h3{text-align:right}
.ms-flow-documents{display:flex;flex-direction:column;gap:11px;align-items:flex-start}
.ms-flow-paper{height:51px;width:min(100%,165px);display:flex;gap:10px;align-items:center;padding:10px 12px;background:#fff;border:1px solid #dfe8f3;border-radius:10px;box-shadow:0 6px 18px #2d5d930e;animation:ms-flow-paper 12s ease-out infinite}
.ms-flow-paper:nth-child(2){animation-delay:.45s}.ms-flow-paper:nth-child(3){animation-delay:.9s}
.ms-flow-document-icon{height:28px;width:23px;flex:none;background:#e5efff;border-radius:4px;position:relative}
.ms-flow-document-icon:after{content:"";position:absolute;left:5px;top:8px;width:12px;height:3px;border-radius:2px;background:#9ebce5;box-shadow:0 6px #9ebce5,0 12px #b9cfeb}
.ms-flow-document-lines{height:4px;flex:1;max-width:70px;background:#dce6f4;border-radius:4px;box-shadow:0 9px #dce6f4}
.ms-flow-profile{height:174px;border:1px solid #fff;border-radius:23px;background:linear-gradient(125deg,#fff,#e8f1ff);box-shadow:0 15px 36px #3b6ab02a;position:relative;overflow:hidden;padding:20px}
.ms-flow-company{position:relative;z-index:2}.ms-flow-building{width:37px;height:37px;background:#e0ebff;color:#4d7ed4;border-radius:9px;display:grid;place-items:center;margin-bottom:10px}
.ms-flow-company strong{display:block;font-weight:800;font-size:clamp(17px,2vw,21px);line-height:1.06;letter-spacing:-.04em;color:#182641}
.ms-flow-company small{display:block;font-size:12px;color:#7187a8;margin-top:9px}
.ms-flow-brain{position:absolute;right:0;top:6px;width:52%;height:155px;filter:drop-shadow(0 5px 10px #8bb5ff8c);animation:ms-flow-breathe 3s ease-in-out infinite}
.ms-flow-neuron{animation:ms-flow-neuron 1.9s ease-in-out infinite alternate}.ms-flow-neuron:nth-child(2n){animation-delay:.6s}.ms-flow-neuron:nth-child(3n){animation-delay:1.1s}
.ms-flow-activity{height:23px;margin-top:15px;position:relative;text-align:center;overflow:hidden}
.ms-flow-activity-word{display:block;position:absolute;inset:0;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#3776d5;opacity:0;transform:translateY(15px);animation:ms-flow-words 9s ease-in-out infinite}
.ms-flow-activity-word:nth-child(2){animation-delay:3s}.ms-flow-activity-word:nth-child(3){animation-delay:6s}
.ms-flow-result-list{display:flex;flex-direction:column;gap:10px}
.ms-flow-result{min-width:0;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:center;padding:10px 12px;background:#fff;border:1px solid #e0e8f3;border-radius:11px;box-shadow:0 6px 16px #3566a20d;opacity:0;transform:translateX(15px);animation:ms-flow-result 12s ease-out infinite}
.ms-flow-result:nth-child(2){animation-delay:.55s}.ms-flow-result:nth-child(3){animation-delay:1.1s}
.ms-flow-result>div{min-width:0;text-align:left}.ms-flow-result strong{display:block;font-size:12px;line-height:1.3;overflow-wrap:break-word;color:#24354d}
.ms-flow-result small{display:block;margin-top:4px;font-size:11px;color:#8796a9}
.ms-flow-result>b{justify-self:end;text-align:right;white-space:nowrap;font-size:15px;font-variant-numeric:tabular-nums;color:#198463}
.ms-flow-result:last-child>b{color:#a97b36}
.ms-flow-snapshot{max-width:580px;margin:25px auto 0;background:#fff;border:1px solid #d9e6f4;border-radius:15px;box-shadow:0 8px 28px #3566a21b;padding:17px 20px;opacity:0;transform:translateY(12px);animation:ms-flow-snapshot 12s ease-in-out infinite}
.ms-flow-snapshot-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.ms-flow-snapshot-head strong{font-size:14px;color:#263c59}
.ms-flow-snapshot-head span{white-space:nowrap;border-radius:100px;padding:5px 10px;background:#dcf7e9;color:#16805f;font-weight:800;font-size:12px}
.ms-flow-snapshot p{color:#718399;font-size:12px;line-height:1.55;margin:9px 0 0}.ms-flow-snapshot p b{color:#4978b8}
@keyframes ms-flow-paper{0%,5%{opacity:0;transform:translateX(-15px)}15%,34%{opacity:1;transform:translateX(0)}47%,100%{opacity:0;transform:translateX(36px)}}
@keyframes ms-flow-breathe{50%{transform:scale(1.05);filter:drop-shadow(0 5px 15px #6d9fffc5)}}
@keyframes ms-flow-neuron{from{opacity:.25}to{opacity:1}}
@keyframes ms-flow-words{0%{opacity:0;transform:translateY(15px)}10%,28%{opacity:1;transform:translateY(0)}33%,100%{opacity:0;transform:translateY(-15px)}}
@keyframes ms-flow-result{0%,49%{opacity:0;transform:translateX(15px)}61%,91%{opacity:1;transform:translateX(0)}98%,100%{opacity:0;transform:translateX(0)}}
@keyframes ms-flow-snapshot{0%,68%{opacity:0;transform:translateY(12px)}76%,92%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(0)}}
@media(max-width:860px){.ms-flow-grid{grid-template-columns:minmax(110px,1fr) minmax(205px,1.35fr) minmax(155px,1fr);gap:10px}.ms-flow-demo{padding:22px 14px}.ms-flow-profile{padding:15px}.ms-flow-result{padding:9px}.ms-flow-result strong{font-size:11px}}
@media(max-width:680px){.ms-flow-grid{grid-template-columns:minmax(0,1fr);gap:23px;max-width:400px;margin:0 auto}.ms-flow-demo{padding:24px 17px}.ms-flow-documents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ms-flow-paper{height:52px;width:100%;padding:8px;gap:5px}.ms-flow-document-lines{max-width:none}.ms-flow-incoming h3{margin-bottom:11px}.ms-flow-profile{height:174px;padding:20px}.ms-flow-company strong{font-size:21px}.ms-flow-activity{margin-top:13px}.ms-flow-matches h3{text-align:right;margin-bottom:12px}.ms-flow-result{grid-template-columns:minmax(0,1fr) 60px;min-height:62px;padding:12px 15px}.ms-flow-result strong{font-size:14px}.ms-flow-result small{font-size:12px}.ms-flow-result>b{font-size:17px}.ms-flow-snapshot{max-width:400px;margin-top:22px}.ms-flow-snapshot-head{align-items:flex-start}.ms-flow-snapshot-head strong{font-size:13px}}
@media(max-width:370px){.ms-flow-document-lines{display:none}.ms-flow-paper{justify-content:center}.ms-flow-brain{width:49%}.ms-flow-company strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){.ms-flow-paper,.ms-flow-brain,.ms-flow-neuron,.ms-flow-activity-word,.ms-flow-result,.ms-flow-snapshot{animation:none!important}.ms-flow-paper,.ms-flow-result,.ms-flow-snapshot{opacity:1;transform:none}.ms-flow-activity-word:first-child{opacity:1;transform:none}}


/* Pricing conversion section */
.ms-pricing-section{padding:64px 0 28px}
.ms-pricing-heading{text-align:center;max-width:690px;margin:0 auto 30px}
.ms-pricing-heading h2{font-size:clamp(31px,4vw,45px);letter-spacing:-.05em;margin:10px 0 9px;color:#182330}
.ms-pricing-heading p{color:#68788b;font-size:15px;margin:0}
.ms-pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:960px;margin:0 auto}
.ms-plan{display:flex;flex-direction:column;min-width:0;min-height:410px;padding:30px;border:1px solid #dde5ee;border-radius:20px;background:#fff;box-shadow:0 14px 38px #183a5b09}
.ms-plan-featured{border:2px solid #577da9;box-shadow:0 16px 42px #3066a41c;padding:29px}
.ms-plan-badge{display:inline-flex;align-self:flex-start;background:#eff3f7;color:#52677e;border-radius:100px;padding:7px 11px;font-size:10px;font-weight:800;letter-spacing:.09em}
.ms-plan-badge-trial{background:#e4f6ed;color:#177452}
.ms-plan h3{font-size:24px;letter-spacing:-.04em;margin:19px 0 6px}
.ms-plan-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:10px}
.ms-plan-price strong{font-size:47px;font-weight:800;letter-spacing:-.065em;line-height:1}
.ms-plan-price span{font-size:13px;color:#728196}
.ms-plan-description{min-height:40px;color:#67778b;line-height:1.5;font-size:13px;margin:7px 0 17px}
.ms-plan-benefits{list-style:none;padding:17px 0 20px;margin:0 0 auto;border-top:1px solid #e7edf3;display:grid;gap:14px}
.ms-plan-benefits li{font-size:14px;color:#34465b;line-height:1.4;display:flex;gap:10px;align-items:flex-start}
.ms-plan-benefits li:before{content:"✓";display:grid;place-items:center;flex:none;height:20px;width:20px;background:#e7f5ed;color:#227453;border-radius:50%;font-weight:850;font-size:11px}
.ms-plan .btn{margin-top:12px;text-align:center;min-height:44px;display:grid;place-items:center}
.ms-pricing-credits{max-width:960px;margin:20px auto 0;background:#fff;border:1px solid #dfe6ee;border-radius:14px;overflow:hidden}
.ms-pricing-credits summary{cursor:pointer;padding:18px 22px;font-size:14px;font-weight:800;color:#274661;list-style:none;display:flex;align-items:center;justify-content:space-between}
.ms-pricing-credits summary::-webkit-details-marker{display:none}
.ms-pricing-credits summary:after{content:"+";font-size:23px;font-weight:400;color:#577da9}
.ms-pricing-credits[open] summary:after{content:"−"}
.ms-pricing-credits-content{padding:0 22px 22px;font-size:13px;line-height:1.65;color:#5b6d80}
.ms-pricing-credits-content p{margin:0 0 14px}
.ms-credit-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}
.ms-credit-levels span{padding:12px;background:#f3f7fa;border-radius:9px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.ms-credit-levels b{color:#2a496a;white-space:nowrap}
.ms-pricing-footnote{text-align:center;color:#8895a6;font-size:11px;line-height:1.5;max-width:740px;margin:16px auto 0}
@media(max-width:680px){.ms-pricing-section{padding:44px 0 18px}.ms-pricing-grid{grid-template-columns:1fr;gap:14px}.ms-plan,.ms-plan-featured{min-height:0;padding:24px}.ms-plan-price strong{font-size:43px}.ms-credit-levels{grid-template-columns:1fr}.ms-pricing-heading h2{font-size:33px}}


/* Discovery-first landing showcase and condensed onboarding journey */
.ms-landing-hero{display:block;text-align:center;max-width:900px;margin:0 auto;padding:clamp(64px,9vw,110px) 0 48px}
.ms-hero-copy h1{font-size:clamp(48px,7vw,88px)}.ms-hero-copy>p{max-width:700px;margin:0 auto}
.ms-hero-actions,.ms-hero-proof{justify-content:center}
.ms-product-showcase{padding:70px 0 58px}
.ms-product-header{max-width:750px;margin:0 auto 28px;text-align:center}
.ms-product-header h2{font-size:clamp(30px,3.7vw,44px);letter-spacing:-.05em;margin:11px 0 10px}
.ms-product-header p{font-size:15px;color:#66778b;line-height:1.6}
.ms-product-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0 14px}
.ms-product-tab{border:1px solid #dce5ee;border-radius:13px;background:#fff;text-align:left;min-width:0;padding:17px 16px;cursor:pointer;color:#293d55;box-shadow:0 5px 18px #284d7709;transition:background .2s,border-color .2s,box-shadow .2s}
.ms-product-tab[aria-selected="true"]{border-color:#6c99c9;background:#f0f6fc;box-shadow:0 7px 20px #3b76a71b}
.ms-product-tab span{font-size:14px;display:block;font-weight:800}
.ms-product-tab small{display:block;margin-top:5px;color:#75869b;font-size:11px;line-height:1.35}
.ms-product-tab:focus-visible{outline:3px solid #79a4d8;outline-offset:2px}
.ms-product-panel{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;align-items:stretch;background:linear-gradient(140deg,#eff5fb,#f9fbfd);border:1px solid #dce6f0;border-radius:20px;padding:clamp(20px,3.6vw,44px);min-height:380px}
.ms-product-panel[hidden]{display:none!important}
.ms-product-panel-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0}
.ms-product-kicker{font-size:11px;color:#47749c;font-weight:850;letter-spacing:.12em}
.ms-product-panel-copy h3{font-size:clamp(25px,3vw,35px);letter-spacing:-.045em;line-height:1.13;margin:15px 0 9px}
.ms-product-panel-copy>p{font-size:14px;color:#5f7185;line-height:1.7;margin:0 0 22px}
.ms-product-detail{display:flex;flex-direction:column;gap:6px;border-left:3px solid #80b1d9;padding:3px 0 3px 14px}
.ms-product-detail strong{font-size:13px}.ms-product-detail span{color:#637589;font-size:12px;line-height:1.55}
.ms-product-preview{border:1px solid #dae4ee;border-radius:15px;background:#fff;box-shadow:0 14px 32px #2c5b8413;padding:20px;align-self:center;min-width:0}
.ms-product-preview-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;font-weight:800;letter-spacing:.12em;color:#73869a;padding-bottom:18px;border-bottom:1px solid #e9eef4}
.ms-product-chip{border-radius:100px;background:#e8f5ec;color:#2a825f;padding:6px 9px;white-space:nowrap;font-size:10px;letter-spacing:0}
.ms-product-tender{background:#f6f9fc;border:1px solid #e5ebf2;border-radius:12px;margin-top:17px;padding:16px}
.ms-product-tender-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.ms-product-tender strong{font-size:17px;line-height:1.3}.ms-product-score{font-size:11px;white-space:nowrap;color:#218361;background:#dcf3e6;border-radius:20px;padding:6px 9px}
.ms-product-tender p{font-size:13px;line-height:1.55;color:#566f85;margin:12px 0}
.ms-product-inline-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.ms-product-inline-meta span{font-size:10px;font-weight:700;background:#e9f0f7;color:#44617e;padding:7px 9px;border-radius:7px}
.ms-product-mini{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:13px;border-radius:10px;background:#f4f7fa;font-size:11px;color:#6d7f90}
.ms-product-mini strong{white-space:nowrap;color:#40678e;font-size:11px}
.ms-product-list-item{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid #e9eef3;padding:14px 0}
.ms-product-list-item strong{font-size:13px}.ms-product-list-item small{font-size:11px;color:#7f8ea0}
.ms-product-report{padding-top:18px}.ms-product-report strong{font-size:18px}.ms-product-report p{font-size:13px;line-height:1.65;color:#64768a}
.ms-product-contract{display:grid;gap:12px;padding-top:17px}.ms-product-contract>span{font-size:11px;color:#74869a}.ms-product-contract>strong{font-size:18px}
.ms-product-contract>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #edf1f6;padding-top:10px;font-size:12px}.ms-product-contract>div span{color:#77899c}
.ms-product-foot{font-size:11px;color:#8191a3}
.ms-product-disclaimer{text-align:center;margin:15px 0 0;color:#77889b;font-size:11px}
.ms-get-started{padding:60px 0 48px}.ms-start-header{text-align:center;max-width:690px;margin:0 auto 28px}
.ms-start-header h2{font-size:clamp(30px,3.8vw,44px);letter-spacing:-.05em;line-height:1.12;margin:10px 0 8px}.ms-start-header p{font-size:15px;color:#6b7c90}
.ms-start-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.ms-start-step{background:#fff;border:1px solid #dee7ef;border-radius:16px;padding:25px;min-height:205px}
.ms-start-icon{height:49px;width:49px;display:grid;place-items:center;color:#4678b7;background:#e8f1fd;border-radius:13px}
.ms-start-step small{font-size:10px;font-weight:850;color:#8da0b4;letter-spacing:.1em;display:block;margin-top:16px}
.ms-start-step h3{font-size:19px;letter-spacing:-.03em;margin:7px 0 8px}
.ms-start-step p{font-size:13px;color:#68798c;line-height:1.6;margin:0}
.ms-start-action{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:20px;margin-top:25px}
.ms-start-trust{color:#37775c;font-size:13px;font-weight:800}
.ms-source-info{margin:18px auto 0;max-width:820px;padding:12px 16px;border-radius:11px;color:#65778b;font-size:12px}
.ms-source-info summary{text-align:center;cursor:pointer;font-size:12px;font-weight:700;color:#687c92}
.ms-source-info p{font-size:12px;line-height:1.65;margin:12px auto}
@media(max-width:850px){.ms-product-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-product-panel{gap:16px;padding:24px}.ms-product-preview{padding:15px}}
@media(max-width:680px){.ms-landing-hero{padding:56px 0 32px}.ms-product-showcase{padding:44px 0 28px}.ms-product-tabs{grid-template-columns:none;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:6px}.ms-product-tab{flex:0 0 180px;scroll-snap-align:start}.ms-product-panel{grid-template-columns:1fr;min-height:0;padding:19px}.ms-product-panel-copy h3{font-size:27px}.ms-product-preview{width:100%}.ms-product-tender-top{flex-direction:column}.ms-product-mini{align-items:flex-start;flex-direction:column}.ms-start-steps{grid-template-columns:1fr;gap:12px}.ms-start-step{min-height:0;padding:20px}.ms-get-started{padding:42px 0 25px}.ms-start-action{flex-direction:column;gap:13px}.ms-start-action .btn{width:100%;text-align:center}}


/* Showcase contrast and true mobile reflow: override global dark-theme heading rules. */
.ms-product-showcase .ms-product-panel{color:#1b2b40}
.ms-product-showcase .ms-product-panel-copy h3,
.ms-product-showcase .ms-product-preview strong,
.ms-product-showcase .ms-product-preview b,
.ms-product-showcase .ms-product-tender strong,
.ms-product-showcase .ms-product-contract>strong,
.ms-product-showcase .ms-product-report strong{color:#20344b}
.ms-product-showcase .ms-product-panel-copy>p,
.ms-product-showcase .ms-product-detail span,
.ms-product-showcase .ms-product-preview p,
.ms-product-showcase .ms-product-list-item small{color:#4d6279}
.ms-product-showcase .ms-product-detail strong{color:#29435d}
.ms-product-showcase .ms-product-score{color:#187657}
.ms-product-showcase .ms-product-preview-top{color:#5f7893}
.ms-product-showcase .ms-product-tab{color:#243a50}
.ms-product-showcase .ms-product-tab[aria-selected="true"]{color:#173d62}
.ms-product-showcase .ms-product-disclaimer{color:#a9bcd0}
.ms-product-showcase .ms-product-disclaimer strong{color:#d5e8f6}
.ms-pricing-section .ms-plan{color:#243648}
.ms-pricing-section .ms-plan h3,.ms-pricing-section .ms-plan-price strong{color:#1b2d42}
.ms-pricing-section .ms-plan-price span{color:#62768b}
.ms-get-started .ms-start-step{color:#25374a}
.ms-get-started .ms-start-step h3{color:#24374d}
@media(max-width:680px){
  .ms-product-showcase .ms-product-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;overflow:visible;scroll-snap-type:none;padding:0}
  .ms-product-showcase .ms-product-tab{min-width:0;min-height:68px;width:auto;flex:none;padding:12px 11px;scroll-snap-align:none}
  .ms-product-showcase .ms-product-tab span{font-size:13px;line-height:1.25}
  .ms-product-showcase .ms-product-tab small{font-size:11px;line-height:1.35}
  .ms-product-showcase .ms-product-panel{width:100%;max-width:100%;padding:17px;display:flex;flex-direction:column;gap:20px;overflow:hidden}
  .ms-product-showcase .ms-product-panel-copy,.ms-product-showcase .ms-product-preview{min-width:0;width:100%;max-width:100%}
  .ms-product-showcase .ms-product-panel-copy h3{font-size:26px;line-height:1.15}
  .ms-product-showcase .ms-product-preview-top{flex-wrap:wrap}
  .ms-product-showcase .ms-product-tender{padding:13px}
  .ms-product-showcase .ms-product-tender strong{font-size:15px}
  .ms-product-showcase .ms-product-contract>div{flex-wrap:wrap}
}
@media(max-width:360px){.ms-product-showcase .ms-product-tab{padding:10px 8px}.ms-product-showcase .ms-product-tab span{font-size:12px}.ms-product-showcase .ms-product-tab small{font-size:10px}}


/* Landing v3: stable tab positioning, wide canvas, responsive mobile, coherent dark theme. */
@media(min-width:1100px){
  body.public-shell>main.wrap{width:min(1700px,calc(100% - 64px))}
  .ms-product-showcase{padding-left:clamp(0px,2vw,28px);padding-right:clamp(0px,2vw,28px)}
  .ms-product-panel{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(24px,4vw,58px)}
}
.ms-product-showcase .ms-product-tabs{align-items:stretch}
.ms-product-showcase .ms-product-tab{min-height:82px;display:flex;flex-direction:column;justify-content:center}
.ms-product-showcase .ms-product-panel{min-height:440px;align-items:stretch}
.ms-product-showcase .ms-product-panel-copy{justify-content:flex-start;padding-top:clamp(18px,3vw,45px)}
.ms-product-showcase .ms-product-preview{align-self:stretch;min-height:320px;display:flex;flex-direction:column;justify-content:flex-start}
.ms-product-showcase .ms-product-preview .ms-product-mini{margin-top:auto}
.ms-product-showcase .ms-product-panel-copy h3{max-width:540px}
@media(max-width:680px){
  body.public-shell>main.wrap{width:calc(100% - 28px);min-width:0}
  .ms-product-showcase{min-width:0;width:100%;padding:38px 0 25px}
  .ms-product-showcase .ms-product-tab{min-height:76px}
  .ms-product-showcase .ms-product-panel{min-height:0}
  .ms-product-showcase .ms-product-panel-copy{padding-top:0}
  .ms-product-showcase .ms-product-preview{min-height:0}
  .ms-product-showcase .ms-product-preview .ms-product-mini{margin-top:14px}
  .ms-match-section{min-width:0}
  .ms-match-intro h2{overflow-wrap:break-word}
  .ms-flow-demo{min-width:0}
  .ms-pricing-section,.ms-get-started{min-width:0}
}
:root[data-theme=dark] .ms-hero-copy>p,
:root[data-theme=dark] .ms-match-intro p,
:root[data-theme=dark] .ms-product-header p,
:root[data-theme=dark] .ms-start-header p,
:root[data-theme=dark] .ms-pricing-heading p{color:#bac8d8}
:root[data-theme=dark] .ms-product-showcase .ms-product-tab{background:#202e3d;border-color:#3c5268;color:#e5eef8}
:root[data-theme=dark] .ms-product-showcase .ms-product-tab[aria-selected=true]{background:#2c4967;color:#fff;border-color:#7ab2ea}
:root[data-theme=dark] .ms-product-showcase .ms-product-tab small{color:#b1c7db}
:root[data-theme=dark] .ms-product-showcase .ms-product-panel{background:linear-gradient(140deg,#1c2c3d,#24374a);border-color:#415b75;color:#e9f0f7}
:root[data-theme=dark] .ms-product-showcase .ms-product-panel-copy h3,
:root[data-theme=dark] .ms-product-showcase .ms-product-detail strong{color:#f4f8fe}
:root[data-theme=dark] .ms-product-showcase .ms-product-panel-copy>p,
:root[data-theme=dark] .ms-product-showcase .ms-product-detail span{color:#c5d5e5}
:root[data-theme=dark] .ms-product-showcase .ms-product-kicker{color:#9bc9ff}
:root[data-theme=dark] .ms-product-showcase .ms-product-preview{background:#283b4e;border-color:#4a6177}
:root[data-theme=dark] .ms-product-showcase .ms-product-preview-top{color:#b8cadb;border-color:#43596d}
:root[data-theme=dark] .ms-product-showcase .ms-product-preview strong,
:root[data-theme=dark] .ms-product-showcase .ms-product-preview b{color:#f0f7ff}
:root[data-theme=dark] .ms-product-showcase .ms-product-tender,
:root[data-theme=dark] .ms-product-showcase .ms-product-mini{background:#344a60;border-color:#4d647c;color:#d7e5f1}
:root[data-theme=dark] .ms-product-showcase .ms-product-preview p,
:root[data-theme=dark] .ms-product-showcase .ms-product-list-item small{color:#c3d3e2}
:root[data-theme=dark] .ms-product-showcase .ms-product-inline-meta span{background:#425c74;color:#e1eefa}
:root[data-theme=dark] .ms-product-showcase .ms-product-list-item,
:root[data-theme=dark] .ms-product-showcase .ms-product-contract>div{border-color:#496075}
:root[data-theme=dark] .ms-product-showcase .ms-product-mini strong{color:#aed5ff}
:root[data-theme=dark] .ms-product-showcase .ms-product-chip,
:root[data-theme=dark] .ms-product-showcase .ms-product-score{background:#1b5544;color:#d0f9e7}
:root[data-theme=dark] .ms-get-started .ms-start-step,
:root[data-theme=dark] .ms-pricing-section .ms-plan,
:root[data-theme=dark] .ms-pricing-credits{background:#223142;border-color:#42566b;color:#edf5fd}
:root[data-theme=dark] .ms-get-started .ms-start-step h3,
:root[data-theme=dark] .ms-pricing-section .ms-plan h3,
:root[data-theme=dark] .ms-pricing-section .ms-plan-price strong{color:#f2f7fc}
:root[data-theme=dark] .ms-get-started .ms-start-step p,
:root[data-theme=dark] .ms-pricing-section .ms-plan-description,
:root[data-theme=dark] .ms-pricing-section .ms-plan-price span,
:root[data-theme=dark] .ms-pricing-section .ms-plan-benefits li{color:#c8d7e5}
:root[data-theme=dark] .ms-pricing-section .ms-plan-benefits{border-color:#42566b}
:root[data-theme=dark] .ms-pricing-credits summary{color:#e5f1ff}
:root[data-theme=dark] .ms-pricing-credits-content{color:#c4d5e6}
:root[data-theme=dark] .ms-credit-levels span{background:#2d4054}
:root[data-theme=dark] .ms-credit-levels b{color:#e4f2ff}
@media(prefers-color-scheme:dark){
  :root:not([data-theme=light]) .ms-hero-copy>p,
  :root:not([data-theme=light]) .ms-match-intro p,
  :root:not([data-theme=light]) .ms-product-header p,
  :root:not([data-theme=light]) .ms-start-header p,
  :root:not([data-theme=light]) .ms-pricing-heading p{color:#bac8d8}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-tab{background:#202e3d;border-color:#3c5268;color:#e5eef8}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-tab[aria-selected=true]{background:#2c4967;color:#fff;border-color:#7ab2ea}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-tab small{color:#b1c7db}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-panel{background:linear-gradient(140deg,#1c2c3d,#24374a);border-color:#415b75;color:#e9f0f7}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-panel-copy h3,
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-detail strong{color:#f4f8fe}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-panel-copy>p,
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-detail span{color:#c5d5e5}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-kicker{color:#9bc9ff}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-preview{background:#283b4e;border-color:#4a6177}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-preview-top{color:#b8cadb;border-color:#43596d}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-preview strong,
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-preview b{color:#f0f7ff}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-tender,
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-mini{background:#344a60;border-color:#4d647c;color:#d7e5f1}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-preview p,
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-list-item small{color:#c3d3e2}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-inline-meta span{background:#425c74;color:#e1eefa}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-list-item,
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-contract>div{border-color:#496075}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-mini strong{color:#aed5ff}
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-chip,
  :root:not([data-theme=light]) .ms-product-showcase .ms-product-score{background:#1b5544;color:#d0f9e7}
  :root:not([data-theme=light]) .ms-get-started .ms-start-step,
  :root:not([data-theme=light]) .ms-pricing-section .ms-plan,
  :root:not([data-theme=light]) .ms-pricing-credits{background:#223142;border-color:#42566b;color:#edf5fd}
  :root:not([data-theme=light]) .ms-get-started .ms-start-step h3,
  :root:not([data-theme=light]) .ms-pricing-section .ms-plan h3,
  :root:not([data-theme=light]) .ms-pricing-section .ms-plan-price strong{color:#f2f7fc}
  :root:not([data-theme=light]) .ms-get-started .ms-start-step p,
  :root:not([data-theme=light]) .ms-pricing-section .ms-plan-description,
  :root:not([data-theme=light]) .ms-pricing-section .ms-plan-price span,
  :root:not([data-theme=light]) .ms-pricing-section .ms-plan-benefits li{color:#c8d7e5}
  :root:not([data-theme=light]) .ms-pricing-section .ms-plan-benefits{border-color:#42566b}
  :root:not([data-theme=light]) .ms-pricing-credits summary{color:#e5f1ff}
  :root:not([data-theme=light]) .ms-pricing-credits-content{color:#c4d5e6}
  :root:not([data-theme=light]) .ms-credit-levels span{background:#2d4054}
  :root:not([data-theme=light]) .ms-credit-levels b{color:#e4f2ff}
}


/* Public navigation follows the selected theme. */
:root[data-theme=dark] body.public-shell .topbar{background:rgba(22,32,45,.97);border-color:#33485f;color:#eff5fc}
:root[data-theme=dark] body.public-shell .topbar .logo,
:root[data-theme=dark] body.public-shell .topbar .mainnav a{color:#edf5fd}
:root[data-theme=dark] body.public-shell .topbar .iconbtn,
:root[data-theme=dark] body.public-shell .topbar .btn.ghost{color:#dce9f8;background:#27394c;border-color:#486078}
@media(prefers-color-scheme:dark){
 :root:not([data-theme=light]) body.public-shell .topbar{background:rgba(22,32,45,.97);border-color:#33485f;color:#eff5fc}
 :root:not([data-theme=light]) body.public-shell .topbar .logo,
 :root:not([data-theme=light]) body.public-shell .topbar .mainnav a{color:#edf5fd}
 :root:not([data-theme=light]) body.public-shell .topbar .iconbtn,
 :root:not([data-theme=light]) body.public-shell .topbar .btn.ghost{color:#dce9f8;background:#27394c;border-color:#486078}
}


/* Discovery pagination: user-selectable 10/20/50 rows, compact on mobile. */
.discovery-list-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:10px 0 14px}
.discovery-list-toolbar .sort-line{margin:0;min-width:0;flex:1 1 300px}
.discovery-page-size{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap;font-size:13px;color:var(--muted)}
.discovery-page-size label{font-weight:700;color:var(--ink)}
.discovery-page-size select{appearance:none;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;padding:8px 28px 8px 12px;color:var(--ink);font-weight:750;min-width:65px;cursor:pointer}
.discovery-page-size select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:620px){.discovery-list-toolbar{align-items:flex-start}.discovery-list-toolbar .sort-line{flex-basis:100%}.discovery-page-size{margin-left:auto}}

/* Tender details v2 — same information architecture on desktop and mobile. */
dialog.tl-dialog{
  --td-bg:#fff;--td-surface:#f7f9fb;--td-ink:#17263a;--td-muted:#596b7e;
  --td-line:#e0e7ef;--td-accent:#245e91;
  background:var(--td-bg);color:var(--td-ink);border-radius:18px;
  width:min(680px,calc(100vw - 28px));max-width:100vw;
}
dialog.tl-dialog .tl-scroll{padding:28px 30px 22px;overscroll-behavior:contain}
/* Pop-up header layout fix (Nov 30, 2026): the header was a 3-column
   grid whose first column (58px) is reserved for the score ring — but
   the ring renders nothing for a graded tender, so grid auto-placement
   dropped the title into the 58px column and crushed it to a few
   characters per line at phone width. Flex instead: the ring takes its
   own width when it renders, the title takes the rest, and with no ring
   the title spans the full width at every viewport. */
dialog.tl-dialog .d-top{display:flex;gap:14px;align-items:flex-start}
dialog.tl-dialog .d-top>.mp-score{flex:none}
dialog.tl-dialog .tl-dialog-title{font-size:clamp(19px,2vw,25px);line-height:1.25;letter-spacing:-.035em;color:var(--td-ink);overflow-wrap:anywhere}
dialog.tl-dialog .tl-dialog-meta{color:var(--td-muted);line-height:1.55}
dialog.tl-dialog .tl-dialog-deadline{font-size:13px;font-weight:650;color:var(--td-ink);margin:6px 0 0}
dialog.tl-dialog .close-btn{border-color:var(--td-line);background:var(--td-bg);color:var(--td-ink)}
dialog.tl-dialog .tl-dialog-pills{margin:16px 0 0;padding-bottom:17px;border-bottom:1px solid var(--td-line)}
dialog.tl-dialog .tl-reason{margin:18px 0 0}
dialog.tl-dialog .tl-reason .dg-group-title{color:var(--td-ink)}
dialog.tl-dialog .tender-sections{margin:16px 0 0;padding:0;border:0;background:transparent;color:var(--td-ink)}
dialog.tl-dialog .tender-section{border-top:1px solid var(--td-line);padding:18px 0 19px}
dialog.tl-dialog .tender-section:first-child{border-top:0;padding-top:0}
dialog.tl-dialog .tender-section .intel-h{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--td-muted);margin:0 0 11px}
dialog.tl-dialog .tender-section .synopsis{color:var(--td-ink);line-height:1.65}
dialog.tl-dialog .tender-section .synopsis-clamp .synopsis{-webkit-line-clamp:2;line-clamp:2}
dialog.tl-dialog .tender-section .synopsis-clamp.is-open .synopsis{-webkit-line-clamp:unset;line-clamp:unset}
dialog.tl-dialog .facts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px}
dialog.tl-dialog .facts-grid dt{color:var(--td-muted)}
dialog.tl-dialog .facts-grid dd{color:var(--td-ink);overflow-wrap:anywhere}
dialog.tl-dialog .dg-body{color:var(--td-ink)}
dialog.tl-dialog .tender-source-reminder{font-size:12px;color:var(--td-muted);margin:8px 0 0}
dialog.tl-dialog .tender-buyer:not(:has(.bi-loaded[data-has-awards="true"])){display:none}
dialog.tl-dialog .based,dialog.tl-dialog .intel-empty{color:var(--td-muted)}
dialog.tl-dialog .based strong,dialog.tl-dialog .awards .who,dialog.tl-dialog .awards .amt{color:var(--td-ink)}
dialog.tl-dialog .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
dialog.tl-dialog .stat{background:var(--td-surface);border:1px solid var(--td-line);min-width:0}
dialog.tl-dialog .stat .k{color:var(--td-muted)}
dialog.tl-dialog .stat .v{color:var(--td-ink);overflow-wrap:anywhere}
dialog.tl-dialog .awards li{border-color:var(--td-line);color:var(--td-ink)}
dialog.tl-dialog .tl-pin{background:var(--td-bg);border-color:var(--td-line);padding:14px 24px;box-shadow:0 -8px 28px rgba(9,24,40,.04)}
dialog.tl-dialog .tl-pin .dg-actions{display:flex;flex-wrap:wrap;gap:9px}
dialog.tl-dialog .tl-pin .dg-save{background:var(--td-ink);border-color:var(--td-ink);color:var(--td-bg)}
dialog.tl-dialog .tl-pin .dg-dismiss,dialog.tl-dialog .tl-source{background:var(--td-bg);border-color:var(--td-line);color:var(--td-ink)}
@media(max-width:699px){
  .tl-card>.tl-body{display:none}
  .tl-card .tl-face{cursor:pointer}
  .tl-card .tl-chev{display:inline}
  dialog.tl-dialog[open]{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:100dvh;border-radius:0}
  dialog.tl-dialog .tl-scroll{padding:20px 16px 22px}
  dialog.tl-dialog .d-top{gap:10px}
  dialog.tl-dialog .d-top .mp-ring{height:44px;width:44px}
  dialog.tl-dialog .close-btn{height:36px;width:36px}
  dialog.tl-dialog .tl-pin{padding:12px 14px max(12px,env(safe-area-inset-bottom))}
  dialog.tl-dialog .tl-pin .dg-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  dialog.tl-dialog .tl-pin .dg-actions>form,dialog.tl-dialog .tl-pin .dg-actions>details{min-width:0}
  dialog.tl-dialog .tl-pin .dg-save,dialog.tl-dialog .tl-pin .dg-dismiss{width:100%;padding:10px 8px}
  dialog.tl-dialog .tl-pin .tl-source{grid-column:1/-1;width:100%;margin:0}
}
@media(max-width:370px){dialog.tl-dialog .facts-grid{grid-template-columns:1fr}dialog.tl-dialog .tl-scroll{padding-inline:12px}}
:root[data-theme=dark] dialog.tl-dialog{
  --td-bg:#182534;--td-surface:#23364b;--td-ink:#f0f5fb;
  --td-muted:#bfcede;--td-line:#40566d;--td-accent:#9dccf7;
}
@media(prefers-color-scheme:dark){
  :root:not([data-theme=light]) dialog.tl-dialog{
    --td-bg:#182534;--td-surface:#23364b;--td-ink:#f0f5fb;
    --td-muted:#bfcede;--td-line:#40566d;--td-accent:#9dccf7;
  }
}

/* Keep tender score and disclosure controls legible in both themes. */
dialog.tl-dialog .mp-ring-num{fill:var(--td-ink)}
dialog.tl-dialog .mp-ring-bg{stroke:var(--td-line)}
dialog.tl-dialog .synopsis-more,
dialog.tl-dialog .show-all{color:var(--td-accent)}
dialog.tl-dialog .synopsis-more:focus-visible,
dialog.tl-dialog .show-all:focus-visible{outline:2px solid var(--td-accent);outline-offset:3px;border-radius:3px}
