@media (min-width:900px){
    body{padding-bottom:110px;}
    .top{padding:16px 28px 40px;}

    .top::before{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);
      background:inherit;z-index:-1;}
    .top::after{left:calc(50% - 50vw);right:calc(50% - 50vw);height:28px;border-radius:28px 28px 0 0;}

    .top .logotype{margin:-16px 0 0 -28px;padding:16px 20px 12px 28px;}

    .top:has(.search) .search::before{left:-28px;width:40px;height:30px;clip-path:path('M0 0H40C23 3 16 27 0 30Z');}
    .top:has(.search) .logotype{padding-bottom:24px;}
    .top .brand{font-size:22px;min-height:40px;}
    .top .back{font-size:24px;padding-right:12px;}
    .search{max-width:640px;}
    .top .search input{font-size:16px;}

    .wrap{padding:18px 24px 24px;}
    .lf-tabs{max-width:760px;margin:0 auto;border-radius:16px;overflow:hidden;
      border:1px solid var(--line);box-shadow:0 2px 10px rgba(80,40,0,.05);position:static;}
    .lf-tabs button{padding:13px 0!important;font-size:15px!important;}
    .lf-fab{right:max(28px,calc(50% - 380px));bottom:110px;width:60px;height:60px;}
    .empty{padding:80px 20px;}

    .nav{width:560px;max-width:calc(100vw - 48px);bottom:20px;padding:4px 6px;border-radius:24px;background:#fff;}
    .nav button{padding:9px 4px 8px;font-size:12.5px;border-radius:16px;}
    .nav button:first-child,.nav button:last-child{border-radius:16px;}
    .nav button:not(.nav-pai):hover{background:#fff6e6;color:var(--brand-d);}
    .nav .ni{font-size:22px;margin-bottom:2px;}
    .nav button.nav-pai{flex:0 0 76px!important;}
    #_toast{bottom:112px!important;}

    #chat{max-width:720px;padding:18px 12px 8px!important;}
    .pai-bar{bottom:100px;left:0;right:0;max-width:720px;margin:0 auto;border:1px solid var(--line);
      border-radius:22px;padding:10px 12px;box-shadow:0 10px 30px rgba(46,50,64,.12);}

    .detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px;align-items:start;
      max-width:1072px;padding:18px 24px 0;}
    .detail>.big{grid-column:1;grid-row:1 / span 3;height:440px;border-radius:24px;
      box-shadow:0 4px 18px rgba(80,40,0,.08);}
    .detail>.big.has-img{margin:0;height:440px;aspect-ratio:auto;max-height:none;}
    .detail>.card{grid-column:2;max-width:none;margin:0 0 14px;}
    .detail>h2,.detail>.grid{grid-column:1 / -1;}
    .detail>.grid{padding-left:0;padding-right:0;}
    .detail .dname{font-size:24px!important;}
  }

  @media (min-width:900px){
    #root>.top{margin-left:calc(50% - 50vw + var(--sbw,0px) / 2);margin-right:calc(50% - 50vw + var(--sbw,0px) / 2);}

    #root>.top::before,#root>.top::after{left:0;right:0;}

    .top:has(.search){display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:36px;}
    .top:has(.search)::after{border-top-left-radius:0;}
    .top:has(.search) .brand{display:contents;}
    .top:has(.search) .logotype{grid-column:1;grid-row:1;align-self:stretch;display:flex;align-items:center;position:relative;
      margin:-16px 0 -14px -28px;padding:16px 28px 14px 28px;border-radius:0 0 30px 0;box-shadow:none;background:var(--bg);}
    .top:has(.search) .search{grid-column:2;grid-row:1;justify-self:stretch;width:auto;max-width:none;
      margin:0!important;padding:14px 20px;border-radius:16px;gap:12px;font-size:19px;
      box-shadow:0 4px 14px rgba(120,60,0,.12);}
    .top:has(.search) .search input{font-size:18px;}
    .top:has(.search) .search::before{display:none;}
    .top:has(.search) .hdr-r{grid-column:3;grid-row:1;align-self:center;margin:0;gap:16px;
      background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:9px 18px;}
    .top:has(.search) .hdr-r .loc{font-size:16px;}
    .top:has(.search) .hdr-sep{height:24px;}
  }
  @media (min-width:1400px){
    .nav{width:600px;}
  }
