/* Final responsive layer: mobile usability without changing desktop layouts. */
body[data-route="trebnik"] .trebnik-client-mobile-nav{
  display:none;
}
body[data-route="trebnik"] .admin-diagnostics-mobile{
  display:none;
}

@media (max-width:920px){
  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:clip;
  }
  body{
    min-height:100dvh;
  }
  .shell{
    width:100%;
    max-width:100%;
    padding-bottom:calc(28px + env(safe-area-inset-bottom));
  }
  main{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  :where(main,section,article,aside,header,footer,nav,form,label,fieldset,div,p,h1,h2,h3,h4,ul,ol,li,dl,dt,dd,button,a,input,textarea,select){
    min-width:0;
  }
  :where(p,span,strong,em,b,i,a,button,h1,h2,h3,h4,li,dt,dd,label){
    overflow-wrap:anywhere;
  }
  :where(img,svg,video,canvas,iframe){
    max-width:100%;
  }
  .atmosphere,
  .deep-bg,
  .grain{
    left:0;
    right:0;
    width:100%;
    max-width:100%;
    transform:none;
  }
  :where(pre,code,.material-body table,.material-body iframe,.material-body video,.material-body .embed){
    max-width:100%;
    overflow:auto;
  }
  .site-footer{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:1;
    width:auto;
    max-width:none;
    margin:28px 14px 0;
    padding-top:14px;
    border-top:1px solid rgba(240,206,118,.14);
  }
  .site-footer nav{
    display:grid;
    justify-content:stretch;
    gap:7px;
  }
  .notice{
    left:10px;
    right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    max-width:none;
  }
}

/* Admin Trebnik mobile alignment: mirror the accepted client cabinet rhythm. */
@media (max-width:920px){
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet){
    width:100%;
    max-width:440px;
    margin:0 auto;
    gap:7px;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-trebnik__topbar{
    width:100%;
    margin:0 auto;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .client-map.trebnik-nav-split{
    width:100%;
    max-width:440px;
    display:grid;
    grid-template-columns:1fr;
    justify-items:center;
    gap:7px;
    margin:0 auto;
    padding:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-nav-title{
    order:1;
    width:100%;
    min-width:0;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 14px;
    font-size:1.1rem;
    text-align:center;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-nav-title::before,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-nav-title::after{
    display:none;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-nav-side{
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    justify-content:stretch;
    overflow:visible;
    padding-bottom:0;
    scrollbar-width:none;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-nav-side.is-left{
    order:2;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-nav-side.is-right{
    order:3;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .client-map .plain.trebnik-nav-link{
    width:100%;
    min-width:0;
    min-height:34px;
    justify-content:center;
    padding:0 8px;
    border-radius:10px;
    font-size:.9rem;
    text-align:center;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .client-map .plain.trebnik-nav-link.has-badge{
    padding-right:8px;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-nav-badge{
    display:none;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-clients,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-board,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-ritebook,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-finance{
    width:100%;
    max-width:440px;
    margin:0 auto;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-clients,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-workspace{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-clients.is-client-selected>.trebnik-client-list{
    display:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-clients.is-client-selected>.trebnik-client-detail{
    display:block!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail{
    width:100%;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-workspace .trebnik-client-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:6px 8px;
    padding:2px 0 8px;
    border-bottom:0;
    text-align:left;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-back{
    display:none;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-mobile-nav{
    position:relative;
    z-index:8;
    grid-column:1;
    grid-row:1;
    display:block;
    width:max-content;
    max-width:100%;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-mobile-nav__button{
    min-width:0;
    min-height:24px;
    padding:0 8px;
    border-radius:7px;
    font-size:.72rem;
    font-weight:650;
    line-height:1;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-mobile-menu{
    position:absolute;
    top:calc(100% + 6px);
    left:0;
    width:min(246px, calc(100vw - 24px));
    max-height:min(30svh, 198px);
    display:grid;
    gap:4px;
    padding:4px;
    border:1px solid rgba(240,206,118,.24);
    border-radius:8px;
    background:rgba(2,22,17,.98);
    box-shadow:0 18px 42px rgba(0,0,0,.45);
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-mobile-menu[hidden]{
    display:none;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-mobile-menu .search{
    box-sizing:border-box;
    width:100%;
    height:24px;
    max-height:24px;
    min-height:24px;
    margin:0;
    padding:0 7px;
    border-radius:6px;
    font-size:.7rem;
    line-height:1;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-mobile-rows{
    max-height:min(22svh, 146px);
    gap:4px;
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-mobile-rows .trebnik-client-nav-row{
    min-height:30px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:5px;
    padding:5px 6px;
    border-radius:6px;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-mobile-rows .trebnik-client-nav-row strong{
    min-width:0;
    overflow:hidden;
    color:var(--ink);
    font-size:.72rem;
    line-height:1.1;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-nav-row__amount{
    justify-self:end;
    color:var(--gold-2);
    font-size:.66rem;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-title{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:5px;
    align-items:start;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-title h2{
    width:100%;
    overflow:hidden;
    text-align:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.78rem;
    line-height:1.15;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-meta{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-meta span{
    min-width:0;
    min-height:24px;
    justify-content:center;
    padding:0 6px;
    border-radius:7px;
    font-size:.7rem;
    line-height:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-head__actions{
    grid-column:2;
    grid-row:1;
    width:auto;
    justify-self:end;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-head__actions .primary,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-head__actions .secondary{
    min-width:0;
    min-height:24px;
    padding:0 8px;
    border-radius:7px;
    font-size:.72rem;
    font-weight:650;
    line-height:1;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-head__actions .primary span{
    display:none;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-tabs{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin:0 0 10px;
    padding:0;
    border:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-tabs .plain{
    width:100%;
    min-width:0;
    min-height:34px;
    justify-content:center;
    padding:0 8px;
    border:1px solid rgba(240,206,118,.16);
    border-radius:10px;
    background:rgba(7,24,20,.5);
    font-size:.82rem;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-tabs .plain.active{
    border-color:rgba(240,206,118,.42);
    background:rgba(201,151,67,.1);
    color:var(--gold-2);
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-section-head,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section__head{
    min-height:28px;
    margin:0 0 6px;
    padding:0;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-section-head h3,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section__head h2{
    font-size:1.02rem;
    line-height:1.15;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-section-head .row{
    width:auto;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-section-head .primary,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-section-head .secondary{
    min-height:30px;
    padding:0 9px;
    border-radius:8px;
    font-size:.78rem;
  }
}

@media (max-width:640px){
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-title h2{
    font-size:.76rem;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:760px){
  .site-header{
    top:0;
    padding:4px 12px 5px;
    padding-top:calc(4px + env(safe-area-inset-top));
  }
  .brand-lockup{
    max-width:100%;
  }
  .brand-name{
    max-width:calc(100vw - 142px);
    overflow:hidden;
    overflow-wrap:normal;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .site-nav{
    max-height:calc(100dvh - 76px - env(safe-area-inset-top));
    overflow:auto;
    overscroll-behavior:contain;
    padding-bottom:calc(6px + env(safe-area-inset-bottom));
  }
  .site-header.menu-open{
    background:linear-gradient(180deg,#020807,#03100d);
    box-shadow:0 18px 34px rgba(0,0,0,.42);
  }
  .site-header.menu-open .site-nav > a,
  .site-header.menu-open .mobile-nav-button{
    background:rgba(5,20,17,.96);
  }
  .mobile-nav-actions{
    display:grid;
    gap:7px;
  }
}

@media (max-width:760px){
  .modal{
    align-items:end;
    justify-items:center;
    padding:10px;
    padding-top:calc(10px + env(safe-area-inset-top));
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
  }
  .modal-card,
  .modal-card.compact,
  .modal-card.wide{
    width:100%;
    max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius:18px;
  }
  .modal-head{
    flex:0 0 auto;
    padding:13px 12px 12px 16px;
  }
  .modal-head h2{
    font-size:1.3rem;
    line-height:1.12;
  }
  .modal-close{
    flex:0 0 40px;
  }
  body[data-route="trebnik"] .modal-close{
    flex:0 0 34px;
    width:34px;
    height:34px;
    border-radius:8px;
  }
  .modal-body{
    min-height:0;
    padding:14px;
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .tabs{
    margin:0 0 12px;
    padding-bottom:4px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
  }
  .tabs button{
    flex:0 0 auto;
    min-width:max-content;
    min-height:40px;
  }
  .form,
  .detail,
  .detail-grid,
  .toggle-grid,
  .copy{
    grid-template-columns:1fr;
  }
  .form input,
  .form textarea,
  .form select,
  .copy input{
    min-height:42px;
  }
  .form .row,
  .modal-body .row{
    align-items:stretch;
  }
  .form .row > :where(button,a),
  .modal-body .row > :where(button,a){
    flex:1 1 150px;
  }
  #adminQuestionForm .row,
  #questionAnswerForm .row,
  #questionForm.question-submit-form .row{
    justify-content:space-between;
  }
  #adminQuestionForm .row > :where(button,a),
  #questionAnswerForm .row > :where(button,a),
  #questionForm.question-submit-form .row > :where(button,a){
    flex:0 0 auto;
    min-width:86px;
    min-height:30px;
    padding:5px 11px;
  }
  #adminQuestionForm .row > :where(button.primary,a.primary),
  #questionAnswerForm .row > :where(button.primary,a.primary),
  #questionForm.question-submit-form .row > :where(button.primary,a.primary){
    min-width:104px;
  }
  #adminQuestionForm .admin-question-options{
    gap:22px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="work-log"]{
    max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius:18px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="work-log"] .modal-body{
    padding:12px;
  }
  body[data-route="trebnik"] .work-log-facts,
  body[data-route="trebnik"] .work-log-date-list{
    grid-template-columns:1fr;
  }
  body[data-route="trebnik"] .work-log-date-list{
    max-height:44dvh;
  }
  body[data-route="trebnik"] .work-log-date-list .toggle-line{
    min-height:40px;
  }
  body[data-route="trebnik"] .work-log-summary>strong{
    white-space:normal;
  }
}

@media (max-width:640px){
  :where(.primary,.secondary,.plain,.danger,.entry-button,.admin-shortcut,.icon-button,.menu-button){
    min-height:40px;
  }
  .section-hero,
  .material-page,
  .gate-card,
  .panel,
  .content-card,
  .client-card,
  .admin-card,
  .inquiry-card{
    border-radius:14px;
  }
  .material-page{
    padding:20px 16px;
  }
  .material-page h1,
  .section-hero h1,
  .gate-card h1{
    font-size:clamp(2rem,10vw,3rem);
    letter-spacing:0;
    overflow-wrap:anywhere;
  }
  .material-body{
    max-width:100%;
    font-size:1rem;
    line-height:1.68;
  }
  .questions-list{
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  .question-card-main{
    aspect-ratio:16/10;
    min-height:0;
    padding:10px;
  }
  .question-page .question-detail-block{
    padding:0;
  }
  .question-page .question-detail-card{
    padding:12px 13px;
  }
  .question-page .question-detail-card .question-detail-title,
  .question-page .question-answer{
    font-size:.98rem;
    line-height:1.62;
  }
  .question-page .question-detail-meta{
    grid-template-columns:1fr;
    gap:6px;
  }
  .question-page .question-detail-date{
    justify-self:start;
  }
  .material-cover,
  .material-body-image img{
    border-radius:12px;
  }
  .service-step,
  .home-contact,
  .community-head,
  .notification-item,
  .subscription-row,
  .profile-cover,
  .profile-avatar-field{
    grid-template-columns:1fr;
  }
  .community-item-head{
    grid-template-columns:48px minmax(0,1fr);
    gap:9px;
  }
  .community-avatar{width:48px;height:48px;font-size:1rem}
  .community-item .community-comment-body{margin-left:0}
  .community-actions > :where(button,a),
  .notifications-actions > :where(button,a){
    flex:1 1 150px;
  }
  .community-actions > .community-reply-button{
    flex:0 0 auto;
    padding-right:0;
  }
}

@media (max-width:920px){
  body[data-route="admin"] .shell,
  body[data-route="admin"] main,
  body[data-route="trebnik"] .shell,
  body[data-route="trebnik"] main{
    overflow:visible;
  }
  .admin-editor__layout,
  .admin-grid,
  .client-grid,
  .workbench,
  .admin-queue,
  .access-grid,
  .material-editor-layout,
  .material-editor-grid,
  .public-material-editor .material-editor-grid{
    grid-template-columns:1fr;
  }
  .admin-sidebar,
  .admin-editor__sidebar,
  .admin-editor__topbar,
  .material-editor-side,
  .material-live-preview{
    position:relative;
    top:auto;
    max-height:none;
  }
  .admin-editor__page-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-head-top,
  .selected-client,
  .admin-card-head,
  .admin-editor__topbar,
  .admin-editor__panel-head,
  .public-material-editor__head{
    grid-template-columns:1fr;
    align-items:start;
  }
  .admin-toolbar,
  .admin-editor__top-actions,
  .tool-group{
    justify-items:start;
    justify-content:flex-start;
  }
  .rich-editor-toolbar{
    top:0;
    overflow-x:auto;
    flex-wrap:nowrap;
    scrollbar-width:thin;
  }
  .rich-editor-toolbar button{
    flex:0 0 auto;
  }
  .rich-editor-surface,
  .block-editor-shell{
    min-height:260px;
  }
  .public-material-savebar,
  .admin-material-savebar{
    width:100%;
    max-width:100%;
  }
  .public-material-savebar{
    bottom:auto;
  }
  .admin-material-savebar{
    bottom:calc(8px + env(safe-area-inset-bottom));
  }
}

@media (min-width:761px){
  body[data-route="admin"] .admin-editor__layout{
    grid-template-columns:238px minmax(0,1fr);
  }
  body[data-route="admin"] .admin-editor__sidebar{
    display:grid;
  }
  body[data-route="admin"] .admin-editor__nav-menu{
    display:none;
  }
}

@media (max-width:760px){
  body[data-route="admin"] .admin-editor__layout{
    grid-template-columns:1fr;
  }
  body[data-route="admin"] .admin-editor__sidebar{
    display:none;
  }
  body[data-route="admin"] .admin-editor__nav-menu{
    display:block;
  }
}

@media (max-width:640px){
  .admin-editor__page-list,
  .admin-editor__form-grid,
  .admin-trebnik__summary,
  .metrics{
    grid-template-columns:1fr;
  }
  .admin-head,
  .admin-editor__sidebar,
  .admin-editor__panel,
  .public-material-editor .material-builder-card{
    padding:12px;
  }
  body[data-route="admin"] .admin-editor__sidebar{
    gap:5px;
    padding:8px;
    border-radius:10px;
  }
  body[data-route="admin"] .admin-editor__sidebar h2{
    margin:0;
    font-size:.9rem;
  }
  body[data-route="admin"] .admin-editor__topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:6px;
    min-height:28px;
    padding:0 2px;
  }
  body[data-route="admin"] .admin-editor__top-actions{
    justify-content:flex-end;
  }
  body[data-route="admin"] .admin-editor__page-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;
  }
  body[data-route="admin"] .admin-editor__page-list button{
    min-height:28px;
    padding:5px 7px;
    border-radius:7px;
  }
  body[data-route="admin"] .admin-editor__page-list button strong{
    font-size:.78rem;
  }
  body[data-route="admin"] .admin-editor__page-list button span{
    display:none;
  }
  body[data-route="admin"] .admin-editor__panel--traffic{
    padding:8px;
    gap:5px;
  }
  body[data-route="admin"] .admin-editor__panel--traffic .admin-editor__panel-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:6px;
    padding-bottom:5px;
  }
  body[data-route="admin"] .admin-editor__panel--traffic .admin-editor__traffic-actions{
    flex-wrap:nowrap;
    gap:4px;
  }
  body[data-route="admin"] .admin-editor__panel--traffic .admin-editor__traffic-actions .secondary,
  body[data-route="admin"] .admin-editor__panel--traffic .admin-editor__traffic-actions .plain{
    min-height:24px;
    padding:0 7px;
    border-radius:6px;
    font-size:.68rem;
  }
  body[data-route="admin"] .admin-editor__panel--traffic .admin-traffic-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
    border:0;
  }
  body[data-route="admin"] .admin-editor__panel--traffic .admin-traffic-period-row{
    grid-template-columns:minmax(0,1fr) 36px 46px;
    gap:4px;
    min-height:24px;
    padding:0 6px;
    border:1px solid rgba(240,206,118,.12);
    border-radius:7px;
    background:rgba(255,255,255,.018);
  }
  body[data-route="admin"] .admin-editor__panel--profiles{
    padding:8px;
    gap:6px;
  }
  body[data-route="admin"] .admin-profile-workspace{
    grid-template-columns:1fr;
    gap:7px;
  }
  body[data-route="admin"] .admin-profile-rows{
    max-height:310px;
  }
  body[data-route="admin"] .admin-profile-facts,
  body[data-route="admin"] .admin-profile-switches,
  body[data-route="admin"] .admin-profile-form-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-route="admin"] .admin-profile-comment{
    grid-template-columns:1fr;
  }
  body[data-route="admin"] .admin-profile-comment p,
  body[data-route="admin"] .admin-profile-comment-actions{
    grid-column:auto;
    grid-row:auto;
  }
  .admin-head h1,
  .client-hero h1{
    font-size:clamp(2rem,10vw,3rem);
    letter-spacing:0;
  }
  .admin-trebnik__row,
  .admin-trebnik__compact-item,
  .admin-action-line,
  .admin-work-line,
  .admin-work-line .admin-action-open,
  .admin-materials-table .admin-trebnik__row,
  .admin-material-row{
    grid-template-columns:1fr;
    align-items:start;
  }
  .admin-trebnik__row.is-head{
    display:none;
  }
  .admin-trebnik__cell,
  .admin-action-open strong,
  .admin-action-open span,
  .admin-action-open p{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
  .admin-action-buttons,
  .admin-work-line .admin-action-buttons,
  .admin-trebnik__cell.is-actions,
  .admin-material-row__actions{
    width:100%;
    min-width:0;
    justify-content:flex-start;
  }
  .admin-action-buttons > :where(button,a),
  .admin-material-row__actions > :where(button,a){
    flex:1 1 140px;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-action-line,
  body[data-route="trebnik"] .trebnik-action-section .admin-work-line,
  body[data-route="trebnik"] .trebnik-action-section .admin-queue-line{
    width:100%;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
    padding:6px 8px!important;
    overflow:visible!important;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-action-open,
  body[data-route="trebnik"] .trebnik-action-section .admin-work-line .admin-action-open,
  body[data-route="trebnik"] .trebnik-action-section .admin-queue-line .admin-action-open{
    width:100%;
    display:grid!important;
    grid-template-columns:16px minmax(92px,.42fr) minmax(0,1fr)!important;
    gap:6px!important;
    align-items:center!important;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-update-line .admin-action-open,
  body[data-route="trebnik"] .trebnik-action-section .admin-queue-line:not(.admin-work-line) .admin-action-open{
    grid-template-columns:1fr!important;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-work-note,
  body[data-route="trebnik"] .trebnik-action-section .admin-work-status,
  body[data-route="trebnik"] .trebnik-action-section .admin-action-meta{
    grid-column:1/-1;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-work-note{
    display:block!important;
    padding-left:0!important;
    border-left:0!important;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-work-status,
  body[data-route="trebnik"] .trebnik-action-section .admin-action-meta{
    display:flex!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:5px!important;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-work-status span,
  body[data-route="trebnik"] .trebnik-action-section .admin-action-meta span{
    max-width:100%;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-action-buttons,
  body[data-route="trebnik"] .trebnik-action-section .admin-work-line .admin-action-buttons,
  body[data-route="trebnik"] .trebnik-action-section .admin-update-line .admin-action-buttons{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px!important;
  }
  body[data-route="trebnik"] .trebnik-action-section .admin-action-buttons .plain,
  body[data-route="trebnik"] .trebnik-action-section .admin-action-buttons .secondary{
    width:100%!important;
    min-width:0!important;
  }
}

@media (max-width:920px){
  body[data-route="trebnik"],
  body[data-route="trebnik"][data-trebnik-page="services"],
  body[data-route="trebnik"][data-trebnik-page="payments"]{
    overflow:auto;
  }
  body[data-route="trebnik"] main,
  body[data-route="trebnik"][data-trebnik-page="services"] main,
  body[data-route="trebnik"][data-trebnik-page="payments"] main{
    height:auto;
    min-height:0;
    padding:10px 10px calc(28px + env(safe-area-inset-bottom));
    overflow:visible;
  }
  body[data-route="trebnik"] .admin-trebnik,
  body[data-route="trebnik"] .client-cabinet,
  body[data-route="trebnik"] .trebnik-ritebook,
  body[data-route="trebnik"] .trebnik-finance{
    height:auto;
    min-height:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .admin-trebnik__topbar,
  body[data-route="trebnik"] .client-cabinet-topbar{
    min-height:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .client-map,
  body[data-route="trebnik"] .client-map.trebnik-nav-split,
  body[data-route="trebnik"] .client-cabinet-map{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    width:100%;
    padding:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .trebnik-nav-side{
    width:100%;
    min-width:0;
    display:flex;
    justify-content:flex-start;
    gap:7px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    padding-bottom:3px;
  }
  body[data-route="trebnik"] .trebnik-nav-side.is-left,
  body[data-route="trebnik"] .trebnik-nav-side.is-right{
    justify-content:flex-start;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-side{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(0,1fr));
    overflow:visible;
    scrollbar-width:none;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-side .plain.trebnik-nav-link{
    width:100%;
    min-width:0;
    flex:initial;
  }
  body[data-route="trebnik"] .trebnik-nav-title,
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-title{
    width:100%;
    min-width:0;
    height:38px;
    padding:0 24px;
    font-size:1.35rem;
  }
  body[data-route="trebnik"] .client-map .plain,
  body[data-route="trebnik"] .client-map .plain.trebnik-nav-link{
    flex:0 0 auto;
    min-height:36px;
    padding:0 8px;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .client-map .plain.trebnik-nav-link em{
    margin-left:4px;
  }
  body[data-route="trebnik"] .trebnik-clients,
  body[data-route="trebnik"] .trebnik-request-workbench,
  body[data-route="trebnik"] .client-cabinet-shell,
  body[data-route="trebnik"] .client-workbench,
  body[data-route="trebnik"] .client-now-grid,
  body[data-route="trebnik"] .client-detail-grid,
  body[data-route="trebnik"] .client-cabinet-update-grid,
  body[data-route="trebnik"] .finance-cockpit,
  body[data-route="trebnik"] .finance-hero,
  body[data-route="trebnik"] .ritebook-hero{
    grid-template-columns:1fr;
  }
  body[data-route="trebnik"] .trebnik-client-list,
  body[data-route="trebnik"] .trebnik-client-workspace,
  body[data-route="trebnik"] .trebnik-request-master,
  body[data-route="trebnik"] .trebnik-request-detail-pane,
  body[data-route="trebnik"] .client-workbench-list,
  body[data-route="trebnik"] .client-detail-pane{
    max-height:none;
    overflow:visible;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-payments .finance-cockpit,
  body[data-route="trebnik"] .client-cabinet.is-client-payments .client-finance-cockpit,
  body[data-route="trebnik"] .client-cabinet.is-client-payments .finance-hero,
  body[data-route="trebnik"] .client-cabinet.is-client-payments .finance-action-center,
  body[data-route="trebnik"] .client-cabinet.is-client-payments .finance-action-list{
    overflow:visible;
  }
  body[data-route="trebnik"] .trebnik-client-tabs{
    overflow-x:auto;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  body[data-route="trebnik"] .trebnik-client-tabs .plain{
    flex:0 0 auto;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .trebnik-request-ledger,
  body[data-route="trebnik"] .client-now-stats,
  body[data-route="trebnik"] .client-cabinet-stats,
  body[data-route="trebnik"] .client-cabinet-stats.is-payment{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-route="trebnik"] .client-action-row,
  body[data-route="trebnik"] .client-detail-head,
  body[data-route="trebnik"] .client-news-card,
  body[data-route="trebnik"] .finance-action-card,
  body[data-route="trebnik"] .finance-payment-line,
  body[data-route="trebnik"] .finance-radar-row,
  body[data-route="trebnik"] .finance-pulse-row,
  body[data-route="trebnik"] .finance-service-row,
  body[data-route="trebnik"] .ritebook-row{
    grid-template-columns:1fr;
    align-items:start;
  }
  body[data-route="trebnik"] .client-action-row__actions,
  body[data-route="trebnik"] .client-detail-head>.row,
  body[data-route="trebnik"] .client-service-quick-actions,
  body[data-route="trebnik"] .finance-action-buttons,
  body[data-route="trebnik"] .finance-pending-buttons,
  body[data-route="trebnik"] .ritebook-row-actions{
    width:100%;
    min-width:0;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  body[data-route="trebnik"] .client-action-row__actions > :where(button,a),
  body[data-route="trebnik"] .client-detail-head>.row > :where(button,a),
  body[data-route="trebnik"] .client-service-quick-actions > :where(button,a),
  body[data-route="trebnik"] .finance-action-buttons > :where(button,a),
  body[data-route="trebnik"] .finance-pending-buttons > :where(button,a),
  body[data-route="trebnik"] .ritebook-row-actions > :where(button,a){
    flex:1 1 150px;
    min-width:0;
  }
  body[data-route="trebnik"] .finance-feed-filters{
    flex-wrap:wrap;
  }
  body[data-route="trebnik"] .finance-feed-filters .mini-select{
    flex:1 1 160px;
  }
  body[data-route="trebnik"] .trebnik-client-list{
    gap:10px;
  }
  body[data-route="trebnik"] .trebnik-client-rows,
  body[data-route="trebnik"] .client-master-list{
    max-height:min(42svh,360px);
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding-right:3px;
    scrollbar-width:thin;
  }
  body[data-route="trebnik"] .trebnik-request-panes{
    overflow-x:auto;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  body[data-route="trebnik"] .ritebook-hero{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    overflow:visible;
  }
  body[data-route="trebnik"] .ritebook-stat{
    min-width:0;
    width:100%;
    min-height:38px;
  }
  body[data-route="trebnik"] .ritebook-row-actions .plain,
  body[data-route="trebnik"] .ritebook-row-actions .secondary,
  body[data-route="trebnik"] .finance-action-buttons .plain,
  body[data-route="trebnik"] .finance-action-buttons .secondary,
  body[data-route="trebnik"] .finance-action-buttons .danger,
  body[data-route="trebnik"] .finance-pending-buttons .plain,
  body[data-route="trebnik"] .finance-pending-buttons .secondary,
  body[data-route="trebnik"] .finance-pending-buttons .danger{
    min-height:36px;
  }
  body[data-route="trebnik"] .trebnik-client-workspace,
  body[data-route="trebnik"] .client-detail-pane{
    scroll-margin-top:84px;
  }
}

@media (max-width:640px){
  body[data-route="trebnik"] .trebnik-request-ledger,
  body[data-route="trebnik"] .client-now-stats,
  body[data-route="trebnik"] .client-cabinet-stats,
  body[data-route="trebnik"] .client-cabinet-stats.is-payment,
  body[data-route="trebnik"] .trebnik-detail-modal .metrics,
  body[data-route="trebnik"] .trebnik-detail-modal .detail-grid,
  body[data-route="trebnik"] .client-detail-grid{
    grid-template-columns:1fr;
  }
  body[data-route="trebnik"] .trebnik-client-head,
  body[data-route="trebnik"] .trebnik-request-detail__head,
  body[data-route="trebnik"] .finance-panel-head,
  body[data-route="trebnik"] .ritebook-board-head{
    grid-template-columns:1fr;
    align-items:start;
  }
  body[data-route="trebnik"] .trebnik-client-title h2,
  body[data-route="trebnik"] .trebnik-request-detail__head h3,
  body[data-route="trebnik"] .client-detail-head h3{
    font-size:1.28rem;
    overflow-wrap:anywhere;
  }
  body[data-route="trebnik"] .finance-panel,
  body[data-route="trebnik"] .ritebook-board,
  body[data-route="trebnik"] .trebnik-client-list,
  body[data-route="trebnik"] .trebnik-client-workspace,
  body[data-route="trebnik"] .client-detail-card{
    border-radius:10px;
  }
  body[data-route="trebnik"] .finance-payment-line>.finance-amount,
  body[data-route="trebnik"] .finance-client-money,
  body[data-route="trebnik"] .finance-service-money,
  body[data-route="trebnik"] .ritebook-row-use{
    justify-self:start;
    text-align:left;
  }
  body[data-route="trebnik"] .ritebook-hero{
    grid-template-columns:1fr;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="work-editor"],
  body[data-route="trebnik"] .modal-card[data-modal-kind="request-editor"],
  body[data-route="trebnik"] .modal-card[data-modal-kind="service-editor"],
  body[data-route="trebnik"] .modal-card[data-modal-kind="service-create"],
  body[data-route="trebnik"] .modal-card[data-modal-kind="service-detail"],
  body[data-route="trebnik"] .modal-card[data-modal-kind="ritebook-editor"],
  body[data-route="trebnik"] .modal-card[data-modal-kind="trebnik-detail"],
  body[data-route="trebnik"] .modal-card[data-modal-kind="trebnik-update-detail"]{
    width:100%;
    height:auto;
    max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="trebnik-update-detail"] .modal-body{
    min-height:0;
    max-height:calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="work-editor"] .modal-body,
  body[data-route="trebnik"] .modal-card[data-modal-kind="request-editor"] .modal-body,
  body[data-route="trebnik"] .modal-card[data-modal-kind="service-editor"] .modal-body,
  body[data-route="trebnik"] .modal-card[data-modal-kind="service-create"] .modal-body,
  body[data-route="trebnik"] .modal-card[data-modal-kind="service-detail"] .modal-body{
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  body[data-route="trebnik"] .ritebook-editor__top,
  body[data-route="trebnik"] .ritebook-editor__grid,
  body[data-route="trebnik"] .ritebook-editor__actions,
  body[data-route="trebnik"] .trebnik-request-editor .form-grid.two,
  body[data-route="trebnik"] .trebnik-request-editor__actions,
  body[data-route="trebnik"] .trebnik-work-editor .form-grid.two,
  body[data-route="trebnik"] .trebnik-work-editor__actions,
  body[data-route="trebnik"] .trebnik-service-editor .form-grid.two,
  body[data-route="trebnik"] .trebnik-service-editor .form-grid.three,
  body[data-route="trebnik"] .trebnik-service-editor__actions{
    grid-template-columns:1fr;
  }
  body[data-route="trebnik"] .trebnik-request-editor__actions > :where(button,a),
  body[data-route="trebnik"] .trebnik-work-editor__actions > :where(button,a),
  body[data-route="trebnik"] .trebnik-service-editor__actions > :where(button,a){
    width:100%;
  }
}

/* Final mobile cabinet overrides: keep these last so older responsive rules cannot undo the app layout. */
@media (max-width:920px){
  html,
  body{
    overscroll-behavior-y:auto;
  }
  body,
  .shell,
  main,
  #app,
  body[data-route="trebnik"] .admin-trebnik,
  body[data-route="trebnik"] .client-cabinet,
  body[data-route="trebnik"] .client-cabinet-shell,
  body[data-route="trebnik"] .client-cabinet-workspace,
  body[data-route="trebnik"] .trebnik-client-tab{
    touch-action:pan-y;
    -webkit-overflow-scrolling:touch;
  }
  .site-header{
    grid-template-columns:minmax(0,1fr) auto 28px;
    grid-template-areas:
      "brand actions menu"
      "nav nav nav";
    column-gap:3px;
    row-gap:0;
    padding:3px 11px 4px;
    padding-top:calc(3px + env(safe-area-inset-top));
    box-shadow:0 7px 18px rgba(0,0,0,.18);
  }
  .brand-lockup{
    gap:7px;
  }
  .brand-mark{
    width:27px;
    height:27px;
  }
  .brand-name{
    max-width:calc(100vw - 134px);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:.96rem;
    line-height:1;
  }
  .header-actions{
    grid-area:actions;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    justify-self:end;
    align-self:center;
    gap:3px;
    min-width:0;
  }
  .header-actions #loginButton,
  .header-actions #adminButton,
  .header-actions #adminTrafficControl{
    display:none!important;
  }
  .header-actions .notification-control,
  .header-actions .message-control,
  .header-actions .profile-control{
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .header-actions .notification-button,
  .header-actions .message-button,
  .header-actions .account-trigger,
  .header-actions .profile-toggle{
    width:28px;
    min-width:28px;
    max-width:28px;
    height:28px;
    min-height:28px!important;
    max-height:28px;
    padding:0;
    border:0!important;
    border-radius:999px;
    background:transparent!important;
    box-shadow:none!important;
  }
  .header-actions .account-name,
  .header-actions .account-caret{
    display:none!important;
  }
  .header-actions .account-avatar,
  .header-actions .profile-avatar{
    width:26px;
    height:26px;
    border:0;
    border-radius:999px;
    background:transparent;
    font-size:.76rem;
  }
  .header-actions .notification-icon{
    width:15px;
    height:15px;
    stroke:var(--gold-2);
  }
  .header-actions .message-button .message-icon{
    width:15px;
    height:15px;
    transform:none;
  }
  .header-actions .notification-button .notification-count,
  .header-actions .message-button .notification-count{
    top:-4px;
    right:-4px;
    min-width:15px;
    height:15px;
    padding:0 4px;
    font-size:.58rem;
  }
  .menu-button{
    width:28px;
    min-width:28px;
    max-width:28px;
    height:28px;
    min-height:28px!important;
    max-height:28px;
    display:flex!important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:0;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .menu-button span{
    width:13px;
    height:2px;
    margin:0 auto;
  }
  .menu-open .menu-button span:nth-child(1){
    transform:none;
  }
  .menu-open .menu-button span:nth-child(2){
    opacity:1;
  }
  .menu-open .menu-button span:nth-child(3){
    transform:none;
  }
  .site-header.menu-open{
    box-shadow:0 12px 24px rgba(0,0,0,.32);
  }
  .site-header.menu-open .site-nav{
    max-height:calc(100dvh - 54px - env(safe-area-inset-top));
    padding-top:2px;
    overflow:auto;
    overscroll-behavior:contain;
    background:#020807;
  }
  .site-nav > a,
  .site-header.menu-open .site-nav > a,
  .site-header.menu-open .mobile-nav-button{
    min-height:34px;
    border-radius:9px;
    font-size:.84rem;
  }
  body[data-route="trebnik"] main{
    padding-top:3px;
  }
  body[data-route="messages"] main{
    height:100%;
    min-height:0;
    overflow:hidden;
    padding:0;
  }
  body[data-route="messages"] .site-header.menu-open ~ main{
    height:calc(100dvh - 184px - env(safe-area-inset-top));
    margin-top:8px;
  }
  body[data-route="messages"] .messenger-page{
    width:100%;
    height:100%;
    min-height:0;
    margin:0;
    padding:5px 5px calc(5px + env(safe-area-inset-bottom));
  }
  body[data-route="messages"] .messenger-shell,
  body[data-route="messages"] .messenger-shell.is-user{
    width:100%;
    height:100%;
    min-height:0;
    grid-template-columns:minmax(0,1fr);
    border-radius:8px;
  }
  body[data-route="messages"] .messenger-shell{
    grid-template-rows:auto minmax(0,1fr);
  }
  body[data-route="messages"] .messenger-shell.is-user{
    grid-template-rows:minmax(0,1fr);
  }
  body[data-route="messages"] .messenger-sidebar{
    max-height:188px;
    border-right:0;
    border-bottom:1px solid rgba(201,151,67,.18);
  }
  body[data-route="messages"] .messenger-sidebar-head,
  body[data-route="messages"] .messenger-peer{
    min-height:38px;
    padding-top:5px;
    padding-bottom:5px;
  }
  body[data-route="messages"] .messenger-sidebar-head{
    padding-right:36px;
    padding-left:36px;
  }
  body[data-route="messages"] .messenger-peer{
    padding-right:44px;
    padding-left:44px;
  }
  body[data-route="messages"] .messenger-peer .messenger-avatar{
    left:8px;
  }
  body[data-route="messages"] .messenger-sidebar-head > span{
    right:8px;
  }
  body[data-route="messages"] .messenger-thread-list{
    padding:5px;
    scrollbar-width:thin;
  }
  body[data-route="messages"] .messenger-thread-list::-webkit-scrollbar,
  body[data-route="messages"] .messenger-list::-webkit-scrollbar{
    width:4px;
  }
  body[data-route="messages"] .messenger-thread-list::-webkit-scrollbar-thumb,
  body[data-route="messages"] .messenger-list::-webkit-scrollbar-thumb{
    min-height:28px;
  }
  body[data-route="messages"] .messenger-thread{
    min-height:52px;
    grid-template-columns:34px minmax(0,1fr) auto;
    gap:8px;
    padding:6px 7px;
  }
  body[data-route="messages"] .messenger-thread-avatar,
  body[data-route="messages"] .messenger-avatar{
    width:34px;
    height:34px;
  }
  body[data-route="messages"] .messenger-peer .messenger-avatar,
  body[data-route="messages"] .messenger-avatar{
    width:28px;
    height:28px;
  }
  body[data-route="messages"] .messenger-list{
    padding:12px 9px;
  }
  body[data-route="messages"] .messenger-bubble{
    max-width:86%;
    padding:8px 9px 7px;
  }
  body[data-route="messages"] .messenger-bubble p{
    font-size:.88rem;
  }
  body[data-route="messages"] .messenger-compose{
    grid-template-columns:minmax(0,1fr) 40px 40px;
    gap:5px;
    padding:8px;
  }
  body[data-route="messages"] .messenger-compose .messenger-attachment-drafts{
    left:8px;
    bottom:calc(100% + 6px);
    width:min(260px,calc(100% - 96px));
  }
  body[data-route="messages"] .messenger-compose textarea{
    height:36px;
    min-height:36px;
    max-height:98px;
    resize:none;
    padding:8px 9px;
  }
  body[data-route="messages"] .messenger-attach,
  body[data-route="messages"] .messenger-send{
    width:40px;
    height:40px;
  }
  body[data-route="messages"] .messenger-attach img{
    width:34px;
    height:34px;
    pointer-events:none;
  }
  body[data-route="messages"] .messenger-send svg{
    width:30px;
    height:30px;
  }
  body[data-route="messages"] .messenger-send img{
    width:34px;
    height:34px;
    pointer-events:none;
  }
  body[data-route="trebnik"] .client-cabinet{
    gap:3px;
  }
  body[data-route="trebnik"] .client-cabinet .client-cabinet-map{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:440px;
    margin:0 auto;
    justify-items:stretch;
    gap:7px;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-title{
    order:1;
    grid-column:1/-1;
    width:100%;
    min-width:0;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 14px;
    font-size:1.1rem;
    text-align:center;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-side{
    display:contents;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-side .plain.trebnik-nav-link{
    width:100%;
    min-width:0;
    min-height:34px;
    padding:0 8px;
    border-radius:10px;
    font-size:.9rem;
    justify-content:center;
    text-align:center;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-link[data-tab="now"]{ order:2; }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-link[data-tab="requests"]{ order:3; }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-link[data-tab="diagnostics"]{ order:4; }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-link[data-tab="updates"]{ order:5; }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-link[data-tab="services"]{ order:6; }
  body[data-route="trebnik"] .client-cabinet .trebnik-nav-link[data-tab="payments"]{ order:7; }
  }
  body[data-route="trebnik"] .client-cabinet-workspace .trebnik-client-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    justify-items:stretch;
    gap:6px 8px;
    padding:2px 0 9px;
    border-bottom:0;
    text-align:left;
  }
  body[data-route="trebnik"] .client-cabinet-workspace .trebnik-client-tab{
    padding:0;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-title{
    display:contents;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-title h2{
    grid-column:1;
    grid-row:1;
    width:auto;
    align-self:center;
    justify-self:start;
    overflow:hidden;
    text-align:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.78rem;
    line-height:1.15;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-meta{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-meta span{
    min-width:0;
    min-height:24px;
    justify-content:center;
    padding:0 6px;
    border-radius:7px;
    font-size:.7rem;
    line-height:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-head__actions{
    grid-column:2;
    grid-row:1;
    width:auto;
    justify-self:end;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-head__actions .client-compact-action{
    min-width:0;
    min-height:24px;
    padding:0 8px;
    border-radius:7px;
    font-size:.72rem;
    font-weight:650;
  }
  body[data-route="trebnik"] .client-main-layout{
    width:100%;
    max-width:none;
    gap:12px;
    margin:0;
    justify-self:stretch;
  }
  body[data-route="trebnik"] .client-main-section{
    width:100%;
    max-width:none;
    gap:6px;
    margin:0;
    padding:0;
    justify-self:stretch;
  }
  body[data-route="trebnik"] .client-main-section__head{
    min-height:28px;
    padding:0;
    margin:0;
  }
  body[data-route="trebnik"] .client-main-section__head h3{
    font-size:1.02rem;
  }
  body[data-route="trebnik"] .client-main-list{
    width:100%;
    max-width:none;
    gap:6px;
    margin:0;
    padding:0;
    justify-self:stretch;
  }
  body[data-route="trebnik"] .client-main-request{
    position:relative;
    grid-template-columns:minmax(0,1fr);
    min-height:50px;
    gap:0;
    padding:9px 28px 9px 10px;
    width:100%;
    max-width:none;
    margin:0;
    border-radius:10px;
    background:rgba(7,24,20,.62);
    box-shadow:inset 2px 0 0 rgba(240,206,118,.2);
    cursor:pointer;
  }
  body[data-route="trebnik"] .client-main-request::after{
    content:"";
    position:absolute;
    right:12px;
    top:50%;
    width:7px;
    height:7px;
    border-top:1px solid rgba(240,206,118,.62);
    border-right:1px solid rgba(240,206,118,.62);
    transform:translateY(-50%) rotate(45deg);
  }
  body[data-route="trebnik"] .client-main-request.is-without-works{
    padding:9px 28px 9px 10px;
  }
  body[data-route="trebnik"] .client-main-request__summary{
    gap:4px;
  }
  body[data-route="trebnik"] .client-main-request__title{
    width:100%;
  }
  body[data-route="trebnik"] .client-main-request__title-line{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
  }
  body[data-route="trebnik"] .client-main-request__title strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:1rem;
    line-height:1.12;
  }
  body[data-route="trebnik"] .client-work-count{
    min-height:21px;
    display:inline-flex;
    align-items:center;
    padding:0 7px;
    border:1px solid rgba(240,206,118,.12);
    border-radius:999px;
    background:rgba(255,255,255,.018);
    font-size:.68rem;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .client-main-request__description,
  body[data-route="trebnik"] .client-main-request__works{
    display:none;
  }
  body[data-route="trebnik"] .client-main-request__meta{
    font-size:.78rem;
    line-height:1.22;
  }
  body[data-route="trebnik"] .client-action-row{
    min-height:44px;
    gap:5px;
    padding:8px 10px;
    width:100%;
    max-width:none;
    margin:0;
    border-radius:10px;
    background:rgba(7,24,20,.5);
    box-shadow:none;
  }
  body[data-route="trebnik"] .client-action-row.has-actions{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-route="trebnik"] .client-action-row__main{
    gap:4px;
  }
  body[data-route="trebnik"] .client-action-row__main strong{
    font-size:.88rem;
    line-height:1.15;
  }
  body[data-route="trebnik"] .client-status-line{
    grid-template-columns:20px minmax(0,1fr);
    gap:7px;
    font-size:.74rem;
  }
  body[data-route="trebnik"] .client-status-icon,
  body[data-route="trebnik"] .client-status-icon svg{
    width:20px;
    height:20px;
  }
  body[data-route="trebnik"] .client-action-row__actions{
    width:auto;
    justify-content:flex-start;
  }
  body[data-route="trebnik"] .client-main-row-action,
  body[data-route="trebnik"] .client-action-row__actions .plain,
  body[data-route="trebnik"] .client-action-row__actions .secondary{
    flex:0 1 auto;
    min-height:26px;
    min-width:0;
    padding:0 8px;
    border-radius:7px;
    font-size:.72rem;
  }
}

@media (max-width:640px){
  body[data-route="trebnik"] .client-cabinet-workspace .trebnik-client-head{
    grid-template-columns:minmax(0,1fr) auto;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-title h2{
    font-size:.76rem;
  }
}

@media (max-width:920px){
  body[data-route="trebnik"] .client-cabinet.is-client-requests .client-cabinet-shell,
  body[data-route="trebnik"] .client-cabinet.is-client-requests .client-cabinet-workspace{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-client-tab{
    width:100%;
    max-width:none;
    padding:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-diagnostics .client-cabinet-shell,
  body[data-route="trebnik"] .client-cabinet.is-client-diagnostics .client-cabinet-workspace,
  body[data-route="trebnik"] .client-cabinet.is-client-updates .client-cabinet-shell,
  body[data-route="trebnik"] .client-cabinet.is-client-updates .client-cabinet-workspace{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-diagnostics .trebnik-client-tab,
  body[data-route="trebnik"] .client-cabinet.is-client-updates .trebnik-client-tab{
    width:100%;
    max-width:none;
    padding:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .client-update-feed-row{
    grid-template-columns:1fr;
    gap:4px;
    padding:8px 0;
  }
  body[data-route="trebnik"] .client-update-feed-actions{
    justify-content:flex-start;
  }
  body[data-route="trebnik"] .client-update-target{
    max-width:100%;
    min-height:24px;
    padding:0;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-workbench{
    width:100%;
    max-width:none;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin:0;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master,
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-detail-pane{
    width:100%;
    max-height:none;
    overflow:visible;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master::before{
    content:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__list{
    display:grid;
    gap:6px;
    overflow:visible;
    padding:0;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__item{
    position:relative;
    width:100%;
    min-height:50px;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:0;
    padding:9px 10px;
    border:1px solid rgba(240,206,118,.16);
    border-radius:10px;
    background:rgba(7,24,20,.62);
    box-shadow:inset 2px 0 0 rgba(240,206,118,.18);
    text-align:left;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__item::after{
    content:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__item.active{
    border-color:rgba(240,206,118,.42);
    background:rgba(201,151,67,.1);
    box-shadow:inset 2px 0 0 var(--gold-2);
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__copy{
    min-width:0;
    display:grid;
    gap:4px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__copy strong{
    min-width:0;
    overflow:hidden;
    text-align:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:1rem;
    line-height:1.12;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__copy>span{
    display:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__item .trebnik-card__chips{
    display:flex;
    flex-wrap:wrap;
    gap:4px 12px;
    margin-top:1px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-master__item .trebnik-card__chips em{
    min-height:auto;
    display:inline-flex;
    align-items:center;
    padding:0;
    border:0!important;
    border-radius:0;
    background:transparent!important;
    font-size:.68rem;
    line-height:1;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-detail{
    display:grid;
    gap:8px;
    padding-top:2px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-ledger.is-client-money{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    padding:0!important;
    border:0!important;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-ledger.is-client-money span{
    min-height:38px!important;
    display:grid!important;
    align-content:center!important;
    justify-content:stretch!important;
    justify-items:start!important;
    gap:3px!important;
    padding:6px 8px!important;
    border-radius:8px!important;
    background:rgba(6,23,19,.44)!important;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-ledger.is-client-money em,
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-ledger.is-client-money strong{
    white-space:nowrap!important;
    line-height:1!important;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-ledger.is-client-money em{
    font-size:.64rem!important;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-ledger.is-client-money strong{
    max-width:100%;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:.82rem!important;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-panes{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    overflow:visible;
    scrollbar-width:none;
    padding:0 0 2px;
    border:0;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-panes::-webkit-scrollbar{
    display:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-panes .plain{
    flex:1 1 102px;
    min-height:28px;
    gap:5px;
    padding:0 8px;
    border-radius:8px;
    font-size:.74rem;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-panes em{
    min-width:auto;
    height:auto;
    padding:0;
    border:0!important;
    border-radius:0;
    background:transparent!important;
    font-size:.62rem;
    line-height:1;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-section{
    gap:0;
    padding:0;
    border:0;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-section.works .trebnik-request-section__body{
    display:grid;
    gap:6px;
    padding:0;
    border:0;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-section.works .trebnik-request-section__body::before{
    content:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-inline-row.is-work{
    position:relative;
    min-height:54px;
    display:grid;
    grid-template-columns:20px minmax(0,1fr);
    gap:7px 8px;
    align-items:center;
    padding:8px 10px;
    border:1px solid rgba(240,206,118,.12);
    border-radius:10px;
    background:rgba(7,24,20,.48);
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-inline-row.is-work .trebnik-work-dot{
    position:static;
    width:16px;
    height:16px;
    display:grid;
    place-self:center;
    place-items:center;
    transform:none;
    box-shadow:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-inline-row.is-work .trebnik-work-dot.is-complete::after{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    line-height:1;
    transform:none!important;
    font-size:.7rem;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-inline-row.is-work .trebnik-work-main{
    min-width:0;
    display:grid;
    gap:3px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-inline-row.is-work strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.88rem;
    line-height:1.15;
    text-transform:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-inline-row.is-work span{
    margin-top:2px;
    font-size:.72rem;
    line-height:1.2;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-work-note{
    grid-column:2;
    min-width:0;
    margin:0;
    color:var(--muted);
    font-size:.8rem;
    line-height:1.28;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow-wrap:anywhere;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-work-note.is-empty,
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-inline-row.is-work .trebnik-inline-actions{
    display:none;
  }
}

@media (max-width:380px){
  body[data-route="trebnik"] .client-cabinet.is-client-requests .trebnik-request-ledger.is-client-money{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (max-width:920px){
  .site-footer{
    margin:18px clamp(4px,1.4vw,8px) 0;
  }
  body:not([data-route="home"]) .site-footer{
    margin-top:auto;
  }
  .site-footer nav{
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    gap:clamp(5px,1.7vw,8px);
    width:100%;
    white-space:nowrap;
  }
  .site-footer a{
    flex:0 0 auto;
    white-space:nowrap;
    overflow-wrap:normal;
    word-break:normal;
    font-size:clamp(10.4px,2.75vw,10.6px);
    line-height:1.2;
    letter-spacing:0;
  }
  body:not([data-route="home"]) .site-footer{
    width:auto;
    max-width:none;
    margin:auto clamp(4px,1.4vw,8px) 0;
    padding-top:14px;
  }
  body:not([data-route="home"]) .site-footer nav{
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    gap:clamp(5px,1.7vw,8px);
    width:100%;
    white-space:nowrap;
  }
  body:not([data-route="home"]) .site-footer a{
    flex:0 0 auto;
    white-space:nowrap;
    overflow-wrap:normal;
    word-break:normal;
    font-size:clamp(10.4px,2.75vw,10.6px);
    line-height:1.2;
    letter-spacing:0;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-meta span{
    min-height:18px;
    padding:0 2px;
    border:0!important;
    border-radius:0;
    background:transparent!important;
  }
  body[data-route="trebnik"] .client-main-request{
    padding-right:10px;
  }
  body[data-route="trebnik"] .client-main-request::after{
    content:none;
  }
  body[data-route="trebnik"] .client-main-request__summary{
    min-height:100%;
    display:grid;
    align-content:center;
  }
  body[data-route="trebnik"] .client-main-request__title-line{
    min-height:24px;
    align-items:center;
  }
  body[data-route="trebnik"] .client-main-request:not(:has(.client-main-request__meta)) .client-main-request__title-line{
    min-height:32px;
  }
  body[data-route="trebnik"] .client-main-request .client-work-count{
    align-self:center;
    justify-content:center;
    line-height:1;
  }
  body[data-route="trebnik"] .client-action-row.is-notice .client-action-row__main{
    gap:5px;
  }
  body[data-route="trebnik"] .client-notice-row__head{
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    align-items:start;
  }
  body[data-route="trebnik"] .client-notice-row__head strong{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.88rem;
    line-height:1.15;
  }
  body[data-route="trebnik"] .client-notice-row__head time{
    color:var(--muted);
    font-size:.7rem;
    font-weight:650;
    line-height:1.15;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .client-action-row.is-notice .client-status-line{
    grid-template-columns:20px minmax(0,1fr);
    gap:7px;
  }
  body[data-route="trebnik"] .client-action-row.is-notice .client-status-line em{
    padding-top:0;
    font-size:.74rem;
  }
}

@media (max-width:360px){
  .site-footer{
    margin-left:8px;
    margin-right:8px;
  }
  .site-footer nav{
    gap:6px;
  }
  .site-footer a{
    font-size:9.2px;
  }
  body:not([data-route="home"]) .site-footer a{
    font-size:9.2px;
  }
}

@media (min-width:921px){
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-layout{
    width:min(100%,1180px);
    max-width:1180px;
    grid-template-columns:minmax(420px,1.12fr) minmax(320px,.88fr);
    gap:10px 24px;
    margin:0 auto;
    justify-self:center;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-layout.is-single{
    grid-template-columns:minmax(420px,720px);
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-section{
    gap:8px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-section__head{
    min-height:34px;
    padding:0 0 5px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request{
    position:static;
    grid-template-columns:minmax(220px,.34fr) minmax(0,1fr);
    min-height:66px;
    gap:10px;
    padding:10px 12px;
    border-radius:8px;
    background:linear-gradient(135deg,rgba(23,42,34,.62),rgba(7,24,20,.54));
    box-shadow:inset 3px 0 0 rgba(240,206,118,.2),0 10px 28px rgba(0,0,0,.12);
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request::after{
    content:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request.is-without-works{
    grid-template-columns:minmax(0,1fr);
    padding:10px 12px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request__summary{
    gap:5px;
    align-content:start;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request__title-line{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    min-height:0;
    gap:8px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request__title strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:1.06rem;
    line-height:1.15;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request__description,
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request__works{
    display:grid;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request__meta{
    font-size:.84rem;
    line-height:1.28;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request .client-work-count{
    max-width:150px;
    min-height:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    font-size:.74rem;
    white-space:normal;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request.has-active-works .client-work-count.is-summary{
    display:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request.has-active-works .client-work-count.is-work-head{
    max-width:none;
    display:block;
    min-height:16px;
    padding:0 0 2px;
    font-size:.74rem;
    line-height:1.1;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request.has-active-works .client-main-request__works{
    align-content:start;
    gap:5px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-request.has-active-works .client-main-work{
    min-height:72px;
    padding:8px 10px 7px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-action-row{
    min-height:54px;
    gap:8px;
    padding:10px 11px;
    border-radius:8px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-action-row.is-notice{
    min-height:50px;
    padding:8px 10px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-notice-row__head{
    align-items:baseline;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-notice-row__head strong{
    font-size:.92rem;
    line-height:1.18;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-notice-row__head time{
    font-size:.8rem;
    line-height:1.1;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-status-line{
    grid-template-columns:28px minmax(0,1fr);
    gap:8px;
    font-size:.8rem;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-status-icon,
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-status-icon svg{
    width:24px;
    height:24px;
  }
}

@media (max-width:860px){
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools{
    display:grid!important;
    grid-template-columns:max-content max-content max-content max-content!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:0!important;
    width:100%!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-left-actions,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-right-actions,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-public-actions{
    display:contents!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .mobile-topic-menu,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-admin-filters{
    margin:0!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .plain,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .primary,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .subscription-button,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .mobile-topic-trigger,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-filter-summary{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    height:24px!important;
    min-height:24px!important;
    margin:0!important;
    padding:0!important;
    position:relative!important;
    top:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--ink-2)!important;
    font-family:var(--sans)!important;
    font-size:13px!important;
    font-weight:400!important;
    line-height:13px!important;
    white-space:nowrap!important;
  }
}

@media (min-width:861px) and (max-width:920px){
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .site-footer{
    width:calc(100% - clamp(28px,9.6vw,184px));
    max-width:1540px;
    margin:0 auto;
    margin-top:auto;
    padding-top:8px;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .site-footer nav{
    width:100%;
    justify-content:flex-start;
    gap:14px;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .site-footer a{
    font-size:.78rem;
  }
}

@media (min-width:861px) and (max-width:980px){
  body:has(.material-topic-layout) .site-footer{
    width:min(calc(100% - clamp(28px,9.6vw,184px)),820px);
    max-width:820px;
  }
}

@media (max-width:920px){
  body[data-route="trebnik"] .client-cabinet.is-client-services .client-cabinet-shell,
  body[data-route="trebnik"] .client-cabinet.is-client-services .client-cabinet-workspace{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-services .trebnik-client-tab{
    width:100%;
    max-width:none;
    padding:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .client-services-mobile-section{
    width:100%;
    max-width:none;
    gap:6px;
    margin:0;
    padding:0;
  }
  body[data-route="trebnik"] .client-services-mobile-list{
    width:100%;
    display:grid;
    gap:6px;
    margin:0;
    padding:0;
  }
  body[data-route="trebnik"] .client-service-mobile-row{
    position:relative;
    width:100%;
    min-height:54px;
    display:grid;
    padding:10px;
    border:1px solid rgba(240,206,118,.16);
    border-radius:10px;
    background:rgba(7,24,20,.62);
    box-shadow:inset 2px 0 0 rgba(240,206,118,.18);
  }
  body[data-route="trebnik"] .client-service-mobile-row::after{
    content:none;
  }
  body[data-route="trebnik"] .client-service-mobile-row .client-action-row__main{
    width:100%;
    align-content:center;
    gap:7px;
    -webkit-tap-highlight-color:transparent;
  }
  body[data-route="trebnik"] .client-service-mobile-row .client-action-row__main strong{
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    white-space:normal;
    font-size:1rem;
    line-height:1.12;
  }
  body[data-route="trebnik"] .client-service-mobile-meta{
    min-width:0;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:5px 12px;
    color:var(--muted);
    font-size:.74rem;
    font-weight:650;
    line-height:1.15;
  }
  body[data-route="trebnik"] .client-service-mobile-meta span{
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-service-detail"]{
    width:min(560px,calc(100vw - 28px));
    max-height:min(82vh,720px);
    border-radius:14px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-service-detail"] .modal-head{
    min-height:42px;
    justify-content:flex-end;
    padding:5px 7px 5px 12px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-service-detail"] .modal-head h2{
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-service-detail"] .modal-close{
    width:32px;
    height:32px;
    border-radius:10px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-service-detail"] .modal-body{
    min-height:0;
    padding:10px 12px 12px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-service-detail"] .loading{
    min-height:92px;
  }
  body[data-route="trebnik"] .client-service-detail-modal{
    gap:8px;
  }
  body[data-route="trebnik"] .client-service-detail-modal h3{
    margin:0;
    font-family:var(--sans);
    font-size:1rem;
    line-height:1.18;
  }
  body[data-route="trebnik"] .client-service-detail-facts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  body[data-route="trebnik"] .client-service-detail-facts span{
    min-width:0;
    display:grid;
    align-content:start;
    gap:3px;
    padding:7px 8px;
    border:1px solid rgba(240,206,118,.1);
    border-radius:8px;
    background:rgba(255,255,255,.014);
  }
  body[data-route="trebnik"] .client-service-detail-facts span:nth-child(4){
    grid-column:1/-1;
  }
  body[data-route="trebnik"] .client-service-detail-facts em{
    color:var(--muted);
    font-size:.66rem;
    font-style:normal;
    line-height:1.05;
  }
  body[data-route="trebnik"] .client-service-detail-facts strong{
    min-width:0;
    color:var(--ink);
    font-size:.79rem;
    line-height:1.12;
  }
  body[data-route="trebnik"] .client-service-detail-actions{
    gap:6px;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-payments .client-cabinet-shell,
  body[data-route="trebnik"] .client-cabinet.is-client-payments .client-cabinet-workspace{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-payments .trebnik-client-tab{
    width:100%;
    max-width:none;
    padding:0;
    overflow:visible;
  }
  body[data-route="trebnik"] .client-payments-mobile{
    width:100%;
    display:grid;
    gap:10px;
    margin:0;
    padding:0;
  }
  body[data-route="trebnik"] .client-payment-status-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  body[data-route="trebnik"] .client-payment-status{
    position:relative;
    min-width:0;
    min-height:48px;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-content:center;
    align-items:center;
    gap:3px 8px;
    padding:8px 10px;
    border:1px solid rgba(240,206,118,.17);
    border-radius:10px;
    background:rgba(7,24,20,.58);
    color:inherit;
    text-align:left;
  }
  body[data-route="trebnik"] .client-payment-status.active{
    border-color:rgba(240,206,118,.5);
    background:linear-gradient(180deg,rgba(44,42,24,.74),rgba(7,24,20,.7));
    box-shadow:inset 2px 0 0 rgba(240,206,118,.36);
  }
  body[data-route="trebnik"] .client-payment-status span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted);
    font-size:.72rem;
    font-weight:750;
    line-height:1.05;
  }
  body[data-route="trebnik"] .client-payment-status strong{
    grid-column:1/-1;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.9rem;
    line-height:1.05;
  }
  body[data-route="trebnik"] .client-payment-status em{
    display:none;
  }
  body[data-route="trebnik"] .client-payment-mobile-section{
    gap:7px;
  }
  body[data-route="trebnik"] .client-payment-mobile-count{
    color:var(--muted);
    font-size:.72rem;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .client-payment-mobile-list{
    display:grid;
    gap:6px;
  }
  body[data-route="trebnik"] .client-payment-mobile-row{
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "main side"
      "main actions";
    align-items:center;
    gap:7px 10px;
    min-height:56px;
    padding:10px;
    border:1px solid rgba(240,206,118,.14);
    border-radius:10px;
    background:rgba(7,24,20,.62);
    box-shadow:inset 2px 0 0 rgba(240,206,118,.18);
  }
  body[data-route="trebnik"] .client-payment-mobile-row.is-wait{
    box-shadow:inset 2px 0 0 rgba(255,209,102,.34);
  }
  body[data-route="trebnik"] .client-payment-mobile-row.is-paid{
    box-shadow:inset 2px 0 0 rgba(142,196,128,.32);
  }
  body[data-route="trebnik"] .client-payment-mobile-main{
    grid-area:main;
    min-width:0;
    display:grid;
    gap:5px;
    padding:0;
    border:0;
    background:transparent;
    color:inherit;
    text-align:left;
    -webkit-tap-highlight-color:transparent;
  }
  body[data-route="trebnik"] .client-payment-mobile-main strong{
    min-width:0;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    white-space:normal;
    color:var(--ink);
    font-size:.96rem;
    font-weight:850;
    line-height:1.12;
  }
  body[data-route="trebnik"] .client-payment-mobile-main span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted);
    font-size:.7rem;
    line-height:1.1;
  }
  body[data-route="trebnik"] .client-payment-mobile-side{
    grid-area:side;
    min-width:82px;
    display:grid;
    gap:3px;
    justify-items:end;
    text-align:right;
  }
  body[data-route="trebnik"] .client-payment-mobile-side b{
    font-size:.9rem;
    line-height:1.05;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .client-payment-mobile-side span{
    color:var(--muted);
    font-size:.68rem;
    line-height:1;
    white-space:nowrap;
  }
  body[data-route="trebnik"] .client-payment-mobile-actions{
    grid-area:actions;
    display:flex;
    justify-content:flex-end;
    align-self:start;
  }
  body[data-route="trebnik"] .client-payment-mobile-actions .client-compact-action{
    inline-size:112px;
    min-width:0;
    min-height:26px;
    padding:0 9px;
    border-radius:7px;
    font-size:.72rem;
    font-weight:700;
    line-height:1;
  }
  body[data-route="trebnik"] .client-cabinet-workspace .trebnik-client-head{
    display:block;
    padding:4px 0 8px;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-title{
    width:100%;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    transform:none;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-title h2{
    flex:1 1 auto;
    min-width:0;
    max-width:none;
    overflow:hidden;
    text-align:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-family:var(--sans);
    font-size:1.02rem;
    font-weight:850;
    line-height:1.1;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-meta{
    grid-column:auto;
    grid-row:auto;
    width:auto;
    min-width:0;
    flex:1 1 auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:clamp(4px,1.4vw,7px);
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-meta span{
    min-width:0;
    min-height:auto;
    padding:0;
    border:0!important;
    border-radius:0;
    background:transparent!important;
    font-size:clamp(.52rem,2.15vw,.66rem);
    line-height:1.05;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-route="trebnik"] .client-main-section__head .client-compact-action{
    inline-size:112px;
    min-width:0;
    min-height:26px;
    padding:0 9px;
    border-radius:7px;
    font-size:.72rem;
    font-weight:700;
    line-height:1;
  }
  body[data-route="trebnik"] .client-main-request .client-work-count{
    min-height:auto;
    padding:0;
    border:0!important;
    border-radius:0;
    background:transparent!important;
    font-weight:700;
  }
  body[data-route="trebnik"] .client-action-row.is-notice .client-action-row__main:not(button){
    cursor:default;
  }
  body[data-route="trebnik"] .client-action-row.is-notice .client-action-row__main:not(button):hover strong{
    color:inherit;
  }
}

@media (max-width:360px){
  body[data-route="trebnik"] .client-cabinet .trebnik-client-title{
    gap:6px;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-title h2{
    min-width:0;
    max-width:none;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-meta{
    gap:4px;
  }
  body[data-route="trebnik"] .client-cabinet .trebnik-client-meta span{
    font-size:.5rem;
  }
}

@media (max-width:760px){
  .site-header.menu-open .site-nav{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .site-header.menu-open .site-nav > a{
    width:auto;
    justify-content:center;
    padding:0 6px;
    text-align:center;
    white-space:normal;
  }
  .site-header.menu-open .mobile-nav-actions{
    grid-column:1/-1;
    padding-top:7px;
    margin-top:1px;
  }
  .site-header.menu-open .mobile-nav-block{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  .site-header.menu-open .mobile-nav-block > :only-child{
    grid-column:1/-1;
  }
  .site-header.menu-open .mobile-nav-button-full{
    grid-column:1/-1;
  }
  .site-header.menu-open .mobile-nav-button{
    min-height:34px;
    padding:0 8px;
    justify-content:center;
    border-radius:9px;
    font-size:.84rem;
    text-align:center;
  }
  .header-actions .notification-popover{
    position:fixed;
    top:calc(38px + env(safe-area-inset-top));
    right:max(7px,env(safe-area-inset-right));
    left:max(7px,env(safe-area-inset-left));
    width:auto;
    max-width:none;
  }
  .notification-surface-body{
    max-height:min(50dvh,320px);
    overflow:auto;
    padding:4px;
  }
  .notification-surface:not(.is-long) .notification-surface-body{
    max-height:none;
    overflow:visible;
  }
  .notification-surface-head{padding:3px 6px 3px 8px;min-height:28px}
  .notification-mark-all{height:16px}
  .notification-empty{
    padding:12px 8px;
    color:var(--muted);
    font-size:.7rem;
    line-height:1.3;
    text-align:center;
  }
  .header-actions .notification-popover .notification-surface .loading{
    min-height:80px;
    padding:14px;
  }
  .notification-sheet{
    display:none!important;
  }
  .notification-sheet.admin-traffic-sheet:not([hidden]){
    display:grid!important;
    align-items:end;
    padding:12px;
  }
  .notification-sheet.admin-traffic-sheet[hidden]{
    display:none!important;
  }
  .admin-traffic-sheet .notification-sheet-card{
    max-height:min(68dvh,520px);
    overflow:hidden;
  }
  .notification-surface.admin-traffic-surface{
    display:block;
    align-items:stretch;
    min-height:0;
    padding:0;
    border-radius:14px;
  }
  .notification-surface.admin-traffic-surface .notification-surface-body{
    display:grid;
    gap:6px;
    max-height:min(68dvh,520px);
    overflow:auto;
    padding:8px 10px 10px;
  }
  body.notifications-open{
    overflow:auto;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-notifications"],
  body[data-route="trebnik"] .modal-card[data-modal-kind="payment-receipt"]{
    width:min(430px,calc(100vw - 22px));
    max-height:calc(82dvh - env(safe-area-inset-bottom));
    border-radius:14px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-notifications"]{
    background:rgba(4,18,15,.99);
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-notifications"] .modal-head,
  body[data-route="trebnik"] .modal-card[data-modal-kind="payment-receipt"] .modal-head{
    min-height:42px;
    padding:8px 9px 8px 12px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-notifications"] .modal-head h2,
  body[data-route="trebnik"] .modal-card[data-modal-kind="payment-receipt"] .modal-head h2{
    font-size:1rem;
    line-height:1.12;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-notifications"] .modal-body,
  body[data-route="trebnik"] .modal-card[data-modal-kind="payment-receipt"] .modal-body{
    padding:10px;
  }
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-notifications"] .modal-head,
  body[data-route="trebnik"] .modal-card[data-modal-kind="client-notifications"] .modal-body{
    background:rgba(4,18,15,.99);
  }
  body[data-route="trebnik"] .client-notifications{
    gap:8px;
  }
  body[data-route="trebnik"] .client-notification-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  body[data-route="trebnik"] .client-notification-actions .client-compact-action{
    width:100%;
    min-width:0;
    min-height:32px;
    border-radius:8px;
    border-color:rgba(240,206,118,.16);
    background:rgba(255,255,255,.025);
    color:var(--ink);
    font-size:.78rem;
    font-weight:700;
  }
  body[data-route="trebnik"] .client-notification-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  body[data-route="trebnik"] .client-notification-row{
    min-height:34px;
    padding:6px 7px;
    gap:6px;
    border-radius:8px;
    background:rgba(255,255,255,.025);
  }
  body[data-route="trebnik"] .client-notification-row input{
    width:16px!important;
    height:16px;
    flex:0 0 16px;
  }
  body[data-route="trebnik"] .client-notification-row span{
    font-size:.72rem!important;
    line-height:1.12;
  }
  #paymentReceiptForm{
    gap:8px;
  }
  #paymentReceiptForm .client-fixed-target{
    padding:7px 9px;
    border-radius:8px;
  }
  #paymentReceiptForm .client-fixed-target strong{
    font-size:.82rem;
    line-height:1.18;
  }
  #paymentReceiptForm label{
    gap:4px;
  }
  #paymentReceiptForm label span{
    font-size:.78rem;
  }
  #paymentReceiptForm input{
    min-height:38px;
    padding:9px 10px;
    border-radius:10px;
    font-size:.88rem;
  }
  #paymentReceiptForm .row{
    display:grid;
    grid-template-columns:1fr;
    gap:0;
  }
  #paymentReceiptForm [data-save-content]{
    width:100%;
    min-height:34px;
    border-radius:9px;
    font-size:.86rem;
  }
}

/* Keep the full admin compact pass last. Older mobile rules above are broad. */
@media (max-width:920px){
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-board,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-panel{
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section__rows,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-action-list,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-list,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-cards{
    display:grid!important;
    gap:6px!important;
    padding:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-line,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-action-card,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-row,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-card{
    border:1px solid rgba(240,206,118,.14)!important;
    border-radius:10px!important;
    background:rgba(7,24,20,.56)!important;
    box-shadow:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-line{
    min-height:54px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:7px!important;
    padding:8px 9px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-open{
    grid-template-columns:16px minmax(0,1fr)!important;
    gap:2px 7px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-open strong,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-work-title,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-work-status,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-meta{
    grid-column:2!important;
    min-width:0!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-work-title{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-work-note{
    display:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-buttons{
    width:auto!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:5px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-buttons:has(.trebnik-work-log-icon){
    display:grid!important;
    grid-template-columns:minmax(58px,1fr) 30px!important;
    width:96px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-buttons .plain,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-buttons .secondary{
    width:100%!important;
    min-width:0!important;
    min-height:28px!important;
    padding:0 9px!important;
    border-radius:7px!important;
    font-size:.74rem!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-action-section .admin-action-buttons .trebnik-work-log-icon{
    width:30px!important;
    min-width:30px!important;
    padding:0!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-hero,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-hero{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    overflow:visible!important;
    padding:0!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-hero-stat,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-stat{
    min-width:0!important;
    min-height:34px!important;
    padding:6px 9px!important;
    border-radius:10px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-action-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main state" "buttons buttons"!important;
    min-height:60px!important;
    gap:5px 8px!important;
    padding:8px 9px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-action-buttons,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-card__actions{
    width:100%!important;
    max-width:none!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-action-buttons .plain,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-action-buttons .secondary,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-action-buttons .danger,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-card__actions .plain,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-card__actions .secondary,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-card__actions .danger{
    width:100%!important;
    min-width:0!important;
    min-height:28px!important;
    padding:0 6px!important;
    border-radius:7px!important;
    font-size:.74rem!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 74px!important;
    min-height:58px!important;
    gap:4px 8px!important;
    padding:8px 9px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-row-main span{
    display:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-row-terms,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-row-use{
    grid-column:1!important;
    display:flex!important;
    gap:5px!important;
    text-align:left!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-row-actions{
    grid-column:2!important;
    grid-row:1/4!important;
    align-self:center!important;
    width:auto!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-row-actions .plain,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .ritebook-row-actions .secondary{
    width:74px!important;
    min-width:74px!important;
    min-height:28px!important;
    padding:0 6px!important;
    border-radius:7px!important;
    font-size:.74rem!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-tabs{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-tabs .plain{
    min-height:32px!important;
    border-radius:9px!important;
    font-size:.76rem!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-card{
    grid-template-columns:minmax(0,1fr)!important;
    min-height:54px!important;
    gap:7px!important;
    padding:9px 10px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card:not(:has(.trebnik-card__actions button:nth-child(2))){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 84px!important;
    align-items:center!important;
    min-height:58px!important;
    padding:8px 9px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card__main{
    min-width:0!important;
    display:grid!important;
    gap:5px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card__main strong{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:.9rem!important;
    line-height:1.08!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card__chips{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:5px!important;
    overflow:hidden!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card__chips em{
    min-width:0!important;
    max-width:46%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    padding:3px 6px!important;
    border-radius:7px!important;
    font-size:.68rem!important;
    line-height:1.05!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card__main p{
    display:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card:not(:has(.trebnik-card__actions button:nth-child(2))) .trebnik-card__actions{
    width:84px!important;
    display:block!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card:not(:has(.trebnik-card__actions button:nth-child(2))) .trebnik-card__actions .plain,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-detail .trebnik-card:not(:has(.trebnik-card__actions button:nth-child(2))) .trebnik-card__actions .secondary{
    width:84px!important;
    min-width:84px!important;
    min-height:28px!important;
    padding:0 6px!important;
    border-radius:7px!important;
    font-size:.72rem!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile{
    display:grid!important;
    gap:8px!important;
  }
  body[data-route="trebnik"] .admin-mobile-filter{
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:7px!important;
    padding:0!important;
    margin:0!important;
  }
  body[data-route="trebnik"] .admin-mobile-filter label{
    margin:0!important;
    color:rgba(236,229,208,.72)!important;
    font-size:.74rem!important;
    font-weight:650!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  body[data-route="trebnik"] .admin-mobile-filter b{
    min-height:30px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 9px!important;
    border:1px solid rgba(240,206,118,.14)!important;
    border-radius:8px!important;
    background:rgba(7,24,20,.5)!important;
    color:var(--gold-2)!important;
    font-size:.76rem!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  body[data-route="trebnik"] .admin-mobile-select{
    width:100%!important;
    min-width:0!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 28px 0 10px!important;
    border:1px solid rgba(240,206,118,.24)!important;
    border-radius:9px!important;
    background:rgba(7,24,20,.64)!important;
    color:var(--text)!important;
    font:650 .8rem/1 var(--font-sans)!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-section{
    margin:0!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-list{
    display:grid!important;
    gap:6px!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-row{
    min-height:54px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 72px!important;
    gap:7px!important;
    align-items:center!important;
    padding:8px 9px!important;
    border:1px solid rgba(240,206,118,.14)!important;
    border-radius:10px!important;
    background:rgba(7,24,20,.56)!important;
    box-shadow:none!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-row .client-action-row__main{
    min-width:0!important;
    min-height:38px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    text-align:left!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-row .client-action-row__main strong{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:.83rem!important;
    line-height:1.1!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-row .client-service-mobile-meta{
    width:100%!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:6px!important;
    overflow:hidden!important;
    color:rgba(236,229,208,.7)!important;
    font-size:.68rem!important;
    line-height:1.15!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-row .client-service-mobile-meta span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-row .client-action-row__actions{
    width:72px!important;
    display:block!important;
  }
  body[data-route="trebnik"] .admin-ritebook-mobile-row .client-compact-action{
    width:72px!important;
    min-width:72px!important;
    min-height:28px!important;
    padding:0 6px!important;
    border-radius:7px!important;
    font-size:.72rem!important;
    line-height:1!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .client-detail-card.is-empty,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-empty,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .finance-empty{
    min-height:72px!important;
    padding:14px 10px!important;
    border-radius:10px!important;
  }
}

@media (max-width:860px){
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .plain,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .primary,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .subscription-button,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .mobile-topic-trigger,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-filter-summary{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    height:24px!important;
    min-height:24px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--ink-2)!important;
    font-family:var(--sans)!important;
    font-size:13px!important;
    font-weight:400!important;
    line-height:13px!important;
    white-space:nowrap!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .primary,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .subscription-button{
    position:relative!important;
    top:0!important;
  }
}

@media (max-width:860px){
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools{
    display:grid!important;
    grid-template-columns:max-content max-content max-content max-content!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:0!important;
    width:100%!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-left-actions,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-right-actions,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-public-actions{
    display:contents!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .primary,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .subscription-button{
    top:1px!important;
  }
}

@media (max-width:860px){
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools:not(.has-admin-actions){
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    justify-content:stretch!important;
    gap:8px!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools.has-admin-actions{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    justify-content:stretch!important;
    gap:8px!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools.has-admin-actions .section-left-actions,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools.has-admin-actions .section-right-actions,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools.has-admin-actions .section-public-actions{
    display:contents!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools:not(.has-admin-actions) .section-left-actions{
    display:flex!important;
    grid-column:1!important;
    justify-content:stretch!important;
    width:100%!important;
    min-width:0!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools:not(.has-admin-actions) .section-right-actions{
    display:flex!important;
    grid-column:4!important;
    justify-content:stretch!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools:not(.has-admin-actions) .section-public-actions{
    display:flex!important;
    justify-content:stretch!important;
    width:100%!important;
    min-width:0!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .mobile-topic-menu,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-admin-filters,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-question-actions,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-public-actions{
    width:100%!important;
    min-width:0!important;
    line-height:0!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .plain,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .primary,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .subscription-button,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .mobile-topic-trigger,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-filter-summary{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    position:relative!important;
    top:0!important;
    height:24px!important;
    min-height:24px!important;
    margin:0!important;
    padding:0 6px!important;
    border:1px solid rgba(216,190,126,.34)!important;
    border-radius:7px!important;
    background:rgba(7,30,24,.72)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)!important;
    color:var(--ink-2)!important;
    font-family:var(--sans)!important;
    font-size:12px!important;
    font-weight:400!important;
    line-height:1!important;
    text-align:center!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .mobile-topic-menu:not([open]) > .mobile-topic-trigger,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-admin-filters:not([open]) > .section-filter-summary{
    border:1px solid rgba(216,190,126,.34)!important;
    border-color:rgba(216,190,126,.34)!important;
    background:rgba(7,30,24,.72)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)!important;
    color:var(--ink-2)!important;
    outline:0!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .mobile-topic-menu:not([open]) > .mobile-topic-trigger:is(:hover,:focus,:focus-visible,:active),
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-admin-filters:not([open]) > .section-filter-summary:is(:hover,:focus,:focus-visible,:active){
    border:1px solid rgba(216,190,126,.34)!important;
    border-color:rgba(216,190,126,.34)!important;
    background:rgba(7,30,24,.72)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)!important;
    color:var(--ink-2)!important;
    outline:0!important;
  }
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .mobile-topic-menu[open] > .mobile-topic-trigger,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .section-admin-filters[open] > .section-filter-summary,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools button.plain:hover,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .primary:hover,
  body:is([data-route="works"],[data-route="articles"],[data-route="questions"],[data-route="services"],[data-route="cards"]) .section-tools .subscription-button:hover{
    border:1px solid rgba(216,190,126,.52)!important;
    border-color:rgba(216,190,126,.52)!important;
    background:rgba(13,43,34,.86)!important;
  }
  body[data-route="questions"] .section-tools.has-question-action .question-toolbar-action{
    color:var(--gold-2)!important;
  }
  body[data-route="questions"] .section-tools.has-question-action.has-topic-actions:not(.has-admin-actions) .section-left-actions{
    grid-column:1 / span 2!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    justify-content:stretch!important;
    width:100%!important;
    min-width:0!important;
  }
  body[data-route="questions"] .section-tools.has-question-action.has-topic-actions:not(.has-admin-actions) .section-right-actions{
    grid-column:4!important;
  }
}

@media (max-width:920px){
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-client-tab{
    width:100%!important;
    padding:6px 0 10px!important;
    overflow:visible!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-workbench{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-detail-pane{
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master{
    display:block!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master__list{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
    padding:0!important;
    overflow:visible!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master__item{
    width:100%!important;
    min-height:58px!important;
    display:grid!important;
    align-items:center!important;
    padding:8px 9px!important;
    border-radius:8px!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master__copy{
    gap:4px!important;
    text-align:left!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master__copy strong{
    width:100%!important;
    font-size:.86rem!important;
    line-height:1.12!important;
    text-align:left!important;
    white-space:normal!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master__copy>span{
    font-size:.75rem!important;
    line-height:1.2!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master__item .trebnik-card__chips{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:4px!important;
    margin:0!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-master__item .trebnik-card__chips em{
    min-height:18px!important;
    padding:0 6px!important;
    border-radius:6px!important;
    font-size:.66rem!important;
    line-height:18px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-detail{
    width:100%!important;
    display:grid!important;
    gap:8px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-ledger{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    padding:0!important;
    border:0!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-ledger span{
    min-height:48px!important;
    display:grid!important;
    grid-template-columns:20px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    gap:3px 5px!important;
    padding:6px!important;
    border-radius:8px!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-ledger i{
    width:20px!important;
    height:20px!important;
    grid-row:1/3!important;
    border-radius:6px!important;
    font-size:.7rem!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-ledger em,
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-ledger strong{
    grid-column:2!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-ledger em{
    grid-row:1!important;
    font-size:.66rem!important;
    line-height:1!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-ledger strong{
    grid-row:2!important;
    font-size:.74rem!important;
    line-height:1.05!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-pane-body{
    width:100%!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-section{
    width:100%!important;
    display:grid!important;
    gap:5px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-section__head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:6px!important;
    margin:0!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-section__head h3{
    font-size:.84rem!important;
    line-height:1!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-section__head .secondary{
    min-height:24px!important;
    padding:0 8px!important;
    border-radius:7px!important;
    font-size:.7rem!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-section.works .trebnik-request-section__body{
    width:100%!important;
    position:relative!important;
    display:grid!important;
    gap:0!important;
    padding-left:58px!important;
    border-top:1px solid rgba(240,206,118,.13)!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-request-section.works .trebnik-request-section__body::before{
    content:""!important;
    position:absolute!important;
    left:34px!important;
    top:0!important;
    bottom:0!important;
    width:1px!important;
    background:linear-gradient(180deg,rgba(240,206,118,.4),rgba(240,206,118,.12))!important;
    box-shadow:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work{
    width:100%!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:4px 6px!important;
    align-items:start!important;
    padding:8px 6px!important;
    border-bottom:1px solid rgba(240,206,118,.09)!important;
    border-radius:0!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work::before{
    content:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work .trebnik-work-dot{
    position:absolute!important;
    z-index:1!important;
    left:-33px!important;
    top:18px!important;
    width:18px!important;
    height:18px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    border-width:2px!important;
    border-color:rgba(240,206,118,.42)!important;
    border-radius:50%!important;
    background:rgba(3,17,14,.95)!important;
    transform:translateY(-50%)!important;
    box-shadow:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work .trebnik-work-dot::after{
    content:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work .trebnik-work-dot.is-open{
    border-color:var(--gold-2)!important;
    box-shadow:0 0 0 4px rgba(201,151,67,.08)!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work .trebnik-work-dot.is-active{
    border-color:var(--gold-2)!important;
    background:radial-gradient(circle at center,rgba(240,206,118,.72) 0 26%,rgba(3,17,14,.95) 30%)!important;
    box-shadow:0 0 0 4px rgba(201,151,67,.08)!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work .trebnik-work-dot.is-overdue{
    border-color:#ff7568!important;
    background:radial-gradient(circle at center,#ff7568 0 28%,rgba(3,17,14,.96) 32%)!important;
    box-shadow:0 0 0 4px rgba(255,93,78,.11),0 0 14px rgba(255,93,78,.2)!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work .trebnik-work-dot.is-complete{
    border-color:rgba(142,196,128,.72)!important;
    background:rgba(3,17,14,.95)!important;
    box-shadow:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work .trebnik-work-dot.is-complete::after{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    color:#8ec480;
    background:transparent!important;
    content:"✓"!important;
    font-size:.68rem;
    font-weight:900;
    line-height:1;
    transform:translateY(-1px);
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-work-main{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    display:grid!important;
    gap:2px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work strong{
    font-size:.8rem!important;
    line-height:1.18!important;
    text-transform:uppercase!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-row.is-work span{
    margin:0!important;
    font-size:.7rem!important;
    line-height:1.15!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-work-note{
    grid-column:1/-1!important;
    margin:0!important;
    color:var(--ink-2)!important;
    font-size:.78rem!important;
    line-height:1.28!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-work-note.is-empty{
    display:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-actions{
    grid-column:2!important;
    grid-row:1!important;
    width:auto!important;
    min-width:0!important;
    display:flex!important;
    justify-content:flex-end!important;
    gap:4px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .trebnik-inline-actions .plain{
    min-width:24px!important;
    min-height:24px!important;
    padding:0 6px!important;
    border-radius:6px!important;
    font-size:.7rem!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostics-desktop{
    display:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostics-mobile{
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card{
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    gap:0!important;
    border:1px solid rgba(240,206,118,.22)!important;
    border-radius:9px!important;
    background:rgba(3,22,17,.7)!important;
    box-shadow:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card__top{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 28px!important;
    align-items:start!important;
    gap:6px!important;
    padding:8px!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card__summary{
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    display:grid!important;
    gap:4px!important;
    justify-items:start!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--ink)!important;
    text-align:left!important;
    cursor:pointer!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card__summary strong{
    width:100%!important;
    min-width:0!important;
    color:var(--ink)!important;
    font-size:.84rem!important;
    line-height:1.16!important;
    text-align:left!important;
    white-space:normal!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card__summary .trebnik-card__chips{
    max-width:100%!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:4px!important;
    margin:0!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card__summary .trebnik-card__chips em{
    min-height:18px!important;
    padding:0 6px!important;
    border-radius:6px!important;
    font-size:.66rem!important;
    line-height:18px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-actions{
    position:relative!important;
    z-index:12!important;
    justify-self:end!important;
    width:28px!important;
    min-width:28px!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-menu-button{
    width:28px!important;
    min-width:28px!important;
    min-height:28px!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    border-radius:7px!important;
    border:1px solid rgba(240,206,118,.16)!important;
    background:rgba(4,18,15,.64)!important;
    color:var(--ink)!important;
    line-height:1!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-menu-button span{
    display:block!important;
    transform:translateY(-1px)!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-menu-button[aria-expanded="true"]{
    border-color:rgba(240,206,118,.36)!important;
    background:rgba(201,151,67,.12)!important;
    color:var(--gold-2)!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-menu{
    position:absolute!important;
    top:calc(100% + 4px)!important;
    right:0!important;
    z-index:60!important;
    width:min(188px, calc(100vw - 34px))!important;
    display:grid!important;
    gap:3px!important;
    padding:4px!important;
    border:1px solid rgba(240,206,118,.24)!important;
    border-radius:8px!important;
    background:rgba(2,18,14,.98)!important;
    box-shadow:0 14px 32px rgba(0,0,0,.42)!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-menu[hidden]{
    display:none!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-menu .plain{
    width:100%!important;
    min-width:0!important;
    min-height:28px!important;
    justify-content:flex-start!important;
    padding:0 8px!important;
    border:0!important;
    border-radius:6px!important;
    background:transparent!important;
    font-size:.72rem!important;
    line-height:1!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card__body{
    display:none!important;
    width:100%!important;
    padding:0 8px 8px!important;
    border-top:1px solid rgba(240,206,118,.12)!important;
    box-sizing:border-box!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card.is-open .admin-diagnostic-mobile-card__body{
    display:block!important;
  }
  body[data-route="trebnik"] .admin-trebnik:not(.client-cabinet) .admin-diagnostic-mobile-card__body .client-request-full-text{
    margin:0!important;
    color:var(--ink)!important;
    font-size:.78rem!important;
    line-height:1.36!important;
    white-space:pre-wrap!important;
  }
}

@media (min-width:921px){
  body[data-route="trebnik"] .client-cabinet:not(.is-client-services) .client-cabinet-workspace .trebnik-client-head{
    display:flex;
    align-items:center;
    align-self:start;
    min-height:0;
    height:auto;
    margin:0;
    padding:0 0 3px;
    border-bottom:0;
    text-align:left;
  }
  body[data-route="trebnik"] .client-cabinet:not(.is-client-services) .trebnik-client-title{
    width:100%;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    min-height:0;
    line-height:1;
    transform:none;
  }
  body[data-route="trebnik"] .client-cabinet:not(.is-client-services) .trebnik-client-title h2{
    flex:0 1 auto;
    min-width:0;
    height:16px;
    max-width:min(420px,42vw);
    display:inline-flex;
    align-items:center;
    overflow:hidden;
    text-align:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    margin:0;
    font-family:var(--sans);
    font-size:.82rem;
    font-weight:850;
    line-height:16px;
  }
  body[data-route="trebnik"] .client-cabinet:not(.is-client-services) .trebnik-client-meta{
    width:auto;
    min-width:0;
    flex:0 1 auto;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    line-height:1;
  }
  body[data-route="trebnik"] .client-cabinet:not(.is-client-services) .trebnik-client-meta span{
    min-width:0;
    min-height:0;
    height:16px;
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    padding:0;
    border:0!important;
    border-radius:0;
    background:transparent!important;
    color:var(--muted);
    font-size:.68rem;
    font-weight:600;
    line-height:16px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .trebnik-client-tab{
    padding-top:0;
  }
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-home-dashboard,
  body[data-route="trebnik"] .client-cabinet.is-client-now .client-main-layout{
    margin-top:0;
  }
}
