/* Atlas Portal 9.2 — intentional visual system. Enqueued after v9.
   Applies consistently to AJAX-swapped Home/Search, search suggestions and overlays. */
:root{
  --ap-blue:#0878ef;--ap-cyan:#04bdeb;--ap-ink:#162338;--ap-muted:#67788c;
  --ap-line:#e6ecf4;--ap-soft:#f6f9fe;--ap-focus:rgba(8,120,239,.16);
  --ap-card-shadow:0 10px 32px rgba(34,71,118,.055),0 1px 3px rgba(31,63,110,.04);
}
/* The search field occupies the actual full content width, instead of a 925px cap. */
.rp-home .rp-hero,.rp-home .rp-query-form{max-width:none!important;width:100%!important;min-width:0!important}
.rp-home .rp-hero{align-items:stretch!important}
.rp-home .rp-query-form{height:66px!important;border-radius:16px!important;border:1.5px solid #86b9ff!important;
  background:#fff!important;box-shadow:0 9px 30px rgba(21,100,201,.075)!important}
.rp-home .rp-query-form:focus-within{border-color:#0878ef!important;box-shadow:0 0 0 4px var(--ap-focus),0 10px 30px rgba(21,100,201,.075)!important}
.rp-home .rp-search-submit{height:52px!important;min-width:132px!important;border-radius:11px!important}
.rp-query-form .rp-search-lens{color:#7c91a8!important}
.rp-query-form .rp-inline-action{color:#647994!important}
.rp-query-form .rp-inline-action:hover{color:var(--ap-blue)!important;background:#edf6ff!important}
.rp-query-form [data-atlas-image-search-shortcut]{display:none!important}
.rp-service-shortcuts [data-atlas-image-search-shortcut]{display:none!important}
.rp-results-header .rp-query-form--results{max-width:none!important;min-width:0!important;flex:1 1 auto!important}
.rp-results-header .rp-search-header-row{max-width:1320px!important;gap:16px!important}
.rp-results-header .rp-home-return{flex:0 0 auto!important}
.rp-results-header .rp-toptools{flex:0 0 auto!important}
.rp-topbutton:hover{border-color:#bdd8f8!important;background:#f2f8ff!important;color:#1268be!important}

/* Recent queries / suggestions. Dropdown intentionally takes full search width. */
.rp-query-form.has-atlas-suggest-v64{z-index:1005!important}
.rp-query-form .atlas-search-suggest-v64{
  left:-2px!important;right:-2px!important;width:calc(100% + 4px)!important;top:calc(100% + 10px)!important;
  border:1px solid #dfebf9!important;border-radius:18px!important;background:#fff!important;
  box-shadow:0 26px 65px rgba(26,67,118,.18),0 3px 12px rgba(22,53,99,.06)!important;
  padding:13px!important;max-height:min(460px,65vh)!important;overflow-y:auto!important
}
.rp-query-form .atlas-suggest-head-v64{padding:4px 10px 10px!important;min-height:36px!important}
.rp-query-form .atlas-suggest-head-v64>span{font-size:13px!important;letter-spacing:0!important;text-transform:none!important;font-weight:750!important;color:#435774!important}
.rp-query-form .atlas-suggest-head-v64 button{font-size:12px!important;color:var(--ap-blue)!important;padding:6px 10px!important}
.rp-query-form .atlas-suggest-list-v64{gap:3px!important}
.rp-query-form .atlas-suggest-item-v64{min-height:54px!important;grid-template-columns:38px minmax(0,1fr) 20px!important;gap:12px!important;padding:7px 10px!important;border-radius:11px!important;text-align:left!important}
.rp-query-form .atlas-suggest-item-v64:hover,.rp-query-form .atlas-suggest-item-v64.is-active{background:#f1f7ff!important}
.rp-query-form .atlas-suggest-icon-v64{height:38px!important;width:38px!important;border:0!important;border-radius:12px!important;background:#edf5ff!important;color:#2875ca!important;box-shadow:none!important}
.rp-query-form .atlas-suggest-icon-v64 svg{height:17px!important;width:17px!important}
.rp-query-form .atlas-suggest-copy-v64 b{font-size:14px!important;line-height:1.35!important;font-weight:610!important;color:#20344d!important}
.rp-query-form .atlas-suggest-copy-v64 small{font-size:11px!important;line-height:1.3!important;color:#8492a6!important}
.rp-query-form .atlas-suggest-enter-v64{font-size:17px!important;color:#8da1bb!important}
.rp-query-form .atlas-suggest-foot-v64{margin-top:8px!important;padding:10px 10px 2px!important;font-size:11px!important;gap:18px!important;color:#8593a5!important}

/* Widgets: stronger hierarchy, neutral cards, small purposeful accent colors. */
.rp-home .rp-dashboard{margin-top:28px!important;padding-top:25px!important;border-top:1px solid #edf0f5!important}
.rp-home .rp-section-heading h2{font-size:26px!important;letter-spacing:-.025em!important}
.rp-home .rp-dashboard-grid{gap:18px!important}
.rp-home .rp-card,.rp-serp .rp-side-card{
  border:1px solid #e3eaf4!important;border-radius:20px!important;background:#fff!important;
  box-shadow:var(--ap-card-shadow)!important;overflow:hidden!important;transition:border-color .16s,box-shadow .16s!important
}
.rp-home .rp-card:hover,.rp-serp .rp-side-card:hover{border-color:#cbdcef!important;box-shadow:0 12px 32px rgba(22,61,108,.09)!important}
.rp-home .rp-card-head{padding:20px 21px 0!important;min-height:50px!important}
.rp-home .rp-card-label{gap:12px!important}
.rp-home .rp-card-label i{display:grid!important;place-items:center!important;flex:0 0 39px!important;width:39px!important;height:39px!important;border-radius:13px!important;background:#eaf4ff!important;color:#1071d8!important;font-size:17px!important}
.rp-home .rp-card-label h3{font-size:16px!important;font-weight:740!important;color:#1b2b41!important}
.rp-home .rp-card-label h3 .rp-inline-city{font-size:13px!important;color:#7a8da5!important;font-weight:530!important}
.rp-home .rp-card-menu,.rp-serp .rp-side-title :is(button,a){background:#f6f9fd!important;border:1px solid #e8eef6!important;color:#627c9a!important;border-radius:10px!important;width:32px!important;height:32px!important}
.rp-home .rp-card-menu:hover,.rp-serp .rp-side-title :is(button,a):hover{background:#e8f3ff!important;border-color:#c8e0ff!important;color:#0878ef!important}
.rp-home .rp-card-bottom{min-height:54px!important;padding:0 21px!important;border-top:1px solid #edf2f7!important;background:#fcfdff!important}
.rp-home .rp-card-bottom :is(a,button){font-size:13px!important;font-weight:650!important;color:#096fd3!important}
.rp-home .rp-card-bottom :is(a,button):hover{color:#064d9b!important}
.rp-home .rp-weather{background:linear-gradient(145deg,#f4faff 0%,#ffffff 70%)!important}
.rp-home .rp-weather .rp-card-label i{background:#e2f3ff!important;color:#158cda!important}
.rp-home .rp-weather-body{padding:12px 21px 0!important;min-height:122px!important}
.rp-home .rp-temp{font-size:62px!important;font-weight:740!important;color:#18283c!important;letter-spacing:-.06em!important}
.rp-home .rp-weather-description{font-size:15px!important;color:#465d77!important}
.rp-home .rp-weather-metrics{padding:10px 21px 20px!important;gap:8px!important}
.rp-home .rp-weather-metrics>div{background:rgba(255,255,255,.95)!important;border:1px solid #e4effa!important;border-radius:12px!important;padding:11px 12px!important}
.rp-home .rp-weather-metrics span{color:#7388a0!important;font-size:11px!important}
.rp-home .rp-weather-metrics b{color:#233b55!important;font-size:13px!important}
.rp-home .rp-currency .rp-card-label i{background:#eaf9f1!important;color:#0c9569!important}
.rp-home .rp-currency-list li{padding:14px 0!important;border-bottom:1px solid #edf1f5!important}
.rp-home .rp-currency-list b{font-size:14px!important}
.rp-home .rp-currency-list strong{font-size:16px!important;color:#203b54!important}
.rp-home .rp-date .rp-card-label i{background:#eff1ff!important;color:#5869c7!important}
.rp-home .rp-date-main strong{font-size:35px!important}
.rp-home .rp-moon-row{background:#f6f8ff!important;border:1px solid #eef0ff!important;border-radius:14px!important;padding:10px 13px!important;gap:12px!important}
.rp-home .rp-ai{background:linear-gradient(145deg,#f4faff,#fff 75%)!important;border-color:#deebfa!important}
.rp-home .rp-ai .rp-card-label i{background:#eaf0ff!important;color:#306de4!important}
.rp-home .rp-ai-copy h4{font-weight:770!important;font-size:25px!important}
.rp-home .rp-ai-copy p{font-size:14px!important;line-height:1.65!important}
.rp-home .rp-ai-examples>span:nth-child(2){font-size:13px!important;border:1px solid #d9e9ff!important;border-radius:10px!important}
.rp-home .rp-tv .rp-card-label i{background:#fff3ec!important;color:#d97024!important}
.rp-home .rp-tv-loading{background:#f7faff!important;border:1px solid #eaf1fb!important;border-radius:14px!important}
.rp-home .rp-horoscope .rp-card-label i{background:#f3edff!important;color:#8565ba!important}
.rp-home .rp-horoscope-image{background:#f5f2ff!important;border-radius:16px!important}
.rp-serp .rp-side-card{border-radius:18px!important}
.rp-serp .rp-side-title{padding:17px 18px 0!important}
.rp-serp .rp-side-title h2{font-size:15px!important;font-weight:740!important;color:#213249!important}
.rp-serp .rp-side-weather-main{padding:12px 18px 2px!important}
.rp-serp .rp-side-stats{padding:10px 18px 15px!important;gap:7px!important}
.rp-serp .rp-side-stats span{background:#f4f8fc!important;border:1px solid #eaf0f7!important;border-radius:10px!important;font-size:12px!important}
.rp-serp .rp-side-link{min-height:46px!important;background:#fcfdff!important;font-size:13px!important;padding:10px 18px!important}
.rp-serp .rp-side-link:hover{background:#f1f7ff!important}
.rp-serp .rp-side-card .rp-currency-list{padding:0!important}
.rp-serp .rp-side-card .rp-currency-list li{font-size:13px!important}
.rp-serp .rp-side-card .rp-moon-row{background:#f7f9ff!important;padding:10px!important;border-radius:12px!important}

/* SERP: clean organic results without an unnecessary circular site icon. */
.rp-web-results .a18-result-favicon,.rp-web-results .atlas-result-favicon{display:none!important}
.rp-web-results .gsc-webResult.gsc-result{padding-left:0!important;margin-left:0!important}
.rp-web-results .gs-title a{font-weight:625!important}

/* Selected AI feedback state — stays blue after a vote, or soft red for negative. */
.rp-ai-feedback button{width:38px!important;height:38px!important;min-height:38px!important;border:1px solid transparent!important;border-radius:11px!important;transition:background .15s,border-color .15s,color .15s!important;font-size:15px!important}
.rp-ai-feedback button:hover{background:#eff6ff!important;color:#0a72db!important}
.rp-ai-feedback button:is([aria-pressed="true"],.is-selected){background:#e5f2ff!important;border-color:#aed3ff!important;color:#006edf!important;box-shadow:inset 0 0 0 1px rgba(10,112,214,.06)!important}
.rp-ai-feedback button[data-ai-feedback="down"]:is([aria-pressed="true"],.is-selected){background:#fff0ee!important;border-color:#ffc9c1!important;color:#d54d3a!important}
.rp-ai-feedback button[aria-pressed="true"] i{font-weight:900!important}

/* App dialogs: single usable sizing scale for every legacy modal type */
.atlas-modal,.atlas-library-panel{z-index:5000!important}
.atlas-modal-backdrop,.atlas-library-backdrop{background:rgba(19,36,60,.48)!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important}
.atlas-modal .atlas-modal-dialog,.atlas-modal .atlas-settings-dialog,.atlas-modal .atlas-preview-dialog{
  width:min(580px,calc(100vw - 32px))!important;max-height:min(86vh,850px)!important;padding:28px!important;
  border:1px solid #e6edf7!important;border-radius:24px!important;background:#fff!important;box-shadow:0 32px 100px rgba(12,37,77,.26)!important;
  color:#1f2e44!important;overflow-x:hidden!important
}
.atlas-modal :is(.atlas-modal-dialog,.atlas-settings-dialog,.atlas-preview-dialog) h2{font-size:24px!important;line-height:1.2!important;letter-spacing:-.035em!important;color:#142439!important;font-weight:750!important;margin:7px 46px 8px 0!important}
.atlas-modal-kicker{font-size:11px!important;letter-spacing:.08em!important;color:#0d73de!important;font-weight:760!important}
.atlas-modal-copy{font-size:14px!important;line-height:1.65!important;color:#6b7e94!important;margin:0 24px 15px 0!important}
.atlas-modal-close,.atlas-library-close{border:1px solid #e8eef6!important;background:#f6f9fd!important;border-radius:11px!important;width:38px!important;height:38px!important;display:grid!important;place-items:center!important;color:#5c718a!important;font-size:23px!important;line-height:1!important}
.atlas-modal-close:hover,.atlas-library-close:hover{background:#e8f3ff!important;color:#0a6fd1!important}
.atlas-modal input:not([type="checkbox"]):not([type="radio"]),.atlas-modal select,.atlas-modal textarea{background:#fff!important;border:1px solid #dce6f2!important;border-radius:12px!important;color:#1e324b!important;min-height:42px!important;font-size:14px!important;box-shadow:none!important}
.atlas-modal :is(input,select,textarea):focus-visible{outline:3px solid rgba(8,120,239,.15)!important;outline-offset:2px!important;border-color:#70b2ff!important}
.atlas-modal .atlas-modal-primary{background:#0878ef!important;border:1px solid #0878ef!important;color:white!important;border-radius:11px!important;min-height:43px!important;padding:0 17px!important;font-size:14px!important;font-weight:680!important}
.atlas-modal .atlas-modal-primary:hover{background:#0469da!important}
.atlas-modal .atlas-modal-secondary{background:#f5f8fc!important;border:1px solid #e4eaf3!important;color:#405976!important;border-radius:11px!important;min-height:43px!important;padding:0 15px!important;font-size:14px!important}
.atlas-modal .atlas-modal-footer{border-top:1px solid #eef2f7!important;gap:10px!important;padding-top:18px!important}
.atlas-location-actions{gap:12px!important;margin-top:20px!important}
.atlas-location-action{min-height:108px!important;border-radius:15px!important;border:1px solid #e4ecf5!important;background:#f8fbff!important;padding:14px!important}
.atlas-location-action:hover{background:#eff7ff!important;border-color:#b2d9ff!important}
.atlas-location-action>span{width:38px!important;height:38px!important;border-radius:12px!important;background:#e5f2ff!important;color:#1677d4!important}
.atlas-location-action b{font-size:14px!important;color:#1f334a!important}
.atlas-location-action small{font-size:12px!important;line-height:1.4!important;color:#7589a2!important}
.atlas-widget-manager-row,.atlas-currency-option,.atlas-setting-row,.atlas-setting-select{border-color:#e8edf5!important;background:#fff!important;border-radius:12px!important}
.atlas-widget-manager-row b,.atlas-setting-row b,.atlas-setting-select b,.atlas-currency-option b{font-size:14px!important;color:#263b52!important}
.atlas-widget-manager-row small,.atlas-setting-row small,.atlas-setting-select small,.atlas-currency-option small{font-size:12px!important;color:#7e8da0!important}
.atlas-currency-history,.atlas-currency-converter{background:#f8fbff!important;border:1px solid #e7effa!important;border-radius:15px!important;padding:14px!important}
.atlas-currency-history-head b,.atlas-currency-converter-title b{font-size:14px!important}
.atlas-currency-history-head span,.atlas-currency-converter-title span{font-size:12px!important}

/* 'Моё' drawer is a real modal with two working modes, not an empty menu. */
.atlas-library-drawer{width:min(480px,100vw)!important;background:#fff!important;border-left:1px solid #e1e9f3!important;box-shadow:-25px 0 85px rgba(12,38,70,.2)!important}
.atlas-library-head{padding:29px 26px 18px!important;border-bottom:1px solid #edf1f5!important}
.atlas-library-head h2{font-size:25px!important;color:#1d2d43!important;font-weight:760!important;letter-spacing:-.035em!important}
.atlas-library-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;padding:15px 26px!important;border-bottom:1px solid #edf1f5!important}
.atlas-library-tabs button{min-height:42px!important;border-radius:11px!important;font-size:14px!important;font-weight:650!important;color:#6f829a!important}
.atlas-library-tabs button.is-active{background:#eaf4ff!important;border-color:#c9e3ff!important;color:#096fd4!important}
.atlas-library-body{padding:18px 26px 32px!important}
.atlas-history-group h3{font-size:12px!important;letter-spacing:0!important;text-transform:none!important;color:#7b8a9e!important;margin:15px 0 9px!important}
.atlas-history-row{min-height:54px!important;grid-template-columns:minmax(0,1fr) auto 34px!important;gap:12px!important;border-bottom:1px solid #edf1f7!important}
.atlas-history-row>a b{font-size:14px!important;font-weight:600!important;color:#2a3a50!important}
.atlas-history-row>a span{font-size:17px!important;color:#9bb0c8!important}
.atlas-history-row small{font-size:12px!important;color:#90a0b3!important}
.atlas-history-row button,.atlas-library-item>button{width:32px!important;height:32px!important;font-size:16px!important;color:#8b9caf!important}
.atlas-library-item{min-height:74px!important;grid-template-columns:38px minmax(0,1fr) auto 32px!important;gap:10px!important;padding:12px!important;border-radius:14px!important;border-color:#e6ecf3!important;background:#fafdff!important}
.atlas-library-item-icon{height:38px!important;width:38px!important;border-radius:12px!important;background:#eaf4ff!important;color:#1376d4!important}
.atlas-library-item-copy b{font-size:14px!important;color:#263c54!important}
.atlas-library-item-copy small{font-size:12px!important;color:#8393a7!important}
.atlas-library-item>a{font-size:13px!important;color:#0d70d3!important}
.atlas-library-clear{height:42px!important;border-radius:11px!important;font-size:13px!important;color:#a34d4b!important;background:#fff8f7!important;border-color:#ffe6e1!important}
.atlas-library-empty>b,.atlas-library-empty b{font-size:15px!important}
.atlas-library-empty p{font-size:13px!important;max-width:300px!important}

/* Native feedback/focus and responsive safeguards. */
.rp-query-form:focus-within{z-index:1001!important}
@media(max-width:900px){
 .rp-results-header .rp-query-form--results{flex:1 0 100%!important;width:100%!important}
 .rp-home .rp-dashboard-grid{gap:12px!important}
 .rp-home .rp-card{border-radius:17px!important}
}
@media(max-width:600px){
 .rp-home .rp-query-form{height:57px!important}
 .rp-home .rp-search-submit{min-width:55px!important;height:45px!important;padding:0 13px!important}
 .rp-query-form .atlas-search-suggest-v64{left:-1px!important;right:-1px!important;width:calc(100% + 2px)!important;top:calc(100% + 6px)!important;padding:7px!important;border-radius:14px!important}
 .rp-query-form .atlas-suggest-item-v64{min-height:50px!important;padding:6px 8px!important;gap:8px!important}
 .rp-query-form .atlas-suggest-foot-v64{display:none!important}
 .rp-home .rp-weather-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .rp-home .rp-weather-metrics>div{min-width:0!important;display:flex!important;flex-direction:column!important;gap:5px!important}
 .rp-home .rp-weather-metrics span{white-space:normal!important}
 .rp-home .rp-weather-metrics b{white-space:normal!important;overflow-wrap:anywhere!important}
 .atlas-modal .atlas-modal-dialog,.atlas-modal .atlas-settings-dialog,.atlas-modal .atlas-preview-dialog{padding:20px!important;width:calc(100vw - 22px)!important;border-radius:19px!important;max-height:calc(100dvh - 30px)!important}
 .atlas-library-head{padding:23px 18px 15px!important}
 .atlas-library-tabs{padding:12px 18px!important}
 .atlas-library-body{padding:16px 18px!important}
 .atlas-location-actions{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){.rp-home .rp-card,.rp-serp .rp-side-card,.rp-query-form{transition:none!important}}

/* Atlas Portal 9.3: pictorial home-brand in compact search header. */
.rp-results-header .rp-home-return{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:46px!important;height:46px!important;min-width:46px!important;
  flex:0 0 46px!important;border:0!important;background:transparent!important;
  padding:3px!important;border-radius:12px!important;box-shadow:none!important;
}
.rp-results-header .rp-home-return:hover{background:#eff6ff!important}
.rp-results-header .rp-home-return:focus-visible{outline:3px solid #9bcaff!important;outline-offset:2px!important}
.rp-results-header .rp-home-return img{
  width:40px!important;height:40px!important;object-fit:contain!important;display:block!important;
  border:0!important;box-shadow:none!important;filter:none!important;
}
.rp-results-header .rp-search-tabs-inner{padding-left:88px!important}
@media(max-width:900px){
 .rp-results-header .rp-home-return{width:40px!important;height:40px!important;min-width:40px!important;flex-basis:40px!important}
 .rp-results-header .rp-home-return img{width:38px!important;height:38px!important}
 .rp-results-header .rp-search-tabs-inner{padding-left:18px!important}
}
@media(max-width:610px){
 .rp-results-header .rp-home-return{width:38px!important;height:38px!important;min-width:38px!important;flex-basis:38px!important}
 .rp-results-header .rp-home-return img{width:36px!important;height:36px!important}
 .rp-results-header .rp-search-tabs-inner{padding-left:16px!important}
}
