/* Bai Tender portal homepage: single-screen first view, then filters and real results. */
.site-header,.site-footer{display:none!important}
body.is-command-home{background:#fbfefd}
#main{min-height:100dvh}
.compact-landing{padding:0 20px 30px;min-height:100dvh;background:radial-gradient(ellipse at 85% 20%,#f2fcf6 0,transparent 43%),#fff}
.compact-landing-inner{width:min(100%,1080px);margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:18px 0 24px}
.compact-eyebrow{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}
.compact-logo{display:inline-flex;align-items:center;gap:8px;min-height:32px;font-size:12px;font-weight:830;color:#086f3b;background:#e9f8ef;border-radius:24px;padding:5px 14px 5px 7px}
.compact-logo b{background:linear-gradient(140deg,#1db66a,#087640);height:22px;width:22px;border-radius:7px;display:grid;place-items:center;color:#fff;font-size:14px}
.compact-preview{font-size:12px;color:#87978c;white-space:nowrap}
.compact-hero h1{font-weight:870;font-size:clamp(34px,4vw,51px);line-height:1.12;letter-spacing:-1.9px;margin:0 0 8px}
.compact-hero h1 em{display:block;font-style:normal;color:#07894a;margin-top:3px}
.compact-hero p{color:#70847a;line-height:1.45;font-size:13px;margin:0 0 16px;max-width:980px}
.compact-mode{display:inline-flex;align-self:start;padding:4px;gap:4px;background:#f3f8f4;border:1px solid #e2eee5;border-radius:12px;margin-bottom:11px}
.compact-mode button{background:transparent;color:#486c55;font-size:12px;font-weight:740;padding:8px 14px;border:0;border-radius:9px}
.compact-mode button.active{background:#fff;color:#087a3f;box-shadow:0 2px 7px #093d2012}
.ai-lock{font-size:10px;color:#89a28d;margin-left:7px;font-weight:580}
.compact-search-form{display:flex;flex-direction:column}
.compact-identity{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px}
.compact-search-form label{font-size:12px;font-weight:760;color:#27553a}
.compact-identity input{display:block;margin-top:6px;height:43px;background:#fff;font-weight:400}
.compact-query-label{margin-bottom:6px}
.compact-query-box{border:1px solid #c9e3d2;border-radius:15px;background:#fff;min-height:91px;position:relative;box-shadow:0 10px 28px #1d73400d;padding:13px 15px 24px}
.compact-query-box:focus-within{outline:2px solid #8ad4a7;outline-offset:1px}
.compact-query-box textarea{resize:none;display:block;width:100%;min-height:51px;background:transparent;border:0;outline:0;color:#153c25;line-height:1.4;font-size:15px}
.compact-query-box textarea::placeholder{color:#93a69b}
.compact-query-box>span{position:absolute;bottom:7px;right:14px;font-size:11px;color:#9aaa9f;font-variant-numeric:tabular-nums}
.compact-query-hint{color:#82978a;font-size:11px;margin:8px 0 10px;line-height:1.35}
.home-search-history{display:flex;align-items:center;flex-wrap:wrap;column-gap:11px;row-gap:9px;margin:11px 0 14px;min-height:30px}
.home-history-header{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px;flex:none;color:#75877d;font-size:11px}
.home-history-header>span{font-weight:650}
.home-history-list{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.home-history-chip{border:1px solid #d6e9db;border-radius:99px;padding:6px 12px;background:#fff;font-size:11px;font-weight:650;color:#255d38;max-width:235px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-history-chip:hover{background:#eefaf1;border-color:#99cfaa}
.home-history-clear{border:0;background:transparent;color:#0b8244;padding:4px 0;font-size:11px;text-decoration:underline;text-underline-offset:3px}
.home-history-empty{font-size:11px;color:#9aaa9f}
.compact-cta{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.compact-cta .button{padding:11px 14px;min-height:45px;font-size:14px;box-shadow:none}
.compact-security{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e6eee8;padding:11px 0 10px;margin-bottom:10px;color:#74887a;font-size:11px}
.compact-security span:first-child{color:#17814e}
.compact-security strong{color:#0b8448}
.home-results{margin-top:17px;scroll-margin-top:15px}
.home-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;flex-wrap:nowrap}
.home-results-title{font-size:12px;line-height:1.35;font-weight:750;color:#087641;letter-spacing:0}
.home-filter-toggle{border:1px solid #b8ddc3;background:#eefaee;color:#087641;border-radius:10px;padding:10px 14px;white-space:nowrap;font-weight:750;font-size:12px;display:inline-flex;gap:13px;align-items:center}
.home-filter-form{border:1px solid #e0eae2;border-radius:14px;padding:14px;background:#f9fcfa;box-shadow:0 4px 14px #1a6a3410;margin:0 0 14px}
.home-filter-fields>label{font-size:11px;color:#385a43;font-weight:740;min-width:0}
.home-filter-fields .input{display:block;width:100%;margin-top:6px;padding:7px 10px;min-height:39px;font-size:12px;color:#263f2d}
.home-filter-options{font-size:11px;color:#4e7a5a;display:flex;gap:14px}
.home-filter-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:12px}
.home-filter-actions .button{min-height:35px;font-size:12px;padding:6px 12px}
.home-results .tender-card{padding:14px 18px;border-radius:12px;box-shadow:none}
.home-results .tender-card h3{font-size:15px}
.home-results .result-list{gap:9px}
.home-ai-gate{display:flex;gap:13px;align-items:center;padding:14px 16px;margin:14px 0;background:#f4fbf6;border:1px solid #daeee0;border-radius:13px}
.home-ai-icon{flex:none;display:grid;place-items:center;background:#dcf6e7;border-radius:11px;color:#079549;width:40px;height:40px;font-size:25px}
.home-ai-gate>div:nth-child(2){flex:1}
.home-ai-gate strong{font-size:14px}
.home-ai-gate p{color:#728475;font-size:12px;margin:5px 0 0}
.home-ai-gate .button{font-size:12px;padding:10px 16px}

.mobile-screen-top{display:none}
@media(min-width:851px) and (max-height:760px){
 .compact-landing-inner{padding:11px 0}
 .compact-eyebrow{margin-bottom:9px}
 .compact-hero h1{font-size:clamp(30px,3.1vw,44px);margin-bottom:5px}
 .compact-hero p{margin-bottom:9px}
 .compact-mode{margin-bottom:7px}
 .compact-identity{margin-bottom:7px}
 .compact-identity input{height:36px;min-height:36px}
 .compact-query-box{min-height:75px;padding-top:9px}
 .compact-query-box textarea{min-height:42px}
 .compact-query-hint{margin:6px 0}
 .compact-security{padding:7px 0}
}
@media(max-width:850px){
 .compact-landing{padding:0 12px calc(20px + env(safe-area-inset-bottom))}
 .compact-landing-inner{width:100%;min-height:100dvh;justify-content:flex-start;padding:16px 0 24px}
 .compact-eyebrow{margin-bottom:17px}
 .compact-preview{font-size:11px}
 .compact-hero h1{font-size:clamp(28px,7vw,40px);letter-spacing:-1.3px}
 .compact-hero p{font-size:12px;margin-bottom:15px}
 .compact-mode{display:flex;width:100%;margin-bottom:15px}
 .compact-mode button{flex:1;padding:10px 7px;font-size:11px}
 .ai-lock{display:none}
 .compact-identity{grid-template-columns:1fr}
 .compact-identity input{height:44px}
 .compact-query-box{min-height:101px}
 .compact-query-box textarea{min-height:62px}
 .compact-cta{grid-template-columns:1fr}
 .compact-security{line-height:1.5}
 .home-filter-options{flex-wrap:wrap;gap:8px}
 .home-results-head{align-items:center}
 .home-filter-toggle{padding:8px 9px;gap:5px}
 .home-ai-gate{flex-wrap:wrap}
 .home-ai-gate .button{width:100%}
 .mobile-screen-top{display:flex;height:60px;align-items:center;justify-content:space-between;gap:12px;padding:8px 15px;background:#fff;border-bottom:1px solid #e8eee9;position:sticky;top:0;z-index:9}
 .mobile-screen-top div{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:center}
 .mobile-screen-top strong{font-size:14px;white-space:nowrap}
 .mobile-screen-top small{font-size:11px;color:#89988e}
 .mobile-screen-top a{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:100%;border:1px solid #e5ebe6;font-size:24px;color:#087d42}
 .mobile-screen-top .mobile-back{color:#253a2d}
 .workspace-grid{grid-template-columns:1fr}
 .cabinet-layout{grid-template-columns:1fr}
 .cabinet-menu{display:none}
 .summary-cards{grid-template-columns:1fr}
 .cabinet-columns{grid-template-columns:1fr}
}
@media(max-width:430px){
 .compact-landing{padding-left:13px;padding-right:13px}
 .compact-mode button{font-size:10px}
 .compact-hero p{font-size:11px}
 .home-results-head{flex-wrap:nowrap}
}

.portal-subnav{display:flex;gap:25px;align-items:center;justify-content:flex-start;max-width:1250px;padding:18px 24px;margin:0 auto 8px;font-size:13px;font-weight:760;color:#276c40}
.portal-subnav a{white-space:nowrap}
.portal-subnav a:first-child{font-size:17px;color:#173426;margin-right:auto}
.portal-subnav a:hover{color:#089449}
@media(max-width:850px){
 .portal-subnav{display:none}
 #main{padding-bottom:0}
 .page-head{padding:24px 0}
 .page-head h1{font-size:29px}
 .workspace{padding-top:14px}
 .workspace-grid{display:flex;flex-direction:column}
 .workspace-grid>div{order:0}
 .workspace-grid>.filters{order:1}
}

/* Live search, optional saved identity and two-row filter geometry. */
.compact-identity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.compact-identity label small,.compact-query-label small{font-size:10px;color:#8b9d90;font-weight:500}
.compact-identity label{min-width:0}
.home-profile-save{height:43px;min-height:43px;padding:8px 18px;font-size:12px;border-radius:10px;background:#effaf3;box-shadow:none}
.home-saved-profile{display:flex;align-items:center;gap:10px;padding:11px 14px;background:#f3fbf6;border:1px solid #cfe7d7;border-radius:11px;margin-bottom:11px;font-size:13px;color:#18442b}
.home-saved-symbol{display:grid;place-items:center;width:25px;height:25px;border-radius:100%;background:#def6e6;color:#06823d;font-weight:850}
.home-saved-title{flex:1;font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.home-saved-dot{color:#6c967a;margin:0 5px}
.home-account-hello{font-weight:780;color:#193c2a}
.home-account-separator{color:#9aafa0}
.home-account-plan{font-weight:800;color:#088344;text-decoration:none}
.home-account-plan span{font-weight:650}
.home-account-plan:hover{text-decoration:underline}
.home-saved-profile .home-account-edit{margin-left:auto;border:1px solid #c9e5d2;background:#fff;color:#167848;border-radius:9px;font-size:11px;font-weight:700;padding:6px 10px}
@media(max-width:480px){.home-saved-profile{gap:7px;padding:10px}.home-account-plan{font-size:12px}.home-account-hello{font-size:12px}.home-saved-profile .home-account-edit{width:100%;margin-left:0}}

.compact-query-box{display:flex;align-items:center;min-height:62px;padding:8px 13px 16px}
.compact-query-box input[type="search"]{width:100%;border:0;outline:0;min-height:37px;appearance:none;color:#153c25;font-size:16px;background:transparent;padding:0 12px 0 0}
.compact-query-box input[type="search"]::placeholder{color:#93a69b}
.compact-query-box>span{bottom:6px}
.home-auth-prompt{display:inline-flex;align-self:start;align-items:center;gap:6px;margin:-5px 0 12px;background:#f2faf4;color:#097b41;border:1px solid #dceee2;border-radius:9px;padding:6px 11px;font-weight:730;font-size:11px}
.home-auth-prompt:hover{background:#e7f7ee}
.home-auth-on{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;border:1px solid #b9dfc4;color:#0d713a;background:#f2fbf5;border-radius:10px;padding:8px 12px;margin:-3px 0 12px;font-size:11px}
.home-auth-on button{border:0;background:#e5f2e9;color:#0c7b45;padding:5px 9px;border-radius:7px;font-size:11px}
/* Two explicit rows, each with four equal tracks: no accidental implicit
   columns when additional controls are introduced. */
#home-filter-form{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#home-filter-form .home-filter-fields{display:flex;flex-direction:column;width:100%;max-width:100%;min-width:0;gap:14px}
#home-filter-form .home-filter-row{display:grid;width:100%;max-width:100%;min-width:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
#home-filter-form .home-filter-row>*{min-width:0;max-width:100%}
#home-filter-form .home-filter-fields label{font-size:11px;color:#385a43;font-weight:740;min-width:0}
#home-filter-form .home-filter-fields>.hf-exclude{display:block;width:100%;max-width:100%;min-width:0}
.home-filter-fields .hf-exclude small{display:block;margin-top:5px;color:#7b8b7e;font-size:10px;font-weight:500;line-height:1.4}
.home-filter-fields .input{min-width:0;max-width:100%}
.hf-slider{display:flex;flex-direction:column;gap:3px;color:#385a43;font-weight:740;font-size:11px}
.hf-slider span{color:#78967c;font-size:10px;font-weight:550}
.hf-slider input[type=range]{width:100%;height:8px;accent-color:#12864e;cursor:pointer}
.home-filter-fields .hf-state{display:flex;flex-direction:column;gap:4px;justify-content:center;font-size:10px;min-height:40px}
.home-filter-fields .hf-actions{display:flex;align-items:center;gap:6px;justify-content:stretch;min-height:39px;padding:0}
.home-filter-fields .hf-actions .button{font-size:11px;min-height:38px;flex:1;padding:6px 8px}
.compact-landing-inner{min-height:100dvh}
body:has(.home-results) .compact-landing-inner{justify-content:flex-start}
@media(min-width:851px) and (max-height:820px){
 .compact-landing-inner{padding:12px 0}
 .compact-hero p{margin-bottom:9px}
 .compact-hero h1{font-size:clamp(30px,3.35vw,45px);margin-bottom:6px}
 .compact-identity{margin-bottom:7px}
 .compact-identity .input{min-height:37px;height:37px}
 .home-profile-save{min-height:37px;height:37px}
 .compact-cta .button{min-height:40px}
 .compact-security{padding:8px 0 8px}
 .compact-query-box{min-height:53px}
}
@media(max-width:850px){
 .compact-identity{grid-template-columns:1fr 1fr}
 .compact-identity .home-profile-save{grid-column:1/-1;width:100%}
 #home-filter-form .home-filter-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .home-filter-fields .hf-state{flex-direction:row;justify-content:flex-start;flex-wrap:wrap}
 .home-filter-fields .hf-actions{justify-content:flex-start}
 .home-auth-on{align-items:flex-start}
 .home-auth-on>span:nth-child(2){width:100%}
}
@media(max-width:480px){
 .compact-identity{grid-template-columns:1fr}
 .compact-identity .home-profile-save{grid-column:1}
 .compact-query-box input[type="search"]{font-size:15px}
 #home-filter-form .home-filter-row{grid-template-columns:minmax(0,1fr)}
}


/* Clean, centered landing; guest greeting is intentionally plain text. */
.compact-hero h1{margin-bottom:18px}
.compact-mode{margin-bottom:15px}
.compact-security{justify-content:flex-start;padding:11px 0;margin-bottom:13px}
.home-saved-profile{padding:0;margin:0 0 13px;background:transparent;border:0;border-radius:0;box-shadow:none}
.home-saved-profile .home-saved-greeting{display:inline-block;margin:0;padding:2px 0;border:0;background:transparent;cursor:pointer;font-size:15px;line-height:1.45;font-weight:760;color:#193d28;text-align:left;letter-spacing:-.1px}
.home-saved-greeting:hover{color:#0e8144}
.home-saved-greeting:focus-visible{outline:2px solid #42b877;outline-offset:4px;border-radius:2px}

/* Bai Tender desktop tender cards. Only "Подробнее" is visible outside expanded details. */
#main .tw-result-card{
 background:#fff;border:1px solid #dce9e0;border-radius:19px;
 padding:20px 23px 14px;margin-bottom:15px;min-width:0;
 box-shadow:0 8px 24px rgba(12,66,35,.065);
 transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease
}
#main .tw-result-card:hover{border-color:#b7dac3;box-shadow:0 12px 29px rgba(12,66,35,.095)}
#main .tw-result-card svg{
 width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;
 stroke-linecap:round;stroke-linejoin:round;flex:none
}
#main .tw-result-chip-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:32px;margin-bottom:8px}
#main .tw-result-status,#main .tw-result-chip{
 display:inline-flex;align-items:center;gap:7px;max-width:100%;
 background:#f3f6f4;border:1px solid #eff2ef;border-radius:999px;
 color:#476152;padding:6px 11px;font-size:11px;font-weight:740;line-height:1.2
}
#main .tw-result-status.is-open{background:#e6f7eb;border-color:#e1f3e6;color:#087741}
#main .tw-result-status.is-upcoming{background:#fff6e7;border-color:#f9e7c4;color:#95631a}
#main .tw-result-status.is-muted{background:#f3f5f3;color:#61736a}
#main .tw-status-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
#main .tw-result-bookmark{
 border:0;background:transparent;display:grid;place-items:center;
 margin-left:auto;color:#64836f;width:34px;height:34px;padding:5px;
 border-radius:10px;cursor:pointer;flex:none;transition:background .16s,color .16s
}
#main .tw-result-bookmark:hover{background:#e9f7ee;color:#08783e}
#main .tw-result-bookmark:focus-visible{outline:2px solid #178747;outline-offset:2px}
#main .tw-result-bookmark.is-saved{color:#087a40;background:#eaf8ee}
#main .tw-result-bookmark.is-saved svg{fill:#b9ebcb}
#main .tw-result-bookmark svg{width:24px;height:24px}
#main .tw-result-top{display:block;min-width:0}
#main .tw-result-top h3{
 font-size:18px;font-weight:780;line-height:1.35;margin:0 0 14px;
 color:#11251b;letter-spacing:-.25px;overflow-wrap:anywhere
}
#main .tw-result-meta{
 display:flex;align-items:center;gap:10px 17px;flex-wrap:wrap;
 color:#415e4d;font-size:12px;line-height:1.35;margin-bottom:15px
}
#main .tw-result-meta>span{display:inline-flex;align-items:center;gap:6px;min-width:0}
#main .tw-result-meta svg{width:16px;height:16px;color:#307e50}
#main .tw-result-amount{
 color:#087b32;font-size:22px;font-weight:850;white-space:nowrap;
 letter-spacing:-.4px;margin-right:2px
}
#main .tw-result-more{border-top:1px solid #e8eee9}
#main .tw-result-more>summary{list-style:none;cursor:pointer}
#main .tw-result-more>summary::-webkit-details-marker{display:none}
#main .tw-result-bottom{
 display:flex;align-items:center;justify-content:space-between;gap:15px;
 min-height:54px;padding:11px 0 0
}
#main .tw-result-overview{display:flex;align-items:center;gap:15px;min-width:0;flex:1}
#main .tw-result-number{
 color:#708477;font-size:12px;white-space:nowrap;flex:none
}
#main .tw-result-customer{
 border-left:1px solid #dce8e0;padding-left:15px;color:#597362;
 font-size:12px;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden
}
#main .tw-result-detail{
 display:inline-flex;align-items:center;justify-content:center;gap:9px;
 background:linear-gradient(100deg,#119e4e,#03743b);
 color:#fff;border:1px solid #087b40;border-radius:11px;
 padding:11px 16px;font-size:12px;font-weight:770;white-space:nowrap;flex:none;
 box-shadow:0 5px 12px rgba(6,110,53,.13);transition:filter .15s
}
#main .tw-result-detail svg{width:16px;height:16px;transition:transform .15s}
#main .tw-result-more>summary:hover .tw-result-detail{filter:brightness(.95)}
#main .tw-result-more[open]>summary .tw-result-detail{background:#086a37}
#main .tw-result-more[open]>summary .tw-result-detail svg{transform:rotate(90deg)}
#main .tw-result-more>summary:focus-visible{outline:2px solid #178747;outline-offset:3px;border-radius:8px}
#main .tw-result-expanded{
 margin-top:14px;padding:18px;background:#f7fcf8;
 border:1px solid #e0eee4;border-radius:13px
}
#main .tw-result-expanded dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;margin:0}
#main .tw-result-expanded dl>div{min-width:0}
#main .tw-result-expanded dt{font-size:11px;font-weight:650;color:#71887a;margin-bottom:4px}
#main .tw-result-expanded dd{font-size:12px;font-weight:720;color:#203c2b;margin:0;line-height:1.5;overflow-wrap:anywhere}
#main .tw-result-links{
 display:flex;align-items:center;justify-content:flex-start;
 gap:9px;flex-wrap:wrap;margin-top:17px;padding-top:16px;border-top:1px solid #deebe1
}
#main .tw-result-outbound,#main .tw-result-ai-link{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 border:1px solid #c7dfcf;border-radius:10px;padding:9px 13px;
 font-size:12px;font-weight:730;color:#176b3d;background:#fff;text-decoration:none
}
#main .tw-result-outbound:hover,#main .tw-result-ai-link:hover{background:#eaf6ee}
#main .tw-result-outbound svg{width:16px;height:16px}
#main .tw-result-ai-link{background:#e7f5eb;border-color:transparent}
#main .home-results .result-list{display:block;gap:0}
@media(max-width:850px){
 #main .tw-result-card{padding:16px 16px 10px;border-radius:15px}
 #main .tw-result-top h3{font-size:16px;margin-bottom:12px}
 #main .tw-result-meta{gap:8px 13px}
 #main .tw-result-amount{font-size:20px}
 #main .tw-result-expanded dl{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
 #main .tw-result-card{padding:15px 13px 9px}
 #main .tw-result-chip-row{gap:5px}
 #main .tw-result-status,#main .tw-result-chip{font-size:10px;padding:5px 9px}
 #main .tw-result-top h3{font-size:15px;line-height:1.38}
 #main .tw-result-meta{font-size:11px}
 #main .tw-result-amount{width:100%;font-size:20px}
 #main .tw-result-bottom{align-items:flex-end;gap:9px}
 #main .tw-result-overview{display:block;flex:1}
 #main .tw-result-customer{display:block;border:0;padding:3px 0 0;max-width:100%}
 #main .tw-result-detail{padding:10px 12px;font-size:11px}
 #main .tw-result-expanded{padding:13px 11px}
 #main .tw-result-expanded dl{grid-template-columns:1fr}
 #main .tw-result-links>*{width:100%;min-height:41px}
}
@media(prefers-reduced-motion:reduce){
 #main .tw-result-card,#main .tw-result-detail{transition:none}
}
