/*
 * Automatizacijos.lt design system.
 * Edit design-tokens.css to change every page, including legacy template pages.
 * The important declarations in the FIRST named layer intentionally outrank
 * retained unlayered legacy !important rules without specificity escalation.
 */
@layer automatizacijos-hidden,automatizacijos-system;

@import url('/assets/design-tokens.css?v=e374971002bd1cfa');

@layer automatizacijos-system{
 /* 1. Typography: the same roles for market, legacy, auth and overlay markup. */
 html body{font-family:var(--ui-font)!important;--font:var(--ui-font)!important;--site-font:var(--ui-font)!important;--section-teal:var(--ui-dark-background)!important;--teal:var(--ui-brand)!important;--ink:var(--ui-ink)!important;--muted:var(--ui-muted)!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}
 body :where(h1,h2,h3,h4,h5,h6,p,div,a,span,strong,b,em,time,small,label,legend,li,dt,dd,td,th,summary,button,input,textarea,select,option,figcaption,caption){font-family:var(--ui-font)!important;font-synthesis:none!important}
 body{font-size:var(--ui-text)!important;line-height:var(--ui-body-line)!important;font-weight:var(--ui-body-weight)!important}
 #main{font-size:var(--ui-text)!important;line-height:var(--ui-body-line)!important}
 :where(#main) :where(div,span,a,strong,b,em,time){font-size:inherit!important;line-height:inherit!important}
 :where(h1,h2,h3,h4,h5,h6){font-weight:var(--ui-heading-weight)!important;letter-spacing:-.02em!important}
 h1{font-size:var(--ui-page-title)!important;line-height:1.2!important}
 h2{font-size:var(--ui-section-title)!important;line-height:1.2222!important}
 h3{font-size:var(--ui-h3)!important;line-height:1.3333!important}
 :where(h4,h5,h6){font-size:var(--ui-card-title)!important;line-height:1.4!important;letter-spacing:0!important}
 :where(p,li,dt,dd,td,th){font-size:var(--ui-text)!important;line-height:var(--ui-body-line)!important}
 :where(p,li,dt,dd,td,input,textarea,select){font-weight:var(--ui-body-weight)!important}
 .d-hero h1{font-size:var(--ui-hero-title)!important;line-height:1.2!important}
 :where(.d-hero-lead,.m-page-hero p,.lead){font-size:var(--ui-page-intro)!important;line-height:var(--ui-body-line)!important}
 :where(.d-section-head>p){font-size:var(--ui-section-intro)!important;line-height:var(--ui-body-line)!important}
 .m-heading>p{font-size:calc(var(--ui-text) - 2pt)!important}
 .blog-hero>p{font-size:calc(var(--ui-text) - 1pt)!important}
 :is(.m-eyebrow,.d-kicker,.eyebrow),#main :is(.m-eyebrow,.d-kicker,.eyebrow){font-size:var(--ui-eyebrow-font)!important}
 :where(small,.m-note,.small,.note,.m-field small,.m-form-message,.m-field-error,.d-form-feedback,.d-match-reason,.crumb,.eyebrow,.purchase-label,.m-eyebrow,.d-kicker,.m-breadcrumb,.blog-breadcrumb,.d-hero-note,.d-availability,.m-tags span,.d-tags span){font-size:var(--ui-help)!important;line-height:var(--ui-body-line)!important}
 :where(.crumb,.m-breadcrumb,.blog-breadcrumb) :where(a,span){font-size:inherit!important}
 :where(.d-template,.m-product,.r-info .m-product,.d-expert-card,.m-expert) :where(h2,h3){font-size:var(--ui-card-title)!important;line-height:1.4!important;overflow-wrap:anywhere!important}
 :where(form,.m-form-card) h2,.purchase-title{font-size:var(--ui-form-title)!important;line-height:1.3333!important}
 form h3{font-size:var(--ui-card-title)!important;line-height:1.4!important}
 :where(.m-directory-assist,.d-instant-filters) h2{font-size:var(--ui-card-title)!important;line-height:1.4!important}
 :where(.package-files strong,.package-files b,.flow strong){font-size:var(--ui-control-font)!important;font-weight:var(--ui-heading-weight)!important;line-height:var(--ui-body-line)!important}
 :where(.package-files small,.package-files span:not(.file-icon),.purchase-price>span){font-size:var(--ui-help)!important;line-height:var(--ui-body-line)!important}
 .file-icon{font-size:var(--ui-micro)!important;line-height:1.2!important}
 .purchase-price strong{font-size:var(--ui-price)!important;line-height:1.2!important;font-weight:var(--ui-heading-weight)!important}

 .d-hero-lead{color:var(--ui-muted)!important}

 .d-hero-assurance{font-size:var(--ui-help)!important;line-height:1.5!important;color:var(--ui-muted)!important;margin:16px auto 0!important}
 .d-expert-card>h4{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;min-height:84px!important;line-height:28px!important}
 .d-expert-card>p{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:5!important;overflow:hidden!important;flex:0 0 auto!important;min-height:120px!important;max-height:120px!important;line-height:24px!important;color:var(--ui-muted)!important}
 .d-more-reasons summary{cursor:pointer;font-size:var(--ui-help)!important;color:var(--ui-brand)!important;text-decoration:underline;text-underline-offset:3px}
 .d-match-explainer{max-width:75ch!important;color:var(--ui-muted)!important}
 @media(max-width:600px){.d-expert-card>h4,.d-expert-card>p{min-height:0!important}.d-hero-assurance{max-width:30ch!important}}

 .d-use-cases{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;margin-bottom:36px!important}
 .d-use-cases article{padding:24px!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius-card)!important}
 .d-use-cases h3{margin:0 0 12px!important}.d-use-cases p{margin:0!important;color:var(--ui-muted)!important}
 .d-analysis-title{margin:0 0 20px!important}
 /* Give homepage sections room without enlarging the hero or tool strip. */
 body.d-home .d-section:not(.d-integrations){padding-block:88px!important}
 body.d-home .d-hero + .d-section{margin-top:var(--ui-home-section-gap)!important}
 body.d-home .d-section:not(.d-integrations) .d-section-head{margin-bottom:32px!important}
 @media(max-width:760px){body.d-home .d-section:not(.d-integrations){padding-block:48px!important}body.d-home .d-section:not(.d-integrations) .d-section-head{margin-bottom:24px!important}}
 .d-integrations{padding:36px 0!important}.d-integrations .d-section-head{margin-bottom:24px!important}
 .d-integrations h2{font-size:var(--ui-h3)!important}.d-integrations .d-app-disc{width:56px!important;height:56px!important}
 .d-match-strip{gap:20px!important}.d-match-strip p{margin:0!important}
 .d-templates>.m-wrap>.m-note{margin:0 0 24px!important}
 @media(max-width:760px){.d-use-cases{grid-template-columns:1fr!important;gap:16px!important}.d-use-cases article{padding:20px!important}}


 /* One homepage canvas: all sections share the scroll palette, never stacked bands.
    Only main/footer consume these tokens. Menus, dialogs and inner pages keep theirs. */
 body.d-home{background:var(--home-background,#fff)!important}
 [data-home-canvas]{
  --ui-surface:var(--home-background,#fff);--ui-surface-soft:var(--home-card,#f8fcfd);
  --ui-ink:var(--home-ink,#163b40);--ui-muted:var(--home-muted,#526e75);
  --ui-brand:var(--home-brand,#08777c);--ui-action:var(--home-action,#033d42);
  --ui-line:var(--home-line,rgb(22 59 64 / .2));--ui-outline:var(--ui-line);
  --ink:var(--ui-ink);--muted:var(--ui-muted);--teal:var(--ui-brand);
  color:var(--ui-ink)!important;background:transparent!important;border-color:var(--ui-line)!important;
 }
 [data-home-canvas] :where(.d-section,.d-hero,.d-final-section,.m-specialist-invite){background:transparent!important;transition:none!important;border:0!important}
 [data-home-canvas] .d-how:before{background:none!important}
 [data-home-canvas] .m-link,[data-home-canvas] .m-link:is(:hover,:active,:focus-visible){color:var(--ui-brand)!important;-webkit-text-fill-color:var(--ui-brand)!important}
 [data-home-canvas] :where(h1,h2,h3,h4,h5,h6,summary,.d-rate,.d-template b,.d-step-icon,.d-steps article>span){color:var(--ui-ink)!important}
 [data-home-canvas] :where(p,.m-note,.d-expert-head p,.d-template-footer>span,.d-rate small,.d-availability){color:var(--ui-muted)!important}
 [data-home-canvas] :is(.m-eyebrow,.d-kicker){color:#148582!important}
 [data-home-canvas] :where(.d-expert-card,.d-template,.m-product,.m-faq details,.d-match-strip){background:transparent!important;border-color:var(--ui-line)!important;color:var(--ui-ink)!important}
 [data-home-canvas] :where(.d-template h3 a,.m-product h3,.m-footer-grid a,.m-brand){color:var(--ui-ink)!important}
 [data-home-canvas] :where(.d-tags span,.d-template-art){background:var(--ui-surface-soft)!important;color:var(--ui-muted)!important;border-color:var(--ui-line)!important}
 [data-home-canvas] :where(.d-integration-foot,.d-card-bottom,.d-template-footer,.d-steps article,.m-faq details,.m-footer-bottom,.m-footer-specialists){border-color:var(--ui-line)!important}
 [data-home-canvas] :where(.m-btn,.btn,.buybtn,.m-cart-add){
  --action-background:var(--ui-action);--action-border:var(--home-actionBorder,var(--ui-action));
  --action-text:var(--home-actionText,#fff);
 }
 [data-home-canvas] :where(.m-btn.secondary,.btn.secondary,.d-profile-btn,.m-cart-add,.buybtn){
  --action-background:transparent;--action-text:var(--ui-ink);--action-border:var(--ui-outline);
 }
 [data-home-canvas] .m-faq summary::after{color:var(--ui-ink)!important}
 @media(prefers-reduced-motion:reduce){body.d-home{background:#fff!important}}

 /* How it works uses the shared light surfaces, type and action components. */
 .r-how{background:var(--ui-surface)!important}
 .r-how>.m-page-hero,.r-how>.m-section{background:transparent!important}
 .r-how .how-intro{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr);gap:64px;align-items:center}
 .r-how .how-intro h1{margin-top:16px!important}
 .r-how .how-intro .how-assurance{font-size:var(--ui-help)!important;margin:16px 0 0!important;color:var(--ui-muted)!important}
 .r-how .how-example{padding:28px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-card);background:var(--ui-surface-soft)}
 .r-how .how-example h2{font-size:var(--ui-h3)!important;margin:14px 0 18px!important}
 .r-how .how-example blockquote{margin:0;color:var(--ui-ink);font-size:var(--ui-text);line-height:1.6}
 .r-how .how-example dl{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0;padding-top:20px;border-top:1px solid var(--ui-line)}
 .r-how .how-example dt{color:var(--ui-muted);font-size:var(--ui-help)!important}
 .r-how .how-example dd{margin:4px 0 0;font-weight:var(--ui-heading-weight)}
 .r-how .how-example .m-note{font-size:var(--ui-help)!important;margin:0!important;color:var(--ui-muted)}
 .r-how .m-section{padding-block:56px!important}
 .r-how .how-journey{list-style:none;padding:0;margin:0}
 .r-how .how-journey>li{display:grid;grid-template-columns:52px minmax(0,1fr) minmax(190px,.45fr);gap:28px;padding:32px 0;border-top:1px solid var(--ui-line);align-items:start}
 .r-how .how-number{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--ui-outline);border-radius:12px;color:var(--ui-brand);background:var(--ui-surface-soft);font-weight:var(--ui-heading-weight)}
 .r-how .how-journey h3{margin:0 0 12px!important}
 .r-how .how-journey p{margin:0!important;color:var(--ui-muted)}
 .r-how .how-journey .how-step-note{font-size:var(--ui-help)!important;padding-left:20px;border-left:2px solid var(--ui-line)}
 .r-how .m-faq{max-width:900px;margin:0;grid-template-columns:1fr!important}
 .r-how .m-faq summary{position:relative!important;padding-right:32px!important}
 .r-how .m-faq summary::after{right:0!important}
 .r-how .how-options{display:grid;grid-template-columns:1fr 1fr;gap:24px}
 .r-how .how-options article{padding:28px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-card);background:var(--ui-surface)}
 .r-how .how-options h3{margin:0 0 12px!important}
 .r-how .how-options p{margin:0 0 20px;color:var(--ui-muted)}
 .r-how .how-start{display:flex;align-items:center;justify-content:space-between;gap:32px;border-top:1px solid var(--ui-line);margin-top:56px;padding-top:40px}
 .r-how .how-start h2{font-size:var(--ui-h3)!important;margin:0 0 8px!important}
 .r-how .how-start p{margin:0;color:var(--ui-muted)}
 .r-how .how-start .m-btn{flex:none}
 @media(max-width:760px){
  .r-how .how-intro{grid-template-columns:1fr;gap:32px}
  .r-how .how-example,.r-how .how-options article{padding:22px}
  .r-how .m-section{padding-block:32px!important}
  .r-how .how-journey>li{grid-template-columns:40px minmax(0,1fr);gap:16px;padding:24px 0}
  .r-how .how-number{width:36px;height:36px;border-radius:9px}
  .r-how .how-step-note{grid-column:2}
  .r-how .how-options{grid-template-columns:1fr;gap:16px}
  .r-how .how-start{align-items:flex-start;flex-direction:column;gap:20px;margin-top:32px;padding-top:28px}
 }

 /* Specialist onboarding step cards match /how-it-works/ typography and align all text rows cleanly. */
 .m-registration-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;margin:0 0 32px!important}
 .m-registration-steps>div{display:grid!important;grid-template-rows:subgrid!important;grid-row:span 3!important;row-gap:0!important;align-content:start!important;padding:28px!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius-card)!important;background:var(--ui-surface)!important;box-shadow:0 2px 6px rgb(22 59 64 / .06)!important}
 .m-registration-steps>div>span{display:inline-grid!important;place-items:center!important;width:44px!important;height:44px!important;margin:0 0 18px!important;border:1px solid var(--ui-outline)!important;border-radius:11px!important;background:var(--ui-surface-soft)!important;color:var(--ui-brand)!important;font-size:var(--ui-help)!important;font-weight:600!important;line-height:1!important;letter-spacing:.02em!important}
 .m-registration-steps h2{font-size:var(--ui-h3)!important;line-height:1.3333!important;font-weight:var(--ui-heading-weight)!important;letter-spacing:-.02em!important;color:var(--ui-ink)!important;margin:0 0 12px!important;align-self:start!important}
 .m-registration-steps p{font-size:var(--ui-text)!important;line-height:var(--ui-body-line)!important;color:var(--ui-muted)!important;margin:0!important}
 .m-registration-steps p strong{color:var(--ui-ink)!important;font-weight:600!important}
 @media(max-width:900px){
  .m-registration-steps{grid-template-columns:1fr!important;gap:16px!important;margin-bottom:24px!important}
  .m-registration-steps>div{grid-row:auto!important;grid-template-rows:auto auto auto!important;padding:22px!important}
  .m-registration-steps>div>span{width:38px!important;height:38px!important;margin-bottom:14px!important;border-radius:9px!important}
 }

 /* Balanced 2-column membership panel with dedicated pricing and action card. */
 .m-account-invite{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(280px,340px)!important;gap:36px!important;align-items:center!important;padding:36px!important;border:1px solid var(--ui-line)!important;border-radius:20px!important;background:linear-gradient(135deg,#f4fafb 0%,#eef7f9 100%)!important;box-shadow:0 2px 10px rgb(22 59 64 / .04)!important}
 .m-account-invite>.m-membership-copy{max-width:none!important}
 .m-account-invite .m-membership-copy h2{font-size:clamp(24px,2.2vw,30px)!important;line-height:1.25!important;letter-spacing:-.02em!important;color:var(--ui-ink)!important;margin:10px 0 14px!important}
 .m-account-invite .m-membership-copy>p{font-size:var(--ui-text)!important;line-height:var(--ui-body-line)!important;color:var(--ui-muted)!important;margin:0 0 18px!important}
 .m-account-invite .m-membership-guarantee{font-size:var(--ui-help)!important;line-height:1.6!important;color:var(--ui-muted)!important;margin:0!important;padding:2px 0 2px 16px!important;border-left:2px solid var(--ui-brand)!important}
 .m-account-invite .m-membership-guarantee strong{color:var(--ui-ink)!important;font-weight:600!important}
 .m-account-invite .m-membership-plan{padding:26px!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius-card)!important;background:var(--ui-surface)!important;box-shadow:0 8px 24px rgb(22 59 64 / .07)!important}
 .m-account-invite .m-membership-price{display:flex!important;align-items:baseline!important;gap:10px!important;flex-wrap:wrap!important;margin:0 0 6px!important}
 .m-account-invite .m-membership-price strong{font-size:32px!important;line-height:1.1!important;font-weight:700!important;letter-spacing:-.03em!important;color:var(--ui-ink)!important}
 .m-account-invite .m-membership-price span{font-size:var(--ui-help)!important;font-weight:500!important;color:var(--ui-brand)!important}
 .m-account-invite .m-membership-after{font-size:var(--ui-help)!important;line-height:1.5!important;color:var(--ui-muted)!important;margin:0 0 20px!important;padding-bottom:18px!important;border-bottom:1px solid var(--ui-line)!important}
 .m-account-invite .m-membership-plan .m-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin:0!important;width:100%!important}
 .m-account-invite .m-membership-plan .m-btn{width:100%!important;justify-content:center!important;box-sizing:border-box!important}
 .m-account-invite .m-membership-meta{font-size:var(--ui-micro)!important;line-height:1.4!important;color:var(--ui-muted)!important;text-align:center!important;margin:14px 0 0!important}
 .m-policy-links{display:flex!important;flex-wrap:wrap!important;gap:16px 24px!important;margin:20px 0 0!important}
 .m-policy-links a{font-size:var(--ui-help)!important;color:var(--ui-muted)!important;text-decoration:underline!important;text-underline-offset:4px!important}
 .m-policy-links a:hover{color:var(--ui-brand)!important}
 @media(max-width:900px){
  .m-account-invite{grid-template-columns:1fr!important;gap:24px!important;padding:22px!important;border-radius:var(--ui-radius-card)!important}
  .m-account-invite .m-membership-plan{padding:22px!important}
 }

 /* A continuous, left-aligned homepage ending without competing cards. */
 body.d-home .r-faq{background:var(--ui-surface)!important}
 :is(body.d-home .r-faq,.r-how) .m-faq{width:100%!important;max-width:none!important;margin:0!important;gap:8px!important}
 :is(body.d-home .r-faq,.r-how) .m-faq details{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:14px 0!important}
 :is(body.d-home .r-faq,.r-how) .m-faq summary{padding-left:0!important;text-align:left!important}
 :is(body.d-home .r-faq,.r-how) .m-faq p{max-width:72ch!important}
 body.d-home .d-final-section{background:var(--ui-surface)!important;padding:56px 0!important}
 body.d-home .d-final{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;gap:32px!important}
 body.d-home .m-specialist-invite{background:var(--ui-surface)!important;border:0!important;padding:24px 0 48px!important}
 body.d-home .m-specialist-invite h2{font-size:var(--ui-h3)!important;margin:0 0 8px!important}
 body.d-home .m-specialist-invite p{margin:0!important;color:var(--ui-muted)!important}
 body.d-home .m-specialist-invite .m-wrap{gap:32px!important}
 @media(max-width:760px){
  body.d-home .d-final-section{padding:32px 0!important}
  body.d-home .d-final,body.d-home .m-specialist-invite .m-wrap{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:24px!important}
  body.d-home .d-final h2{margin-bottom:0!important}
  body.d-home .m-specialist-invite{padding:24px 0 32px!important}
 }

 /* Category filters share the standard control text size on every page. */
 :is(.m-catfilters,.info-topic-list,.d-home-filters) button,
 :is(.m-catfilters,.info-topic-list,.d-home-filters) button span{font-size:var(--ui-control-font)!important}

 /* Shared compact preview typography for articles, templates and specialists. */
 :is(.d-expert-card,.m-expert) :is(.m-expert-heading,.d-expert-head) h3{font-size:var(--ui-card-title)!important}

 :is(.info-card,.blog-card,.m-product,.d-template,.d-expert-card,.m-expert)>:is(h2,h3,h4){font-size:var(--ui-card-title)!important;line-height:1.4!important;margin:12px 0!important}
 :is(.info-card,.blog-card,.m-product,.d-template,.d-expert-card,.m-expert)>p{font-size:var(--ui-text)!important;line-height:1.5!important;color:var(--ui-muted)!important}

 /* Article paragraphs, comparisons and supporting copy share one size. */
 .blog-content{--ui-section-title:var(--ui-article-section-title)}
 .blog-content :is(p,li,dt,dd,td,th,caption,blockquote,figcaption,.blog-intro,.process-steps strong,.process-steps small,.blog-tip strong){font-size:var(--ui-article-copy)!important;line-height:var(--ui-body-line)!important;color:var(--ui-muted)!important}
 .blog-meta,.blog-meta :is(span,time,a),#main .blog-meta,#main .blog-meta :is(span,time,a){font-size:var(--ui-article-meta)!important;line-height:var(--ui-body-line)!important}

 /* Shared specialist card rows align identities, copy, tools and footers. */
 .d-expert-card>.d-card-bottom{margin-top:auto!important}
 .d-expert-card>.d-tags{align-content:flex-start!important}
 @media(min-width:761px){
  :is(.d-expert-grid,#experts):not(#recommendation-cards)>.d-expert-card{display:grid!important;grid-template-rows:subgrid!important;grid-row:span 5!important;row-gap:16px!important;align-items:start!important}
  :is(.d-expert-grid,#experts):not(#recommendation-cards)>.d-expert-card>.d-expert-head{grid-row:1!important}
  :is(.d-expert-grid,#experts):not(#recommendation-cards)>.d-expert-card>h4{grid-row:2!important;margin:0!important}
  :is(.d-expert-grid,#experts):not(#recommendation-cards)>.d-expert-card>p{grid-row:3!important;margin:0!important}
  :is(.d-expert-grid,#experts):not(#recommendation-cards)>.d-expert-card>.d-tags{grid-row:4!important;margin:0!important}
  :is(.d-expert-grid,#experts):not(#recommendation-cards)>.d-expert-card>.d-card-bottom{grid-row:5!important;align-self:stretch!important;margin:0!important}
 }

 /* Shared price text size for template and specialist cards. */
 .d-rate,.d-rate>span,.d-template-buy>b,.m-product-bottom>b{font-size:var(--ui-text)!important;font-weight:700!important}

 /* Card footers share price and supporting text on the left, action on the right. */
 .d-template-footer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:4px 16px!important}
 .d-template-footer>.d-template-buy{display:contents!important}
 .d-template-footer>.d-template-buy>b{grid-column:1!important;grid-row:1!important;justify-self:start!important;line-height:1.5!important}
 .d-template-footer>span{grid-column:1!important;grid-row:2!important;font-size:var(--ui-help)!important;line-height:1.5!important}
 .d-template-footer>.d-template-buy>:is(button,a){grid-column:2!important;grid-row:1 / span 2!important;justify-self:end!important}
 .d-rate small{font-size:var(--ui-text)!important;line-height:1.5!important;font-weight:var(--ui-body-weight)!important}

 /* Transparent content cards and help panels across pages. */
 :is(.d-expert-card,.m-expert,.d-template,.m-product,.info-card,.d-match-strip,.m-directory-assist,.how-example,.how-options article,.d-use-cases article,.m-ai-examples article,.info-controls,.blog-example,.blog-tip,.blog-conclusion,.blog-toc,.m-account-help,.profile-update-notice){background:transparent!important}
 :is(.d-template-buy,.m-product-bottom,.purchase-price) :is(b,strong,.template-sale-price,.template-sale-current){font-weight:700!important}

 /* Inner pages use white surfaces; homepage styling is independent. */
 body:not(.d-home){background:#fff!important;--ui-surface:#fff;--ui-surface-soft:#fff}
 body:not(.d-home) :is(main,.m-directory,.r-catalog-art,.m-page-hero,.m-section,.m-tint,.d-section,.m-final,.m-footer,.m-header,.m-nav,.d-expert-card,.m-expert,.d-template,.m-product,.info-card,.d-match-strip,.m-directory-assist,.m-form-card,.m-path,.m-step,.how-example,.how-options article,.d-use-cases article,.m-ai-examples article,.info-controls,.blog-example,.blog-tip,.blog-conclusion,.blog-toc,.m-account-help,.profile-update-notice,.m-account-summary,.purchase-panel,.payment-panel){background:#fff!important}

 /* A subtle edge shadow on content cards. */
 :is(.d-expert-card,.m-expert,.d-template,.m-product,.info-card,.blog-card){box-shadow:0 2px 6px rgb(22 59 64 / .06)!important}

 .m-products .m-product>.d-template-art{margin:0 -22px 21px;width:calc(100% + 44px);flex:none}

 /* Shared compact choice component for form options and category filters. */
 :is(.m-option,.info-topic-list>button,.m-catfilters>button){
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;gap:8px!important;
  min-height:40px!important;height:auto!important;padding:8px 12px!important;
  border:1px solid var(--ui-line)!important;border-radius:8px!important;
  background:#fff!important;color:var(--ui-ink)!important;
  font-size:var(--ui-help)!important;font-weight:var(--ui-body-weight)!important;line-height:1.5!important;
 }
 :is(.m-option,.info-topic-list>button,.m-catfilters>button){-webkit-text-fill-color:currentColor!important}
 :is(.m-option,.info-topic-list>button,.m-catfilters>button) :is(span,strong,small,b,em){color:inherit!important;-webkit-text-fill-color:inherit!important;opacity:1!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important}
 :is(.info-topic-list>button,.m-catfilters>button):is(.active,[aria-pressed=true]),.m-option:has(input:checked){background:color-mix(in srgb,var(--ui-brand) 12%,#fff)!important;border-color:var(--ui-brand)!important;color:var(--ui-ink)!important}
 :is(.m-option,.info-topic-list>button,.m-catfilters>button):focus-visible{outline:var(--ui-focus)!important;outline-offset:2px!important}

 /* 2. Form controls. Text entry stays 16px on iOS to avoid focus zoom. */
 :where(input,textarea,select,option){font-size:var(--ui-control-font)!important;line-height:var(--ui-body-line)!important;font-weight:var(--ui-body-weight)!important}
 :where(label,legend,.m-field>span,.m-field-legend,.m-option){font-size:var(--ui-text)!important;line-height:var(--ui-body-line)!important;font-weight:var(--ui-heading-weight)!important}
 :where(.m-consent,.m-consent span,.m-options-group-title,.m-filter-label,.m-filter-help,.m-filter-search label,.m-filter-panel label,.m-results-toolbar){font-size:var(--ui-help)!important;line-height:var(--ui-body-line)!important}
 #specialist-profile-form .m-option,#request-categories .m-option{min-height:40px!important;height:auto!important}
 :where(.m-filter-panel,.d-home-filters,.m-results-toolbar,.m-filter-search,.m-filter-select) :where(input,select,option,summary,.m-option,.m-check){font-size:var(--ui-control-font)!important;line-height:var(--ui-body-line)!important}
 :where(#code,#chat-code){font-size:var(--ui-code-font)!important;letter-spacing:.25em!important}

 /* Consistent breathing room before consent sections in forms. */
 form .purchase-consents,form .m-consent{margin-block-start:32px!important}
 form .m-consent + .m-consent{margin-block-start:16px!important}
 form .purchase-consents>legend{padding-bottom:16px!important}

 /* Directory dropdowns share one control typography, including facet groups. */
 :is(.m-filter-panel,.m-results-toolbar) :is(select,option,summary,.m-filter-option,.m-option){font-size:var(--ui-control-font)!important;line-height:1.5!important;font-weight:var(--ui-body-weight)!important;color:var(--ui-ink)!important}
 .m-filter-group :is(label,span,strong){font-size:var(--ui-control-font)!important;line-height:1.5!important;font-weight:var(--ui-body-weight)!important}
 .m-filter-group .m-facet-section h3{font-size:var(--ui-control-font)!important;line-height:1.5!important;font-weight:var(--ui-heading-weight)!important;letter-spacing:0!important;margin:0 0 12px!important}
 .m-filter-group .m-option{background:transparent!important;border:0!important;border-radius:0!important;padding:8px 0!important;min-height:40px!important}

 /* One directory control style across primary and expanded filters. */
 .m-filter-panel .m-primary-filter-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;gap:16px!important}
 .m-filter-panel .m-more-filter-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin-top:16px!important}
 .m-filter-panel .m-more-filters{margin-top:16px!important}
 .m-filter-panel :is(.m-filter-select select,.m-filter-group>summary,.m-more-filters>summary){box-sizing:border-box!important;min-height:44px!important;padding:10px 36px 10px 14px!important;border:1px solid var(--ui-line)!important;border-radius:8px!important;background-color:#fff!important;color:var(--ui-ink)!important;font-size:var(--ui-control-font)!important;font-weight:var(--ui-body-weight)!important;line-height:22px!important;box-shadow:none!important}
 .m-filter-panel :is(.m-filter-group>summary,.m-more-filters>summary){position:relative!important;list-style:none!important;cursor:pointer}
 .m-filter-panel :is(.m-filter-group>summary,.m-more-filters>summary)::-webkit-details-marker{display:none}
 .m-filter-panel :is(.m-filter-group>summary,.m-more-filters>summary)::marker{content:''}
 .m-filter-panel :is(.m-filter-group>summary,.m-more-filters>summary)::after{content:''!important;position:absolute!important;right:16px!important;top:18px!important;width:6px!important;height:6px!important;border-right:1.5px solid currentColor!important;border-bottom:1.5px solid currentColor!important;transform:rotate(45deg)!important}
 .m-filter-panel :is(.m-filter-group,.m-more-filters)[open]>summary::after{transform:rotate(225deg)!important;top:21px!important}
 .m-filter-panel .m-filter-select select{appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23163b40' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 13px center!important}
 .m-filter-panel .m-more-filters>summary{width:fit-content!important}
 .m-filter-panel .m-filter-group{border:0!important;background:transparent!important;padding:0!important;border-radius:0!important}
 .m-filter-panel :is(.m-filter-select,.m-filter-label){font-size:var(--ui-help)!important;font-weight:var(--ui-body-weight)!important;color:var(--ui-ink)!important}
 @media(max-width:760px){.m-filter-panel :is(.m-primary-filter-grid,.m-more-filter-grid){grid-template-columns:1fr!important}}

 /* 3. One button component. Existing class names are compatibility aliases. */
 :where(.m-btn,.btn,.buybtn,.m-cart-add,.d-profile-btn,.m-custom-tool-add,.m-menu-request,.m-nav-cta,.d-nav-action,.m-auth-register){
  --action-background:var(--ui-action);--action-text:var(--ui-on-dark);--action-border:var(--ui-action);
  box-sizing:border-box!important;min-height:var(--ui-button-height)!important;height:auto!important;max-height:none!important;
  padding:calc((var(--ui-button-height) - var(--ui-button-line) - 2px)/2) var(--ui-button-padding-x)!important;
  border:1px solid var(--action-border)!important;border-radius:var(--ui-button-radius)!important;
  background:var(--action-background)!important;color:var(--action-text)!important;-webkit-text-fill-color:var(--action-text)!important;
  font-family:var(--ui-font)!important;font-size:var(--ui-button-font)!important;line-height:var(--ui-button-line)!important;font-weight:var(--ui-body-weight)!important;
  text-align:center!important;text-decoration:none!important;text-shadow:none!important;
  box-shadow:var(--ui-button-edge)!important;transform:none!important;translate:none!important;filter:none!important;
  transition:box-shadow .18s ease,background-color .18s ease!important;
 }
 :where(.m-btn,.btn,.buybtn,.m-cart-add,.d-profile-btn,.m-custom-tool-add,.m-auth-register):not([hidden]):not([data-completion-hidden]){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
 :where(.m-btn.secondary,.btn.secondary,.d-profile-btn,.m-custom-tool-add,.m-auth-register,.m-cart-add,.buybtn){--action-background:transparent;--action-text:var(--ui-ink);--action-border:var(--ui-outline)}
 #account-dashboard .m-account-actions .m-btn:not(.secondary){--action-background:var(--ui-action);--action-border:var(--ui-action)}
 :where(.m-btn,.btn,.buybtn,.m-cart-add,.d-profile-btn,.m-custom-tool-add,.m-menu-request,.m-nav-cta,.d-nav-action,.m-auth-register) :where(span,svg){color:inherit!important;-webkit-text-fill-color:inherit!important;font-size:inherit!important}
 @media(hover:hover){:where(.m-btn,.btn,.buybtn,.m-cart-add,.d-profile-btn,.m-custom-tool-add,.m-menu-request,.m-nav-cta,.d-nav-action,.m-auth-register):not(:disabled):hover{background:var(--action-background)!important;color:var(--action-text)!important;-webkit-text-fill-color:var(--action-text)!important;box-shadow:var(--ui-button-hover)!important;transform:none!important;filter:none!important}}
 :where(.m-btn,.btn,.buybtn,.m-cart-add,.d-profile-btn,.m-custom-tool-add,.m-menu-request,.m-nav-cta,.d-nav-action,.m-auth-register):active{box-shadow:var(--ui-button-pressed)!important}
 :where(.m-btn,.btn,.buybtn,.m-cart-add,.d-profile-btn,.m-custom-tool-add,.m-menu-request,.m-nav-cta,.m-account-entry,.m-cart-nav):focus-visible{outline:var(--ui-focus)!important;outline-offset:3px!important}
 :where(.m-btn,.btn,.buybtn,.m-cart-add,.d-profile-btn,.m-custom-tool-add):disabled{opacity:.55!important}
 :where(.m-actions,.m-form-actions,.m-expert-actions,.d-expert-actions,.d-hero-actions){gap:var(--ui-action-gap)!important;flex-wrap:wrap!important;align-items:center!important}

 /* 4. Text links are not buttons. */
 .m-link,.m-link:hover,.m-link:active{
  display:inline!important;min-height:0!important;height:auto!important;max-height:none!important;
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;
  color:var(--ui-brand)!important;-webkit-text-fill-color:var(--ui-brand)!important;
  box-shadow:none!important;text-shadow:none!important;font-size:var(--ui-control-font)!important;line-height:var(--ui-body-line)!important;
  font-weight:var(--ui-body-weight)!important;translate:none!important;transform:none!important;text-decoration:none!important;
 }
 .m-link:hover{text-decoration:underline!important;text-underline-offset:3px!important}
 .d-profile-content>.m-link{display:inline-block!important;margin-top:var(--ui-action-gap)!important}

 /* 5. Dark surface variant. Same coverage on home and inner pages. */
 :where([data-tone="deep"],body:not(.d-home) .d-how,section[aria-labelledby="free-starter-title"],.r-how .m-section:has(>.m-wrap>.m-paths),.m-final,.m-choice-group .m-path,.m-entry-choices .m-path) :where(.m-btn,.btn,.buybtn,.d-profile-btn){--action-background:transparent;--action-text:var(--ui-on-dark);--action-border:rgb(244 251 252/.65)}
 :where([data-tone="deep"],body:not(.d-home) .d-how,section[aria-labelledby="free-starter-title"],.r-how .m-section:has(>.m-wrap>.m-paths),.m-final,.m-choice-group .m-path,.m-entry-choices .m-path) .m-link,
 :where([data-tone="deep"],body:not(.d-home) .d-how,section[aria-labelledby="free-starter-title"],.r-how .m-section:has(>.m-wrap>.m-paths),.m-final,.m-choice-group .m-path,.m-entry-choices .m-path) .m-link:is(:hover,:active,:focus-visible){color:var(--ui-on-dark)!important;-webkit-text-fill-color:var(--ui-on-dark)!important}
 .m-tint>.m-wrap>.m-btn{--action-background:transparent;--action-text:var(--ui-ink);--action-border:var(--ui-outline)}
 section[aria-labelledby="free-starter-title"]>.m-wrap>.m-btn{--action-background:transparent;--action-text:var(--ui-on-dark);--action-border:rgb(244 251 252/.65)}

 /* 6. Compact navigation. Its scroll animation remains owned by presentation.js. */
 .m-header :where(.m-menu a,.m-menu-request,.m-nav-cta,.d-nav-action,.m-account-panel a,.r-cart-label){font-size:var(--ui-nav-font)!important;line-height:20px!important;font-weight:var(--ui-body-weight)!important;letter-spacing:0!important}
 .m-header :where(.m-menu-request,.m-nav-cta,.d-nav-action){--action-background:var(--ui-action);--action-border:var(--ui-action);--action-text:var(--ui-on-dark);white-space:nowrap!important}
 .m-header .m-menu a[href="/for-specialists/"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;height:var(--ui-button-height)!important;min-height:var(--ui-button-height)!important;padding:8px 14px!important;border-radius:var(--ui-button-radius)!important;background:var(--ui-surface)!important;color:var(--ui-brand)!important;-webkit-text-fill-color:var(--ui-brand)!important;border:1px solid var(--ui-brand)!important;box-shadow:var(--ui-button-edge)!important;font-weight:500!important;white-space:nowrap!important;text-decoration:none!important;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
 .m-header .m-menu a[href="/for-specialists/"]:after{display:none!important}
 .m-header .m-menu a[href="/for-specialists/"]:is(:hover,:focus-visible){background:#f0f9fa!important;border-color:var(--ui-action)!important;color:var(--ui-action)!important;-webkit-text-fill-color:var(--ui-action)!important;box-shadow:var(--ui-button-hover)!important}
 .m-header .m-menu a[href="/for-specialists/"][aria-current="page"]{background:#eef8f9!important;border-color:var(--ui-action)!important;color:var(--ui-action)!important;-webkit-text-fill-color:var(--ui-action)!important}
 .m-header :where(.m-brand,.m-brand>span){font-size:var(--ui-brand-font)!important;line-height:24px!important;font-weight:700!important}
 .m-header :where(.m-menu-request,.m-nav-cta,.d-nav-action,.m-account-entry,.r-account-link,.r-cart-link,.m-cart-nav){box-sizing:border-box!important;height:var(--ui-button-height)!important;min-height:var(--ui-button-height)!important;max-height:var(--ui-button-height)!important;padding:8px 12px!important;border-radius:var(--ui-button-radius)!important;gap:10px!important}
 .m-header :where(.m-account-entry,.r-account-link,.r-cart-link,.m-cart-nav){background:transparent!important;color:var(--ui-ink)!important;box-shadow:var(--ui-button-edge)!important}
 .m-header :where(.m-account-entry,.r-account-link,.r-cart-link,.m-cart-nav):hover{box-shadow:var(--ui-button-hover)!important}
 .m-header :where(.m-account-entry,.r-account-link,.r-cart-link,.m-cart-nav):active{box-shadow:var(--ui-button-pressed)!important}
 .m-header .m-nav{min-height:72px!important;padding:10px 12px!important}
 .m-header.is-scrolled .m-nav{min-height:64px!important;padding:8px 16px!important}
 .m-header .m-menu{gap:22px!important}
 .m-header .m-account-dropdown :where(a,button){font-size:var(--ui-nav-font)!important;line-height:20px!important;font-weight:var(--ui-body-weight)!important;letter-spacing:normal!important;min-height:36px!important;padding:6px 10px!important;text-decoration:none!important}
 @media(max-width:760px){
  .m-header .m-nav{min-height:66px!important;padding:8px 10px!important}
  .m-header.is-scrolled .m-nav{min-height:62px!important;padding:6px 10px!important}
  .m-header :where(.m-account-entry,.r-account-link,.r-cart-link,.m-cart-nav){padding:8px!important}
 }

 .m-header .m-account-dropdown{padding:6px!important}
 @media(max-width:900px){
  .m-header .m-menu{gap:2px!important;padding:8px!important}
  .m-header .m-menu a:not(.m-menu-request):not(.m-nav-cta):not([href="/for-specialists/"]){box-sizing:border-box!important;min-height:40px!important;padding:8px 12px!important;margin:0!important}
  .m-header .m-menu a[href="/for-specialists/"]{margin-top:6px!important}
  .m-header .m-menu .m-menu-request{margin-top:6px!important}
 }

 /* Readable expanded menus and FAQ, including retained page-specific markup. */
 .m-header .m-account-dropdown :where(a,button){font-size:var(--ui-control-font)!important;line-height:24px!important}
 .m-faq summary,.m-faq summary :where(span,strong){font-size:17px!important;line-height:1.5!important;font-weight:var(--ui-heading-weight)!important}
 .m-faq :where(p,li){font-size:15px!important;line-height:1.6!important}
 .m-faq{gap:10px 18px!important}
 .m-faq details{padding:16px 18px!important}
 @media(max-width:760px){.m-faq details{padding:13px 15px!important}}
 @media(max-width:760px){.m-header .m-menu a{font-size:var(--ui-control-font)!important;line-height:24px!important}}

 .d-availability:empty,[data-sample-profile] .d-availability{display:none!important}

 /* 7. Homepage category tabs are navigation controls, not raised actions. */
 .d-home-filters{display:grid!important;grid-template-columns:repeat(3,max-content)!important;gap:0!important;align-items:center!important;margin:0 0 22px!important}
 .d-home-filters button,.d-home-filters button:hover{background:transparent!important;border:0!important;border-bottom:2px solid var(--ui-line)!important;border-radius:0!important;box-shadow:none!important;min-height:40px!important;padding:8px 14px!important;color:var(--ui-muted)!important;font-size:var(--ui-control-font)!important;font-weight:var(--ui-body-weight)!important;line-height:20px!important;white-space:nowrap!important;translate:none!important}
 .d-home-filters button:is(.active,[aria-pressed=true]){color:var(--ui-brand)!important;border-bottom-color:var(--ui-brand)!important;font-weight:var(--ui-heading-weight)!important}
 .d-home-filters>span{grid-column:1/-1!important;margin:12px 0 0!important;font-size:var(--ui-help)!important;line-height:var(--ui-body-line)!important}
 .d-directory-more{margin:22px 0 0!important}
 @media(max-width:760px){.d-home-filters{grid-template-columns:.6fr 1.5fr 1.2fr!important;width:100%!important}.d-home-filters button{padding:8px 6px!important}}

 /* 8. Conversation and profile overlays use compact semantic headings. */

 /* Recommendation results own their scroll area, independent of profile content. */
 .matching-results-dialog{box-sizing:border-box!important;max-height:90dvh!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;padding:28px!important}
 .matching-results-dialog #match-results-heading{font-size:28px!important;line-height:1.25!important;margin:0 36px 12px 0!important;padding:0!important}
 .matching-results-dialog .d-match-results{margin:0!important;padding:0!important}
 .matching-results-dialog :is(#recommendation-status,.d-match-explainer){font-size:var(--ui-text)!important;line-height:1.5!important;margin:0 0 16px!important}
 .matching-results-dialog .d-match-explainer{font-size:var(--ui-help)!important;max-width:none!important}
 .matching-results-dialog .d-match-sort{display:flex!important;justify-content:flex-end!important;align-items:center!important;margin:0 0 18px!important;gap:12px!important}
 .matching-results-dialog .d-match-sort select{width:auto!important;max-width:100%!important}
 .matching-results-dialog .d-match-sort>span{font-size:var(--ui-help)!important}
 .matching-results-dialog .d-expert-card{padding:20px!important;gap:16px!important}
 .matching-results-dialog .d-expert-card>h4{min-height:0!important;margin:0!important;font-size:var(--ui-card-title)!important;line-height:1.4!important}
 .matching-results-dialog .d-expert-card>p{min-height:0!important;max-height:120px!important;margin:0!important}
 .matching-results-dialog .d-expert-head{gap:12px!important;margin:0!important}
 .matching-results-dialog .d-expert-head :is(img,.d-avatar){width:56px!important;height:56px!important;flex:0 0 56px!important}
 @media(max-width:600px){.matching-results-dialog{max-height:92dvh!important;padding:20px 16px!important}.matching-results-dialog .d-match-sort{flex-wrap:wrap!important;justify-content:flex-start!important}.matching-results-dialog #match-results-heading{font-size:24px!important}.matching-results-dialog .d-expert-card{padding:18px!important}}

 .d-profile-dialog:not(.matching-results-dialog){padding:0!important;overflow:hidden!important;max-height:90dvh!important}
 .d-profile-dialog>.d-profile-content{box-sizing:border-box!important;max-height:calc(90dvh - 2px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:30px!important}
 .d-profile-dialog>.d-dialog-close{position:absolute!important;top:8px!important;right:8px!important;z-index:5!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-decoration:none!important;color:var(--ui-ink)!important;line-height:1!important}
 .d-profile-dialog>.d-dialog-close:focus-visible{outline:none!important;box-shadow:none!important}
 .d-profile-dialog.matching-results-dialog>.d-dialog-close{position:sticky!important;top:8px!important;right:auto!important;float:right!important;margin:-20px -20px -20px 0!important;background:#fff!important;z-index:10!important}
 @media(max-width:600px){.d-profile-dialog.matching-results-dialog>.d-dialog-close{margin:-12px -8px -28px 0!important}}
 @media(max-width:600px){.d-profile-dialog>.d-profile-content{padding:22px!important}}

 .m-chat-shell :where(h2,#chat-title){font-size:var(--ui-overlay-title)!important;line-height:1.3!important}
 .m-chat-shell :where(h3,.m-service-panel-title,.m-service-card h3){font-size:var(--ui-chat-subtitle)!important;line-height:1.4!important}
 .m-chat-shell :where(.m-message,.m-message p,input,textarea,.m-thread-top strong,.m-thread-content strong){font-size:var(--ui-control-font)!important;line-height:var(--ui-body-line)!important}
 .m-chat-shell :where(.m-thread-preview,.m-thread-bottom,.m-account-caption strong,.m-service-content .m-note){font-size:var(--ui-footer-font)!important;line-height:var(--ui-body-line)!important}
 .m-chat-shell :where(.m-message-author,.m-message small,.m-chat-peer-label,.m-thread-top small,.m-account-caption>span,.m-account-signout,.m-unread-badge){font-size:var(--ui-micro)!important;line-height:var(--ui-body-line)!important}
 :where(dialog,[role=dialog],.d-profile-dialog) :where(h2,h3){font-size:var(--ui-overlay-title)!important;line-height:1.4!important}
 :where(dialog,[role=dialog],.d-profile-dialog) :where(p,li,label){font-size:var(--ui-text)!important;line-height:var(--ui-body-line)!important}
 .d-profile-content>h3{font-size:var(--ui-card-title)!important}
 #public-profile>.d-expert-head>div> :is(h1,h2){font-size:var(--ui-card-title)!important}
 

 /* Conversation layout keeps the active peer, messages and composer in view. */
 .m-chat-page .m-page-hero{padding:112px 0 16px!important}
 .m-chat-page .m-page-hero h1{font-size:28px!important;line-height:1.25!important;margin:0 0 8px!important}
 .m-chat-page .m-page-hero p{font-size:var(--ui-text)!important;line-height:1.5!important;margin:0!important}
 .m-chat-page .m-chat-shell{padding-top:8px!important;padding-bottom:24px!important}
 .m-chat-page .m-chat-workspace{position:relative!important;height:max(calc(100dvh - 250px),680px)!important;min-height:440px!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important}
 .m-chat-page .m-chat-sidebar{min-height:0!important;overflow-y:auto!important}
 .m-chat-page .m-chat-sidebar #chat-threads{max-height:none!important}
 .m-chat-page .m-chat-main{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;padding:20px!important;gap:12px!important}
 .m-chat-page .m-chat-conversation-header{display:none!important;flex:0 0 auto!important;margin:0!important;padding:0!important;border:0!important}
 .m-chat-page .m-chat-conversation-header>div,.m-chat-page #chat-thread-settings{display:none!important}
 .m-chat-page .m-chat-conversation-header h2{font-size:var(--ui-card-title)!important;line-height:1.3!important;margin:2px 0 0!important}
 .m-chat-page #chat-placeholder{margin:auto 0!important;font-size:var(--ui-text)!important}
 .m-chat-page #chat-messages{flex:1 1 0!important;height:auto!important;min-height:160px!important;overflow-y:auto!important;overscroll-behavior:auto!important;margin:0!important;padding:4px 0!important}
 .m-chat-page #chat-compose{flex:0 0 auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding-top:12px!important;border-top:1px solid var(--ui-line)!important}
 .m-chat-page #chat-form{margin:0!important}
 .m-chat-page #chat-form .m-field{margin:0 0 10px!important;gap:6px!important}
 .m-chat-page #chat-message{height:140px!important;min-height:120px!important;max-height:240px!important;resize:vertical!important}
 .m-chat-page #chat-form>.m-note{font-size:var(--ui-help)!important;line-height:1.4!important;margin:8px 0 0!important}
 .m-chat-page #chat-contact-email{padding:8px 12px!important;min-height:40px!important}
 .m-chat-page #chat-terms{margin:12px 0!important}
 .m-chat-page .m-chat-main:has(#chat-contact-email-field:not([hidden])) #chat-messages{flex:0 0 auto!important;min-height:0!important}
 .m-chat-page .m-chat-main:has(#chat-contact-email-field:not([hidden])) #chat-compose{flex:1 1 auto!important;max-height:none!important}
 .m-chat-page .m-chat-settings-panel{position:absolute!important;inset:0!important;z-index:10!important;overflow-y:auto!important;background:#fff!important}
 @media(max-width:760px){
  .m-chat-page .m-chat-workspace{height:calc(100dvh - 240px)!important;min-height:440px!important}
  .m-chat-page .m-chat-workspace:not(.is-conversation-open) .m-chat-main{display:none!important}
  .m-chat-page .m-chat-main{padding:14px!important}
  .m-chat-page .m-chat-conversation-header{display:flex!important;flex-wrap:wrap!important}
  .m-chat-page .m-chat-back{display:block!important;flex:0 0 100%!important}
  .m-chat-page:has(.is-conversation-open) .m-page-hero{display:none!important}
  .m-chat-page:has(.is-conversation-open) .m-chat-shell{padding-top:108px!important}
  .m-chat-page .m-chat-workspace.is-conversation-open{height:calc(100dvh - 132px)!important;min-height:360px!important}
 }

 /* Active conversations give history priority over the page introduction. */
 .m-chat-page:has(.is-conversation-open) .m-page-hero{display:none!important}
 .m-chat-page:has(.is-conversation-open) .m-chat-shell{padding-top:112px!important}
 .m-chat-page .m-chat-workspace.is-conversation-open{height:auto!important;min-height:440px!important}
 .m-chat-page .is-conversation-open #chat-messages{flex:0 0 auto!important;height:440px!important;min-height:0!important}
 .m-chat-page #chat-messages>.m-message{flex-shrink:0!important}
 .m-chat-page .is-conversation-open #chat-compose{flex:0 0 auto!important;max-height:none!important}
 .m-chat-page .is-conversation-open .m-chat-main:has(#chat-contact-email-field:not([hidden])) #chat-messages{flex:0 0 auto!important;min-height:0!important}
 .m-chat-page .is-conversation-open .m-chat-main:has(#chat-contact-email-field:not([hidden])) #chat-compose{flex:1 1 auto!important;max-height:none!important}
 @media(max-width:760px){.m-chat-page:has(.is-conversation-open) .m-chat-shell{padding-top:104px!important}.m-chat-page .m-chat-workspace.is-conversation-open{height:auto!important;min-height:420px!important}.m-chat-page .is-conversation-open #chat-messages{height:360px!important;min-height:0!important}}

 /* 9. Neutral account surfaces inherit the existing brand palette. */
 #account-dashboard .m-account-summary{background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:20px!important;padding:32px!important;box-shadow:0 8px 28px rgb(22 59 64/.06)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:28px!important}
 #account-dashboard .m-account-summary>div:first-child{min-width:0!important}
 #account-status{display:inline-flex!important;align-items:center!important;max-width:100%!important;padding:8px 12px!important;background:var(--ui-surface-soft)!important;color:var(--ui-muted)!important;border:1px solid var(--ui-line)!important;border-radius:8px!important;box-shadow:none!important;margin-top:16px!important}
 #account-reference{color:var(--ui-muted)!important}
 .m-account-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;min-width:184px!important}
 .m-account-help{padding:18px 22px!important;margin:20px 0!important;border:1px solid var(--ui-line)!important;border-radius:14px!important;background:var(--ui-surface-soft)!important}
 .profile-update-notice{padding:22px!important;margin:0 0 18px!important;background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius-card)!important;box-shadow:0 4px 16px rgb(22 59 64/.03)!important}
 .profile-completion-score{font-size:var(--ui-control-font)!important;font-weight:var(--ui-heading-weight)!important;color:var(--ui-ink)!important}
 .profile-update-notice progress{appearance:none!important;display:block!important;width:min(360px,100%)!important;height:7px!important;border:0!important;border-radius:999px!important;overflow:hidden!important;background:var(--ui-track)!important;accent-color:var(--ui-brand)!important;margin:12px 0 16px!important}
 .profile-update-notice progress::-webkit-progress-bar{background:var(--ui-track)!important;border-radius:999px!important}
 .profile-update-notice progress::-webkit-progress-value{background:var(--ui-brand)!important;border-radius:999px!important}
 .profile-update-notice progress::-moz-progress-bar{background:var(--ui-brand)!important;border-radius:999px!important}
 .profile-completion-details{margin-top:14px!important;padding-top:14px!important;border-top:1px solid var(--ui-line)!important}
 .profile-completion-details summary{color:var(--ui-brand)!important;font-size:var(--ui-help)!important}
 #profile-update-controls{gap:var(--ui-action-gap)!important;flex-wrap:wrap!important;margin:0 0 24px!important}
 #profile-update-controls [aria-pressed=true]{outline:3px solid var(--ui-line)!important;outline-offset:3px!important}
 @media(max-width:640px){
  #account-dashboard .m-account-summary{padding:22px!important;flex-direction:column!important;align-items:stretch!important;gap:20px!important;border-radius:var(--ui-radius-card)!important}
  .m-account-actions{min-width:0!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .m-account-actions .m-link{grid-column:1/-1!important}
  :where(.m-account-help,.profile-update-notice){padding:18px!important}
  #account-profile-name{overflow-wrap:anywhere!important}
  #profile-update-controls>*{flex:1!important}
 }
 .m-auth-page h1{font-size:var(--ui-page-title)!important}
 .m-auth-page :where(.login-policies p,.login-choice,.login-choice span){font-size:var(--ui-help)!important}

 /* 10. Established footer and animation layout, kept outside type exceptions. */
 .m-footer{background:var(--ui-surface)!important;padding:48px 0 24px!important}
 .m-footer-grid{display:grid!important;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr))!important;gap:32px!important}
 .m-footer-grid>div{min-width:0!important;max-width:none!important}
 .m-footer-grid h3{font-size:var(--ui-footer-font)!important;line-height:var(--ui-caption-line)!important;font-weight:var(--ui-heading-weight)!important;letter-spacing:0!important;margin:0 0 12px!important}
 .m-footer-grid a:not(.m-brand){display:block!important;font-size:var(--ui-footer-font)!important;line-height:var(--ui-caption-line)!important;font-weight:var(--ui-body-weight)!important;letter-spacing:0!important;margin:0 0 8px!important;padding:0!important;overflow-wrap:anywhere!important}
 .m-footer-grid p{font-size:var(--ui-footer-font)!important;line-height:var(--ui-caption-line)!important;font-weight:var(--ui-body-weight)!important;margin:18px 0 20px!important;max-width:360px!important}
 .m-footer .m-brand{display:flex!important;font-size:var(--ui-chat-subtitle)!important;line-height:24px!important;font-weight:700!important;gap:8px!important;align-items:center!important;margin:0!important}
 .m-footer .m-brand>span{font-size:inherit!important}
 .m-footer-bottom{display:flex!important;justify-content:space-between!important;gap:24px!important;border-top:1px solid var(--ui-line)!important;margin-top:40px!important;padding-top:20px!important;font-size:12px!important;line-height:18px!important}
 .m-footer-bottom :where(span,a){font-size:12px!important;line-height:18px!important}
 .home-animation{width:min(100%,1060px)!important;height:var(--ui-first-example-height)!important;margin:var(--ui-first-example-gap) auto 0!important}
 .home-animation iframe{display:block!important;width:100%!important;height:100%!important;border:0!important;border-radius:20px!important;background:transparent!important}
 .ai-analysis-demo{width:100%!important;height:var(--ui-ai-height)!important;margin:0 0 30px!important}
 .ai-analysis-demo iframe{display:block!important;width:100%!important;height:100%!important;border:0!important;background:transparent!important}
 @media(max-width:760px){
  .m-footer{padding:32px 0 24px!important}
  .m-footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:32px 24px!important}
  .m-footer-grid>div:first-child{grid-column:1/-1!important}
  .m-footer-grid p{max-width:none!important}
  .m-footer-bottom{flex-direction:column!important;gap:10px!important;margin-top:32px!important}
 }
 @media(max-width:600px){.ai-analysis-demo{margin-bottom:24px!important}}
 @media(prefers-reduced-motion:reduce){:where(.m-btn,.btn,.buybtn,.m-cart-add,.d-profile-btn,.m-custom-tool-add,.m-menu-request,.m-nav-cta,.d-nav-action,.m-auth-register){transition:none!important;transform:none!important;translate:none!important}}

 /* Social links, a centered brand and copyright mirror the footer reference. */
 .m-footer .m-footer-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:24px!important;padding-top:32px!important}
 .m-footer-socials{display:flex!important;align-items:center!important;justify-content:center!important;justify-self:center!important;width:fit-content!important;max-width:100%!important;gap:8px!important}
 .m-footer .m-footer-socials a{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;margin:0!important;padding:10px!important;color:var(--ui-muted)!important;border:0!important;border-radius:6px!important}
 .m-footer-socials svg{width:24px!important;height:24px!important;flex:none!important}
 .m-footer .m-footer-socials a:hover{color:var(--ui-brand)!important}
 .m-footer .m-footer-socials a:focus-visible{outline:var(--ui-focus)!important;outline-offset:2px!important}
 .m-footer-bar-brand{justify-self:center!important}
 .m-footer-bar-brand .m-brand{white-space:nowrap!important}
 .m-footer-copyright{justify-self:end!important;text-align:right!important;color:var(--ui-muted)!important}
 .m-footer .m-footer-disclaimer{font-size:12px!important;line-height:18px!important;text-align:center!important;color:var(--ui-muted)!important;max-width:none!important;margin:20px 0 0!important}
 .m-footer-grid>div:first-child>p{margin-top:0!important}
 @media(max-width:760px){
  .m-footer .m-footer-bar{grid-template-columns:1fr!important;gap:16px!important;padding-top:24px!important}
  .m-footer-socials,.m-footer-bar-brand,.m-footer-copyright{justify-self:center!important;text-align:center!important}
  .m-footer .m-footer-disclaimer{margin-top:16px!important}
 }

 /* Recommendation calls to action keep the dark appearance outside the footer. */
 :is(.m-recommendation-cta,a.m-btn[href^="/get-matched"],a.btn[href^="/get-matched"],a.m-nav-cta[href^="/get-matched"],a.m-menu-request[href^="/get-matched"],a.d-nav-action[href^="/get-matched"]){
  --action-background:#033d42!important;--action-border:#033d42!important;--action-text:#fff!important;
  background:#033d42!important;border-color:#033d42!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 }
 :is(.m-recommendation-cta,a.m-btn[href^="/get-matched"],a.btn[href^="/get-matched"],a.m-nav-cta[href^="/get-matched"]) :is(span,svg){color:inherit!important;-webkit-text-fill-color:inherit!important}
 .m-footer .m-recommendation-cta{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--ui-ink)!important;-webkit-text-fill-color:var(--ui-ink)!important;min-height:0!important;padding:0!important;border-radius:0!important}

 /* Never let component display rules reveal hidden forms or controls. */
}
@layer automatizacijos-hidden{[hidden],[data-completion-hidden]{display:none!important}}


